From 587705c23e68049facef6e20cd40b9ac9aee1eae Mon Sep 17 00:00:00 2001
From: Facundo Barral <facundo.barral@eynes.com.ar>
Date: Wed, 4 Oct 2023 01:53:35 -0300
Subject: [PATCH 1/2] [IMP] Update partner_id field domain

---
 models/product_regulation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/models/product_regulation.py b/models/product_regulation.py
index 957171e..ce9d235 100644
--- a/models/product_regulation.py
+++ b/models/product_regulation.py
@@ -17,7 +17,8 @@ class ProductRegulation(models.Model):
 
     name = fields.Char(string="Regulation", required=True, readonly=True, compute="_compute_name")
     partner_id = fields.Many2one(
-        comodel_name="res.partner", string="Institution", required=True
+        comodel_name="res.partner", string="Institution", required=True,
+        domain="[('partner_type_id.regulatory_ok', '=', True)]"
     )
     notes_internal = fields.Text(string="Internal Notes", required=True)
     notes_client = fields.Text(string="Client Notes")
-- 
GitLab


From c2cdd44d5ee2bafdcd0022eb6013060f6170db1a Mon Sep 17 00:00:00 2001
From: Facundo Barral <facundo.barral@eynes.com.ar>
Date: Wed, 4 Oct 2023 01:55:32 -0300
Subject: [PATCH 2/2] [IMP] Add jenck_base_partner to depends

---
 __manifest__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/__manifest__.py b/__manifest__.py
index 884fa2e..9369636 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -28,6 +28,7 @@
         'product',
         'l10n_ar_eynes',
         'account_import_clearance',
+        'jenck_base_partner',
     ],
     'data': [
         'views/product_views.xml',
-- 
GitLab