Skip to content

Commit

Permalink
Merge pull request #1363 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/partner-contact (16.0)
  • Loading branch information
bt-admin authored Jan 29, 2025
2 parents ffd15af + 37b092e commit 7a4bff6
Show file tree
Hide file tree
Showing 18 changed files with 616 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ addon | version | maintainers | summary
[partner_property](partner_property/) | 16.0.1.1.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Partner Property
[partner_purchase_manager](partner_purchase_manager/) | 16.0.1.0.1 | [![EmilioPascual](https://github.com/EmilioPascual.png?size=30px)](https://github.com/EmilioPascual) | Add purchase manager field in partner
[partner_ref_unique](partner_ref_unique/) | 16.0.1.0.0 | | Add an unique constraint to partner ref field
[partner_salesperson_propagate](partner_salesperson_propagate/) | 16.0.1.0.0 | | Propagate any changes in the salesperson field from the partner to its contacts.
[partner_second_lastname](partner_second_lastname/) | 16.0.1.0.2 | | Have split first and second lastnames
[partner_shipping_policy](partner_shipping_policy/) | 16.0.1.0.0 | | Define shipping policy at partners level.
[partner_stage](partner_stage/) | 16.0.1.0.1 | [![dreispt](https://github.com/dreispt.png?size=30px)](https://github.com/dreispt) | Add lifecycle Stages to Partners
Expand Down
11 changes: 7 additions & 4 deletions partner_industry_secondary/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ 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-12-27 09:37+0000\n"
"PO-Revision-Date: 2025-01-28 12:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\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"
"X-Generator: Weblate 5.6.2\n"

#. module: partner_industry_secondary
#: model:ir.model.fields,field_description:partner_industry_secondary.field_res_partner_industry__child_ids
Expand All @@ -38,12 +38,12 @@ msgstr "Contatto"
#: model:ir.model.fields,field_description:partner_industry_secondary.field_res_config_settings__display_last_child_first
#: model_terms:ir.ui.view,arch_db:partner_industry_secondary.res_config_settings_view_form
msgid "Display Child Industries first"
msgstr ""
msgstr "Visualizza prima i settori figli"

#. module: partner_industry_secondary
#: model_terms:ir.ui.view,arch_db:partner_industry_secondary.res_config_settings_view_form
msgid "Display like: Child (Parent &lt; Grandparent)"
msgstr ""
msgstr "Visualizza come: figlio (padre e nonno)"

#. module: partner_industry_secondary
#: model_terms:ir.ui.view,arch_db:partner_industry_secondary.res_config_settings_view_form
Expand Down Expand Up @@ -113,6 +113,9 @@ msgid ""
"industries.\n"
"Child (Parent < Grandparent)"
msgstr ""
"Imposta se si vuole visualizzare prima gli ultimi settori nella "
"visualizzazione dei settori.\n"
"Figlio (padre < nonno)"

#. module: partner_industry_secondary
#: model:ir.model.fields,field_description:partner_industry_secondary.field_res_partner__show_partner_industry_for_person
Expand Down
77 changes: 77 additions & 0 deletions partner_salesperson_propagate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
=============================
Partner Salesperson Propagate
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:38f002d44d246f6fd3ec36b63610b23b72807e213c3913ca9b1919ab5424f32c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/16.0/partner_salesperson_propagate
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_salesperson_propagate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Propagate the changes made in a partner's salesperson field (user_id) from parent to child.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_salesperson_propagate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* ForgeFlow

Contributors
~~~~~~~~~~~~

* Marina Alapont <[email protected]>


Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/16.0/partner_salesperson_propagate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions partner_salesperson_propagate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions partner_salesperson_propagate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2025 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Partner Salesperson Propagate",
"version": "16.0.1.0.0",
"author": "ForgeFlow,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact",
"category": "Customer Relationship Management",
"summary": "Propagate any changes in the salesperson field "
"from the partner to its contacts.",
"license": "AGPL-3",
"depends": [
"base",
],
"data": [],
"installable": True,
"application": False,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_salesperson_propagate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: partner_salesperson_propagate
#: model:ir.model,name:partner_salesperson_propagate.model_res_partner
msgid "Contact"
msgstr ""
1 change: 1 addition & 0 deletions partner_salesperson_propagate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
12 changes: 12 additions & 0 deletions partner_salesperson_propagate/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2025 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import api, models


class Partner(models.Model):
_inherit = "res.partner"

@api.model
def _commercial_fields(self):
return super()._commercial_fields() + ["user_id"]
2 changes: 2 additions & 0 deletions partner_salesperson_propagate/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Marina Alapont <[email protected]>

1 change: 1 addition & 0 deletions partner_salesperson_propagate/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Propagate the changes made in a partner's salesperson field (user_id) from parent to child.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7a4bff6

Please sign in to comment.