From e7e392a96a2f6b68318fee85331d114ee1398d6c Mon Sep 17 00:00:00 2001
From: Juliana <juliana@le-filament.com>
Date: Tue, 30 Aug 2022 11:02:37 +0200
Subject: [PATCH] [UPD]Delete code comment

---
 models/account_invoice.py | 44 +--------------------------------------
 1 file changed, 1 insertion(+), 43 deletions(-)

diff --git a/models/account_invoice.py b/models/account_invoice.py
index 30a727e..0d45032 100644
--- a/models/account_invoice.py
+++ b/models/account_invoice.py
@@ -97,49 +97,7 @@ class AccountInvoice(models.Model):
     # ------------------------------------------------------
     # Onchange / Constraints
     # ------------------------------------------------------
-    # @api.onchange("project_id")
-    # def onchange_project_id(self):
-    #     # force domain on project when timesheet is set
-    #     if self.type == "in_invoice":
-    #         if self.project_id:
-    #             formateur_ids = self.env["project.task"].search(
-    #                 [("project_id", "=", self.project_id.id)]
-    #             ).mapped("formateur_id")
-    #             res = {
-    #                 'domain': {
-    #                     'partner_id': [('id', 'in', formateur_ids.ids)],
-    #                 }
-    #             }
-    #             return res
-    #
-    # @api.onchange("partner_id")
-    # def onchange_partner_id(self):
-    #     # force domain on project when timesheet is set
-    #     if self.type == "in_invoice":
-    #         if self.partner_id:
-    #             task_ids = self.env["project.task"].search(
-    #                 [("project_id", "=", self.project_id.id),
-    #                  ("formateur_id", "=", self.partner_id)
-    #                  ]
-    #             )
-    #             res = {
-    #                 'domain': {
-    #                     'task_ids': [('id', 'in', task_ids.ids)]
-    #                 }
-    #             }
-    #             return res
-
-    #
-    # @api.multi
-    # def action_view_partner_projects(self):
-    #     self.ensure_one()
-    #     action = self.env.ref("project.open_view_project_all_config").read()[0]
-    #     action["domain"] = literal_eval(action["domain"])
-    #     porteurs_projects = self.env["res.partner.porteur.project"].search(
-    #         [("partner_id", "=", self.id)]
-    #     )
-    #     action["domain"].append(("porteurs_projets_ids", "in", porteurs_projects.ids))
-    #     return action
+
     # ------------------------------------------------------
     # CRUD methods (ORM overrides)
     # ------------------------------------------------------
-- 
GitLab