diff --git a/README.md b/README.md
index c909f6a371b..17b3f630dca 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ addon | version | maintainers | summary
[partner_company_group](partner_company_group/) | 16.0.1.0.0 | [](https://github.com/luisg123v) | Adds the possibility to add a company group to a company
[partner_company_type](partner_company_type/) | 16.0.1.0.0 | | Adds a company type to partner that are companies
[partner_contact_access_link](partner_contact_access_link/) | 16.0.1.1.0 | [](https://github.com/Yajo) | Allow to visit the full contact form from a company
-[partner_contact_address_default](partner_contact_address_default/) | 16.0.1.0.0 | | Set a default delivery and invoice address for contacts
+[partner_contact_address_default](partner_contact_address_default/) | 16.0.1.1.0 | | Set a default delivery address, invoice address and contact for contacts
[partner_contact_age_range](partner_contact_age_range/) | 16.0.1.0.1 | | Age Range for Contact's
[partner_contact_birthdate](partner_contact_birthdate/) | 16.0.1.0.0 | | Contact's birthdate
[partner_contact_department](partner_contact_department/) | 16.0.1.0.2 | | Assign contacts to departments
@@ -69,7 +69,7 @@ addon | version | maintainers | summary
[partner_identification_eori](partner_identification_eori/) | 16.0.1.0.0 | | This addon extends "Partner Identification Numbers" to provide a number category for EORI Number
[partner_identification_gln](partner_identification_gln/) | 16.0.1.0.1 | | This addon extends "Partner Identification Numbers" to provide a number category for GLN registration
[partner_industry_secondary](partner_industry_secondary/) | 16.0.1.0.1 | | Add secondary partner industries
-[partner_interest_group](partner_interest_group/) | 16.0.1.1.0 | [](https://github.com/victor-champonnois) | Add Interest Group to Partners
+[partner_interest_group](partner_interest_group/) | 16.0.1.2.0 | [](https://github.com/victor-champonnois) | Add Interest Group to Partners
[partner_label](partner_label/) | 16.0.1.0.0 | | Print partner labels
[partner_lastname_uppercase](partner_lastname_uppercase/) | 16.0.1.0.1 | | Uppercases the the last names of partners
[partner_manual_rank](partner_manual_rank/) | 16.0.1.1.2 | [](https://github.com/luisg123v) [](https://github.com/frahikLV) | Be able to manually flag partners as customer or supplier.
diff --git a/partner_contact_address_default/README.rst b/partner_contact_address_default/README.rst
index fedca3a2d59..9f253e65311 100644
--- a/partner_contact_address_default/README.rst
+++ b/partner_contact_address_default/README.rst
@@ -7,7 +7,7 @@ Partner Contact address default
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:b0bc360740d521fe8611939734e13382bffa7d27fcb3eb6bdf16a2de39161928
+ !! source digest: sha256:9496d2d1f99fe0aef45114a95ae30624127d3453d894ad1713156e670f6c9d09
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -29,7 +29,7 @@ Partner Contact address default
|badge1| |badge2| |badge3| |badge4| |badge5|
This module extends the functionality of base partner module to allow to set a
-default delivery and invoice address for contacts.
+default delivery and invoice address and a default contact for contacts.
**Table of contents**
@@ -40,7 +40,7 @@ Usage
=====
#. Go to *Contacts*.
-#. Select default delivery address or invoice address for partner.
+#. Select default delivery address, invoice address or contact for partner.
Bug Tracker
===========
@@ -76,6 +76,10 @@ Contributors
* Carlos Reyes
+* `ForgeFlow `_:
+
+ * Laura Cazorla
+
Maintainers
~~~~~~~~~~~
diff --git a/partner_contact_address_default/__manifest__.py b/partner_contact_address_default/__manifest__.py
index f94913dfeb4..a53d4f08046 100644
--- a/partner_contact_address_default/__manifest__.py
+++ b/partner_contact_address_default/__manifest__.py
@@ -3,8 +3,8 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Partner Contact address default",
- "summary": "Set a default delivery and invoice address for contacts",
- "version": "16.0.1.0.0",
+ "summary": "Set a default delivery address, invoice address and contact for contacts",
+ "version": "16.0.1.1.0",
"development_status": "Beta",
"category": "Generic Modules/Base",
"website": "https://github.com/OCA/partner-contact",
diff --git a/partner_contact_address_default/i18n/es.po b/partner_contact_address_default/i18n/es.po
index a5e1203b406..d61a7e5d69a 100644
--- a/partner_contact_address_default/i18n/es.po
+++ b/partner_contact_address_default/i18n/es.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-01-11 10:32+0000\n"
-"PO-Revision-Date: 2023-01-11 10:32+0000\n"
+"POT-Creation-Date: 2024-03-11 07:35+0000\n"
+"PO-Revision-Date: 2024-03-11 07:35+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
@@ -21,6 +21,12 @@ msgstr ""
msgid "Contact"
msgstr "Contacto"
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr "Contacto predeterminado"
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -45,5 +51,7 @@ msgstr "Dirección de envío"
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
-msgstr "Puede forzar las dirección de envío y facturación para estos contactos"
+msgid "You can force contact, delivery and invoice address for this contacts."
+msgstr ""
+"Puede forzar el contacto y las direcciones de envío y facturación para estos "
+"contactos."
diff --git a/partner_contact_address_default/i18n/fr.po b/partner_contact_address_default/i18n/fr.po
index 27aab3de71e..28b39b45935 100644
--- a/partner_contact_address_default/i18n/fr.po
+++ b/partner_contact_address_default/i18n/fr.po
@@ -21,6 +21,12 @@ msgstr ""
msgid "Contact"
msgstr ""
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr ""
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -45,10 +51,13 @@ msgstr "Adresse de livraison"
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
+msgid "You can force contact, delivery and invoice address for this contacts."
msgstr ""
-"Vous pouvez forcer l'adresse de livraison et de facturation pour ces "
-"contacts."
+
+#~ msgid "You can force and delivery and invoice address for this contacts."
+#~ msgstr ""
+#~ "Vous pouvez forcer l'adresse de livraison et de facturation pour ces "
+#~ "contacts."
#~ msgid "Display Name"
#~ msgstr "Nom affiché"
diff --git a/partner_contact_address_default/i18n/fr_FR.po b/partner_contact_address_default/i18n/fr_FR.po
index 4a23729a426..32e06752bb9 100644
--- a/partner_contact_address_default/i18n/fr_FR.po
+++ b/partner_contact_address_default/i18n/fr_FR.po
@@ -21,6 +21,12 @@ msgstr ""
msgid "Contact"
msgstr ""
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr ""
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -45,10 +51,13 @@ msgstr "Adresse de livraison"
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
+msgid "You can force contact, delivery and invoice address for this contacts."
msgstr ""
-"Vous pouvez forcer l'adresse de livraison et de facturation pour ces "
-"contacts."
+
+#~ msgid "You can force and delivery and invoice address for this contacts."
+#~ msgstr ""
+#~ "Vous pouvez forcer l'adresse de livraison et de facturation pour ces "
+#~ "contacts."
#~ msgid "Display Name"
#~ msgstr "Nom affiché"
diff --git a/partner_contact_address_default/i18n/it.po b/partner_contact_address_default/i18n/it.po
index edc597b38a9..18e11c5aa3a 100644
--- a/partner_contact_address_default/i18n/it.po
+++ b/partner_contact_address_default/i18n/it.po
@@ -21,6 +21,12 @@ msgstr ""
msgid "Contact"
msgstr "Contatto"
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr ""
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -47,7 +53,10 @@ msgstr "Indirizzo di spedizione"
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
+msgid "You can force contact, delivery and invoice address for this contacts."
msgstr ""
-"Si possono forzare gli indirizzi di spedizione e fatturazione per questo "
-"contatto."
+
+#~ msgid "You can force and delivery and invoice address for this contacts."
+#~ msgstr ""
+#~ "Si possono forzare gli indirizzi di spedizione e fatturazione per questo "
+#~ "contatto."
diff --git a/partner_contact_address_default/i18n/partner_contact_address_default.pot b/partner_contact_address_default/i18n/partner_contact_address_default.pot
index d72c9fef142..65db830c9d9 100644
--- a/partner_contact_address_default/i18n/partner_contact_address_default.pot
+++ b/partner_contact_address_default/i18n/partner_contact_address_default.pot
@@ -18,6 +18,12 @@ msgstr ""
msgid "Contact"
msgstr ""
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr ""
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -42,5 +48,5 @@ msgstr ""
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
+msgid "You can force contact, delivery and invoice address for this contacts."
msgstr ""
diff --git a/partner_contact_address_default/i18n/pt.po b/partner_contact_address_default/i18n/pt.po
index f6aff5ff888..b0d34867084 100644
--- a/partner_contact_address_default/i18n/pt.po
+++ b/partner_contact_address_default/i18n/pt.po
@@ -21,6 +21,12 @@ msgstr ""
msgid "Contact"
msgstr "Contacto"
+#. module: partner_contact_address_default
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_partner__partner_contact_id
+#: model:ir.model.fields,field_description:partner_contact_address_default.field_res_users__partner_contact_id
+msgid "Default contact"
+msgstr ""
+
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
msgid "Force addresses"
@@ -46,5 +52,8 @@ msgstr "Endereço de envio"
#. module: partner_contact_address_default
#: model_terms:ir.ui.view,arch_db:partner_contact_address_default.view_partner_form
-msgid "You can force and delivery and invoice address for this contacts."
-msgstr "Pode forçar um endereço de envio e faturação para este contacto."
+msgid "You can force contact, delivery and invoice address for this contacts."
+msgstr ""
+
+#~ msgid "You can force and delivery and invoice address for this contacts."
+#~ msgstr "Pode forçar um endereço de envio e faturação para este contacto."
diff --git a/partner_contact_address_default/models/res_partner.py b/partner_contact_address_default/models/res_partner.py
index 3160f150770..13bb2fcfd7a 100644
--- a/partner_contact_address_default/models/res_partner.py
+++ b/partner_contact_address_default/models/res_partner.py
@@ -1,5 +1,6 @@
# Copyright 2020 Tecnativa - Carlos Dauden
# Copyright 2020 Tecnativa - Sergio Teruel
+# Copyright 2024 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
@@ -15,14 +16,18 @@ class ResPartner(models.Model):
comodel_name="res.partner",
string="Invoice address",
)
+ partner_contact_id = fields.Many2one(
+ comodel_name="res.partner",
+ string="Default contact",
+ )
def get_address_default_type(self):
"""This will be the extension method for other contact types"""
- return ["delivery", "invoice"]
+ return ["delivery", "invoice", "contact"]
def address_get(self, adr_pref=None):
- """Force the delivery or invoice addresses. It will try to default
- to the one set in the commercial partner if any"""
+ """Force the contact, delivery or invoice addresses. It will
+ try to default to the one set in the commercial partner if any"""
res = super().address_get(adr_pref)
adr_pref = adr_pref or []
default_address_type_list = {
@@ -47,4 +52,7 @@ def write(self, vals):
self.search([("partner_invoice_id", "in", self.ids)]).write(
{"partner_invoice_id": False}
)
+ self.search([("partner_contact_id", "in", self.ids)]).write(
+ {"partner_contact_id": False}
+ )
return super().write(vals)
diff --git a/partner_contact_address_default/readme/CONTRIBUTORS.rst b/partner_contact_address_default/readme/CONTRIBUTORS.rst
index 3ee18b2565a..56728105c7c 100644
--- a/partner_contact_address_default/readme/CONTRIBUTORS.rst
+++ b/partner_contact_address_default/readme/CONTRIBUTORS.rst
@@ -10,3 +10,7 @@
* `Studio73 `_:
* Carlos Reyes
+
+* `ForgeFlow `_:
+
+ * Laura Cazorla
diff --git a/partner_contact_address_default/readme/DESCRIPTION.rst b/partner_contact_address_default/readme/DESCRIPTION.rst
index 479496eccfa..dfb67d6848b 100644
--- a/partner_contact_address_default/readme/DESCRIPTION.rst
+++ b/partner_contact_address_default/readme/DESCRIPTION.rst
@@ -1,2 +1,2 @@
This module extends the functionality of base partner module to allow to set a
-default delivery and invoice address for contacts.
+default delivery and invoice address and a default contact for contacts.
diff --git a/partner_contact_address_default/readme/USAGE.rst b/partner_contact_address_default/readme/USAGE.rst
index 3673953be53..aa423d56cdf 100644
--- a/partner_contact_address_default/readme/USAGE.rst
+++ b/partner_contact_address_default/readme/USAGE.rst
@@ -1,2 +1,2 @@
#. Go to *Contacts*.
-#. Select default delivery address or invoice address for partner.
+#. Select default delivery address, invoice address or contact for partner.
diff --git a/partner_contact_address_default/static/description/index.html b/partner_contact_address_default/static/description/index.html
index 53ec0421da6..9e5fb212002 100644
--- a/partner_contact_address_default/static/description/index.html
+++ b/partner_contact_address_default/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -367,11 +366,11 @@ Partner Contact address default
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:b0bc360740d521fe8611939734e13382bffa7d27fcb3eb6bdf16a2de39161928
+!! source digest: sha256:9496d2d1f99fe0aef45114a95ae30624127d3453d894ad1713156e670f6c9d09
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

This module extends the functionality of base partner module to allow to set a
-default delivery and invoice address for contacts.
+default delivery and invoice address and a default contact for contacts.
Table of contents
@@ -389,7 +388,7 @@ Partner Contact address default
- Go to Contacts.
-- Select default delivery address or invoice address for partner.
+- Select default delivery address, invoice address or contact for partner.
@@ -424,6 +423,10 @@
Carlos Reyes
+
ForgeFlow:
+
diff --git a/partner_contact_address_default/tests/test_partner_contact_address_default.py b/partner_contact_address_default/tests/test_partner_contact_address_default.py
index 36b2ac8f139..a3b9073bd27 100644
--- a/partner_contact_address_default/tests/test_partner_contact_address_default.py
+++ b/partner_contact_address_default/tests/test_partner_contact_address_default.py
@@ -27,27 +27,39 @@ def setUpClass(cls):
cls.partner_child_invoice = cls.Partner.create(
{"name": "Child invoice", "type": "invoice", "parent_id": cls.partner.id}
)
+ cls.partner_child_contact = cls.Partner.create(
+ {"name": "Child contact", "type": "contact", "parent_id": cls.partner.id}
+ )
def test_contact_address_default(self):
self.partner.partner_delivery_id = self.partner
self.partner.partner_invoice_id = self.partner
- res = self.partner.address_get(["delivery", "invoice"])
+ self.partner.partner_contact_id = self.partner
+ res = self.partner.address_get(["delivery", "invoice", "contact"])
self.assertEqual(res["delivery"], self.partner.id)
self.assertEqual(res["invoice"], self.partner.id)
+ self.assertEqual(res["contact"], self.partner.id)
self.partner_child_delivery2.partner_delivery_id = self.partner_child_delivery2
self.partner_child_delivery2.partner_invoice_id = self.partner_child_delivery2
- res = self.partner_child_delivery2.address_get(["delivery", "invoice"])
+ self.partner_child_delivery2.partner_contact_id = self.partner_child_delivery2
+ res = self.partner_child_delivery2.address_get(
+ ["delivery", "invoice", "contact"]
+ )
self.assertEqual(res["delivery"], self.partner_child_delivery2.id)
self.assertEqual(res["invoice"], self.partner_child_delivery2.id)
+ self.assertEqual(res["contact"], self.partner_child_delivery2.id)
def test_contact_address_archived(self):
self.partner.partner_delivery_id = self.partner_child_delivery2
self.partner.partner_invoice_id = self.partner_child_invoice
+ self.partner.partner_contact_id = self.partner_child_contact
+ self.partner_child_contact.write({"active": False})
self.partner_child_invoice.write({"active": False})
self.partner_child_delivery2.write({"active": False})
- res = self.partner.address_get(["delivery", "invoice"])
+ res = self.partner.address_get(["delivery", "invoice", "contact"])
# As partner_child_delivery2 is archived, even though it is set as
# partner_delivery_id it should fall back to partner_child_delivery1 here:
self.assertEqual(res["delivery"], self.partner_child_delivery1.id)
self.assertEqual(res["invoice"], self.partner.id)
+ self.assertEqual(res["contact"], self.partner.id)
diff --git a/partner_contact_address_default/views/res_partner_views.xml b/partner_contact_address_default/views/res_partner_views.xml
index 25f864a5f4f..fae2c271929 100644
--- a/partner_contact_address_default/views/res_partner_views.xml
+++ b/partner_contact_address_default/views/res_partner_views.xml
@@ -12,14 +12,19 @@
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'delivery')]"
widget="selection"
/>
-
-
+
+
+
@@ -31,7 +36,7 @@
You can force and delivery and invoice address for this contacts.
+ >You can force contact, delivery and invoice address for this contacts.
If you keep empty this fields the Odoo's behavior will be normal
@@ -48,6 +53,12 @@
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'invoice')]"
/>
+
+
+
diff --git a/partner_employee_quantity/i18n/it.po b/partner_employee_quantity/i18n/it.po
index 51227c6a2a3..c9166f84f43 100644
--- a/partner_employee_quantity/i18n/it.po
+++ b/partner_employee_quantity/i18n/it.po
@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-26 15:33+0000\n"
-"PO-Revision-Date: 2023-03-23 13:23+0000\n"
+"PO-Revision-Date: 2024-03-18 09:15+0000\n"
"Last-Translator: mymage \n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
@@ -17,12 +17,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.14.1\n"
+"X-Generator: Weblate 4.17\n"
#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Contact"
-msgstr ""
+msgstr "Contatto"
#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range__create_uid
@@ -44,18 +44,18 @@ msgstr "Nome visualizzato"
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users__employee_quantity
#: model_terms:ir.ui.view,arch_db:partner_employee_quantity.view_res_partner_filter
msgid "Employee Quantity"
-msgstr ""
+msgstr "Quantità dipendente"
#. module: partner_employee_quantity
#: model_terms:ir.ui.view,arch_db:partner_employee_quantity.view_partner_form
msgid "Employee quantity"
-msgstr ""
+msgstr "Quantità dipendente"
#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner__employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users__employee_quantity_range_id
msgid "Employee quantity range"
-msgstr ""
+msgstr "Intervallo quantità dipendente"
#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range__id
@@ -85,20 +85,20 @@ msgstr "Nome"
#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range
msgid "Partner employee quantity range"
-msgstr ""
+msgstr "Intervallo quantità dipendente partner"
#. module: partner_employee_quantity
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner__employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_users__employee_quantity_range_id
msgid "Range of this partner depending on the employee quantity."
-msgstr ""
+msgstr "Intervallo di questo partner conseguente alla quantità dipendente."
#. module: partner_employee_quantity
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range
#: model_terms:ir.ui.view,arch_db:partner_employee_quantity.employees_range_tree_view
msgid "Ranges by quantity of employees"
-msgstr ""
+msgstr "Intervalli per quantità di dipendenti"
#~ msgid "Partner"
#~ msgstr "Partner"
diff --git a/partner_interest_group/README.rst b/partner_interest_group/README.rst
index d832d455b5c..3138f7e9b0d 100644
--- a/partner_interest_group/README.rst
+++ b/partner_interest_group/README.rst
@@ -7,7 +7,7 @@ Partner Interest Group
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:f870a02c04eae27f79bf2540539573a8dc3af0f67d8a41d7b0a639a2d78a7fc9
+ !! source digest: sha256:fbf0ef464e79195f5f811a3105be7dc7df24a2e6b8adfd41f52f96d1d6b8c24f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/partner_interest_group/__manifest__.py b/partner_interest_group/__manifest__.py
index 099826a2af0..cd363251396 100644
--- a/partner_interest_group/__manifest__.py
+++ b/partner_interest_group/__manifest__.py
@@ -6,7 +6,7 @@
"name": "Partner Interest Group",
"summary": """
Add Interest Group to Partners""",
- "version": "16.0.1.1.0",
+ "version": "16.0.1.2.0",
"category": "Partner",
"website": "https://github.com/OCA/partner-contact",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
@@ -19,6 +19,7 @@
"views/res_partner_interest_group_view.xml",
"views/res_partner_view.xml",
"security/ir.model.access.csv",
+ "security/interest_group_rules.xml",
],
"demo": [],
"qweb": [],
diff --git a/partner_interest_group/i18n/es.po b/partner_interest_group/i18n/es.po
index d181596416f..b40a9fac885 100644
--- a/partner_interest_group/i18n/es.po
+++ b/partner_interest_group/i18n/es.po
@@ -6,21 +6,26 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2023-08-31 08:13+0000\n"
-"Last-Translator: Ivorra78 \n"
-"Language-Team: none\n"
-"Language: es\n"
+"POT-Creation-Date: 2024-01-30 14:22+0000\n"
+"PO-Revision-Date: 2024-01-30 14:22+0000\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.17\n"
+"Plural-Forms: \n"
#. module: partner_interest_group
#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__active
msgid "Active"
msgstr "Activo"
+#. module: partner_interest_group
+#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__company_id
+msgid "Company"
+msgstr "Compañía"
+
#. module: partner_interest_group
#: model:ir.model,name:partner_interest_group.model_res_partner_interest_group
msgid "Configurable Interest Group for Partners"
@@ -59,7 +64,7 @@ msgstr "ID (identificación)"
#: model:ir.ui.menu,name:partner_interest_group.menu_res_partner_interest_group
#: model_terms:ir.ui.view,arch_db:partner_interest_group.res_partner_interest_group_form_view
msgid "Interest Group"
-msgstr "Grupo de interés"
+msgstr "Grupos de interés"
#. module: partner_interest_group
#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group____last_update
diff --git a/partner_interest_group/i18n/fi.po b/partner_interest_group/i18n/fi.po
index e492eaaa598..0fdcaf37431 100644
--- a/partner_interest_group/i18n/fi.po
+++ b/partner_interest_group/i18n/fi.po
@@ -21,6 +21,11 @@ msgstr ""
msgid "Active"
msgstr "Aktiivinen"
+#. module: partner_interest_group
+#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__company_id
+msgid "Company"
+msgstr ""
+
#. module: partner_interest_group
#: model:ir.model,name:partner_interest_group.model_res_partner_interest_group
msgid "Configurable Interest Group for Partners"
diff --git a/partner_interest_group/i18n/fr.po b/partner_interest_group/i18n/fr.po
index dca14d87b4b..e026f359df9 100644
--- a/partner_interest_group/i18n/fr.po
+++ b/partner_interest_group/i18n/fr.po
@@ -21,6 +21,11 @@ msgstr ""
msgid "Active"
msgstr "Actif"
+#. module: partner_interest_group
+#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__company_id
+msgid "Company"
+msgstr ""
+
#. module: partner_interest_group
#: model:ir.model,name:partner_interest_group.model_res_partner_interest_group
msgid "Configurable Interest Group for Partners"
diff --git a/partner_interest_group/i18n/it.po b/partner_interest_group/i18n/it.po
index aaaa952455a..19b1bb2681a 100644
--- a/partner_interest_group/i18n/it.po
+++ b/partner_interest_group/i18n/it.po
@@ -21,6 +21,11 @@ msgstr ""
msgid "Active"
msgstr "Attivo"
+#. module: partner_interest_group
+#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__company_id
+msgid "Company"
+msgstr ""
+
#. module: partner_interest_group
#: model:ir.model,name:partner_interest_group.model_res_partner_interest_group
msgid "Configurable Interest Group for Partners"
diff --git a/partner_interest_group/i18n/partner_interest_group.pot b/partner_interest_group/i18n/partner_interest_group.pot
index 9b7090e0de0..a553db68e62 100644
--- a/partner_interest_group/i18n/partner_interest_group.pot
+++ b/partner_interest_group/i18n/partner_interest_group.pot
@@ -18,6 +18,11 @@ msgstr ""
msgid "Active"
msgstr ""
+#. module: partner_interest_group
+#: model:ir.model.fields,field_description:partner_interest_group.field_res_partner_interest_group__company_id
+msgid "Company"
+msgstr ""
+
#. module: partner_interest_group
#: model:ir.model,name:partner_interest_group.model_res_partner_interest_group
msgid "Configurable Interest Group for Partners"
diff --git a/partner_interest_group/models/res_partner_interest_group.py b/partner_interest_group/models/res_partner_interest_group.py
index f0e9ac0b1c7..9df01a06494 100644
--- a/partner_interest_group/models/res_partner_interest_group.py
+++ b/partner_interest_group/models/res_partner_interest_group.py
@@ -8,3 +8,9 @@ class ResPartnerInterestGroup(models.Model):
name = fields.Char(string="Interest Group")
active = fields.Boolean(default=True)
partner_id = fields.Many2many("res.partner")
+ company_id = fields.Many2one(
+ "res.company",
+ required=False,
+ domain=lambda self: [("id", "=", self.env.company.id)],
+ string="Company",
+ )
diff --git a/partner_interest_group/security/interest_group_rules.xml b/partner_interest_group/security/interest_group_rules.xml
new file mode 100644
index 00000000000..4ba9a956ac8
--- /dev/null
+++ b/partner_interest_group/security/interest_group_rules.xml
@@ -0,0 +1,11 @@
+
+
+
+ Partner interest group: multi-company
+
+
+
+ ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]
+
+
+
diff --git a/partner_interest_group/static/description/index.html b/partner_interest_group/static/description/index.html
index 009f898459d..7a017c77d34 100644
--- a/partner_interest_group/static/description/index.html
+++ b/partner_interest_group/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -367,7 +366,7 @@ Partner Interest Group
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:f870a02c04eae27f79bf2540539573a8dc3af0f67d8a41d7b0a639a2d78a7fc9
+!! source digest: sha256:fbf0ef464e79195f5f811a3105be7dc7df24a2e6b8adfd41f52f96d1d6b8c24f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Adds an Interests Group field (many2many), with configurable
diff --git a/partner_interest_group/views/res_partner_interest_group_view.xml b/partner_interest_group/views/res_partner_interest_group_view.xml
index ba9b9e070ac..761862c0855 100644
--- a/partner_interest_group/views/res_partner_interest_group_view.xml
+++ b/partner_interest_group/views/res_partner_interest_group_view.xml
@@ -11,6 +11,7 @@
+
@@ -21,6 +22,7 @@