From bdc1568bff43ea0521fe8d5e22a5d9a955c6c0c9 Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sat, 11 Jul 2020 18:12:47 +0200 Subject: [PATCH 01/12] [ADD] new module mgmtsystem_partner --- mgmtsystem_partner/README.rst | 92 ++++ mgmtsystem_partner/__init__.py | 4 + mgmtsystem_partner/__manifest__.py | 19 + .../i18n/mgmtsystem_partner.pot | 58 +++ mgmtsystem_partner/models/__init__.py | 2 + .../models/mgmtsystem_partner.py | 16 + mgmtsystem_partner/readme/CONTRIBUTORS.rst | 1 + mgmtsystem_partner/readme/DESCRIPTION.rst | 5 + mgmtsystem_partner/readme/HISTORY.rst | 4 + mgmtsystem_partner/readme/USAGE.rst | 3 + .../static/description/icon.png | Bin 0 -> 11490 bytes .../static/description/index.html | 444 ++++++++++++++++++ 12 files changed, 648 insertions(+) create mode 100644 mgmtsystem_partner/README.rst create mode 100644 mgmtsystem_partner/__init__.py create mode 100644 mgmtsystem_partner/__manifest__.py create mode 100644 mgmtsystem_partner/i18n/mgmtsystem_partner.pot create mode 100644 mgmtsystem_partner/models/__init__.py create mode 100644 mgmtsystem_partner/models/mgmtsystem_partner.py create mode 100644 mgmtsystem_partner/readme/CONTRIBUTORS.rst create mode 100644 mgmtsystem_partner/readme/DESCRIPTION.rst create mode 100644 mgmtsystem_partner/readme/HISTORY.rst create mode 100644 mgmtsystem_partner/readme/USAGE.rst create mode 100644 mgmtsystem_partner/static/description/icon.png create mode 100644 mgmtsystem_partner/static/description/index.html diff --git a/mgmtsystem_partner/README.rst b/mgmtsystem_partner/README.rst new file mode 100644 index 000000000000..01e768aacf42 --- /dev/null +++ b/mgmtsystem_partner/README.rst @@ -0,0 +1,92 @@ +=========================== +Management System - Partner +=========================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fmanagement--system-lightgray.png?logo=github + :target: https://github.com/OCA/management-system/tree/12.0/mgmtsystem_partner + :alt: OCA/management-system +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/management-system-12-0/management-system-12-0-mgmtsystem_partner + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/128/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a bridge module between Management System and Partner + +Partner + +- Adds a Quality Address option on Partner's Contacts form. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Partner Quality E-mail + +* Go to Partner → Contacts & Addresses → create/select a contact → set type as Quality Address + +Changelog +========= + +12.0.1.0.0 (2020-07-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [INI] Initial development + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Associazione PNLUG - Gruppo Odoo + +Contributors +~~~~~~~~~~~~ + +* Stefano Consolaro + +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/management-system `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mgmtsystem_partner/__init__.py b/mgmtsystem_partner/__init__.py new file mode 100644 index 000000000000..0792fc131fda --- /dev/null +++ b/mgmtsystem_partner/__init__.py @@ -0,0 +1,4 @@ + +from . import ( + models, +) diff --git a/mgmtsystem_partner/__manifest__.py b/mgmtsystem_partner/__manifest__.py new file mode 100644 index 000000000000..79b1faea814c --- /dev/null +++ b/mgmtsystem_partner/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) + +{ + "name": "Management System - Partner", + "summary": "Add Management System reference on Partner's Contacts.", + "version": "12.0.1.0.0", + "development_status" : "Beta", + + "author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/management-system", + "license": "AGPL-3", + + "category": "Management System", + "depends": [ + 'mail', + 'contacts', + ], + 'installable': True, +} diff --git a/mgmtsystem_partner/i18n/mgmtsystem_partner.pot b/mgmtsystem_partner/i18n/mgmtsystem_partner.pot new file mode 100644 index 000000000000..a1663f6d1098 --- /dev/null +++ b/mgmtsystem_partner/i18n/mgmtsystem_partner.pot @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mgmtsystem_partner +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: mgmtsystem_partner +#: model:ir.model.fields,field_description:mgmtsystem_partner.field_res_partner__type +#: model:ir.model.fields,field_description:mgmtsystem_partner.field_res_users__type +msgid "Address Type" +msgstr "" + +#. module: mgmtsystem_partner +#: model:ir.model,name:mgmtsystem_partner.model_res_partner +#: selection:res.partner,type:0 +msgid "Contact" +msgstr "" + +#. module: mgmtsystem_partner +#: selection:res.partner,type:0 +msgid "Invoice address" +msgstr "" + +#. module: mgmtsystem_partner +#: selection:res.partner,type:0 +msgid "Other address" +msgstr "" + +#. module: mgmtsystem_partner +#: selection:res.partner,type:0 +msgid "Private Address" +msgstr "" + +#. module: mgmtsystem_partner +#: selection:res.partner,type:0 +msgid "Quality Address" +msgstr "" + +#. module: mgmtsystem_partner +#: selection:res.partner,type:0 +msgid "Shipping address" +msgstr "" + +#. module: mgmtsystem_partner +#: model:ir.model.fields,help:mgmtsystem_partner.field_res_partner__type +#: model:ir.model.fields,help:mgmtsystem_partner.field_res_users__type +msgid "Used by Sales and Purchase Apps to select the relevant address depending on the context." +msgstr "" + diff --git a/mgmtsystem_partner/models/__init__.py b/mgmtsystem_partner/models/__init__.py new file mode 100644 index 000000000000..0a97a1b6e0f9 --- /dev/null +++ b/mgmtsystem_partner/models/__init__.py @@ -0,0 +1,2 @@ + +from . import mgmtsystem_partner diff --git a/mgmtsystem_partner/models/mgmtsystem_partner.py b/mgmtsystem_partner/models/mgmtsystem_partner.py new file mode 100644 index 000000000000..3d8ca6fe316a --- /dev/null +++ b/mgmtsystem_partner/models/mgmtsystem_partner.py @@ -0,0 +1,16 @@ +# Copyright 2019 Marcelo Frare (Ass. PNLUG - Gruppo Odoo ) +# Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class PartnerReference(models.Model): + """ + Extend res.partner with contact info for communications on quality + """ + + _inherit = ['res.partner'] + + # type for manage quality contact + type = fields.Selection(selection_add=[('quality', 'Quality Address')]) diff --git a/mgmtsystem_partner/readme/CONTRIBUTORS.rst b/mgmtsystem_partner/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..d091f3962297 --- /dev/null +++ b/mgmtsystem_partner/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Stefano Consolaro diff --git a/mgmtsystem_partner/readme/DESCRIPTION.rst b/mgmtsystem_partner/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..c9f1e08f11e3 --- /dev/null +++ b/mgmtsystem_partner/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This is a bridge module between Management System and Partner + +Partner + +- Adds a Quality Address option on Partner's Contacts form. diff --git a/mgmtsystem_partner/readme/HISTORY.rst b/mgmtsystem_partner/readme/HISTORY.rst new file mode 100644 index 000000000000..fb71dd91f600 --- /dev/null +++ b/mgmtsystem_partner/readme/HISTORY.rst @@ -0,0 +1,4 @@ +12.0.1.0.0 (2020-07-11) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [INI] Initial development diff --git a/mgmtsystem_partner/readme/USAGE.rst b/mgmtsystem_partner/readme/USAGE.rst new file mode 100644 index 000000000000..0e7041d67030 --- /dev/null +++ b/mgmtsystem_partner/readme/USAGE.rst @@ -0,0 +1,3 @@ +Partner Quality E-mail + +* Go to Partner → Contacts & Addresses → create/select a contact → set type as Quality Address diff --git a/mgmtsystem_partner/static/description/icon.png b/mgmtsystem_partner/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..91e2d5dc2b91a56d6209d838491e8987d21c76d5 GIT binary patch literal 11490 zcmV<8EFIH{P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!Th!H!_n!Zrd(OR8J7N@SE!ab-BjUnQpd{#~>U{-mH- z&8};ptm-;yfYJH&ePCA<3bR_MYj`N#-@W5S+wY62VJ{ueQx8Z_tk}E~JKr&|~Rc zeh}MS@QXgO@0eQZa_L7GHxlf2`rm%tE~t$z*u_>C6saGcF4K>GTu2FV(0}*odO>V; z!9C=a?0j`=d9{A@PJK)6GP~^k%fzct{piPo-VvenaL>-? z+Gx3yR`$^$6>NUv1o)j_?K?x7A{ z%cq)BU?163C-lZKKD}~V^=BXhMmr4sp_+QSf6o#0$7@6XzUiWmzBPO=hWSD^{y<-d|QM^plQZwC#^Sv!f)x&}*X}&zNTxd2$<=P@Wp3JfEjn zt)#jkGf*W<<4GW1dgz_nRFji<1uXa5W%%19s4 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O+vf)%#K2!aSf{?fK7+DOm(!U%D0x1CM}c~_kE2`152WAE z825wO@TmmC~R@j5MstZmTy$Q z*?*jNWED_Zb^SRb2n57Oh0)-&4m7TRS9<8Dqc6JtUzCId0;adDQ>ApGu#!%dRZ&@0 z4OP?!jzKZJ-ieEjr1r5<)GaBRy75%>=NnsJCI1KifggzeAN{T7y4_ATbN~PV07*qo IM6N<$f_kSb^#A|> literal 0 HcmV?d00001 diff --git a/mgmtsystem_partner/static/description/index.html b/mgmtsystem_partner/static/description/index.html new file mode 100644 index 000000000000..b90237b7e5b2 --- /dev/null +++ b/mgmtsystem_partner/static/description/index.html @@ -0,0 +1,444 @@ + + + + + + +Management System - Partner + + + +

+

Management System - Partner

+ + +

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

This is a bridge module between Management System and Partner

+

Partner

+
    +
  • Adds a Quality Address option on Partner’s Contacts form.
  • +
+

Table of contents

+ +
+

Usage

+

Partner Quality E-mail

+
    +
  • Go to Partner → Contacts & Addresses → create/select a contact → set type as Quality Address
  • +
+
+
+

Changelog

+
+

12.0.1.0.0 (2020-07-11)

+
    +
  • [INI] Initial development
  • +
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Associazione PNLUG - Gruppo Odoo
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/management-system project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + From 6e7818ab491e9fa703ebdd2b5ba62de538cd1b90 Mon Sep 17 00:00:00 2001 From: Stefano Consolaro Date: Sun, 6 Nov 2022 20:25:52 +0100 Subject: [PATCH 02/12] [MIG] mgmtsystem_partner: Migration to 14.0 --- mgmtsystem_partner/README.rst | 10 ++++---- mgmtsystem_partner/__init__.py | 1 - mgmtsystem_partner/__manifest__.py | 24 +++++++++---------- mgmtsystem_partner/models/__init__.py | 3 +-- .../{mgmtsystem_partner.py => res_partner.py} | 7 +++--- .../static/description/index.html | 6 ++--- 6 files changed, 23 insertions(+), 28 deletions(-) rename mgmtsystem_partner/models/{mgmtsystem_partner.py => res_partner.py} (57%) diff --git a/mgmtsystem_partner/README.rst b/mgmtsystem_partner/README.rst index 01e768aacf42..6ffb23b6a616 100644 --- a/mgmtsystem_partner/README.rst +++ b/mgmtsystem_partner/README.rst @@ -14,13 +14,13 @@ Management System - Partner :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanagement--system-lightgray.png?logo=github - :target: https://github.com/OCA/management-system/tree/12.0/mgmtsystem_partner + :target: https://github.com/OCA/management-system/tree/14.0/mgmtsystem_partner :alt: OCA/management-system .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/management-system-12-0/management-system-12-0-mgmtsystem_partner + :target: https://translation.odoo-community.org/projects/management-system-14-0/management-system-14-0-mgmtsystem_partner :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/128/12.0 + :target: https://runbot.odoo-community.org/runbot/128/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -87,6 +87,6 @@ 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/management-system `_ project on GitHub. +This module is part of the `OCA/management-system `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mgmtsystem_partner/__init__.py b/mgmtsystem_partner/__init__.py index 0792fc131fda..48f23f7a7190 100644 --- a/mgmtsystem_partner/__init__.py +++ b/mgmtsystem_partner/__init__.py @@ -1,4 +1,3 @@ - from . import ( models, ) diff --git a/mgmtsystem_partner/__manifest__.py b/mgmtsystem_partner/__manifest__.py index 79b1faea814c..c621ce8c17c3 100644 --- a/mgmtsystem_partner/__manifest__.py +++ b/mgmtsystem_partner/__manifest__.py @@ -1,19 +1,17 @@ # Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) { - "name": "Management System - Partner", - "summary": "Add Management System reference on Partner's Contacts.", - "version": "12.0.1.0.0", - "development_status" : "Beta", - - "author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)", - "website": "https://github.com/OCA/management-system", - "license": "AGPL-3", - + "name": "Management System - Partner", + "summary": "Add Management System reference on Partner's Contacts.", + "version": "14.0.1.0.0", + "development_status": "Beta", + "author": "Associazione PNLUG - Gruppo Odoo, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/management-system", + "license": "AGPL-3", "category": "Management System", "depends": [ - 'mail', - 'contacts', - ], - 'installable': True, + "mail", + "contacts", + ], + "installable": True, } diff --git a/mgmtsystem_partner/models/__init__.py b/mgmtsystem_partner/models/__init__.py index 0a97a1b6e0f9..91fed54d404e 100644 --- a/mgmtsystem_partner/models/__init__.py +++ b/mgmtsystem_partner/models/__init__.py @@ -1,2 +1 @@ - -from . import mgmtsystem_partner +from . import res_partner diff --git a/mgmtsystem_partner/models/mgmtsystem_partner.py b/mgmtsystem_partner/models/res_partner.py similarity index 57% rename from mgmtsystem_partner/models/mgmtsystem_partner.py rename to mgmtsystem_partner/models/res_partner.py index 3d8ca6fe316a..d7148496f729 100644 --- a/mgmtsystem_partner/models/mgmtsystem_partner.py +++ b/mgmtsystem_partner/models/res_partner.py @@ -1,16 +1,15 @@ -# Copyright 2019 Marcelo Frare (Ass. PNLUG - Gruppo Odoo ) # Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo ) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models -class PartnerReference(models.Model): +class ResPartner(models.Model): """ Extend res.partner with contact info for communications on quality """ - _inherit = ['res.partner'] + _inherit = ["res.partner"] # type for manage quality contact - type = fields.Selection(selection_add=[('quality', 'Quality Address')]) + type = fields.Selection(selection_add=[("quality", "Quality Address")]) diff --git a/mgmtsystem_partner/static/description/index.html b/mgmtsystem_partner/static/description/index.html index b90237b7e5b2..89eb25f86317 100644 --- a/mgmtsystem_partner/static/description/index.html +++ b/mgmtsystem_partner/static/description/index.html @@ -367,7 +367,7 @@

Management System - Partner

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/management-system Translate me on Weblate Try me on Runbot

This is a bridge module between Management System and Partner

Partner

    @@ -411,7 +411,7 @@

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

    +feedback.

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

    @@ -435,7 +435,7 @@

    Maintainers

    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/management-system project on GitHub.

    +

    This module is part of the OCA/management-system project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    From e9035967a1854d0dae9e6e68596fbec7d590e30a Mon Sep 17 00:00:00 2001 From: oca-ci Date: Sun, 13 Nov 2022 18:39:39 +0000 Subject: [PATCH 03/12] [UPD] Update mgmtsystem_partner.pot --- .../i18n/mgmtsystem_partner.pot | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/mgmtsystem_partner/i18n/mgmtsystem_partner.pot b/mgmtsystem_partner/i18n/mgmtsystem_partner.pot index a1663f6d1098..c8ab8f9df24e 100644 --- a/mgmtsystem_partner/i18n/mgmtsystem_partner.pot +++ b/mgmtsystem_partner/i18n/mgmtsystem_partner.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mgmtsystem_partner +# * mgmtsystem_partner # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,38 +21,33 @@ msgstr "" #. module: mgmtsystem_partner #: model:ir.model,name:mgmtsystem_partner.model_res_partner -#: selection:res.partner,type:0 msgid "Contact" msgstr "" #. module: mgmtsystem_partner -#: selection:res.partner,type:0 -msgid "Invoice address" +#: model:ir.model.fields,field_description:mgmtsystem_partner.field_res_partner__display_name +msgid "Display Name" msgstr "" #. module: mgmtsystem_partner -#: selection:res.partner,type:0 -msgid "Other address" +#: model:ir.model.fields,field_description:mgmtsystem_partner.field_res_partner__id +msgid "ID" msgstr "" #. module: mgmtsystem_partner -#: selection:res.partner,type:0 -msgid "Private Address" -msgstr "" - -#. module: mgmtsystem_partner -#: selection:res.partner,type:0 -msgid "Quality Address" +#: model:ir.model.fields,help:mgmtsystem_partner.field_res_partner__type +#: model:ir.model.fields,help:mgmtsystem_partner.field_res_users__type +msgid "" +"Invoice & Delivery addresses are used in sales orders. Private addresses are" +" only visible by authorized users." msgstr "" #. module: mgmtsystem_partner -#: selection:res.partner,type:0 -msgid "Shipping address" +#: model:ir.model.fields,field_description:mgmtsystem_partner.field_res_partner____last_update +msgid "Last Modified on" msgstr "" #. module: mgmtsystem_partner -#: model:ir.model.fields,help:mgmtsystem_partner.field_res_partner__type -#: model:ir.model.fields,help:mgmtsystem_partner.field_res_users__type -msgid "Used by Sales and Purchase Apps to select the relevant address depending on the context." +#: model:ir.model.fields.selection,name:mgmtsystem_partner.selection__res_partner__type__quality +msgid "Quality Address" msgstr "" - From b26e342a6ee626e67b52dc360b40b79f91f95781 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 13 Nov 2022 18:42:23 +0000 Subject: [PATCH 04/12] [UPD] README.rst --- mgmtsystem_partner/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mgmtsystem_partner/static/description/index.html b/mgmtsystem_partner/static/description/index.html index 89eb25f86317..9f95173ed981 100644 --- a/mgmtsystem_partner/static/description/index.html +++ b/mgmtsystem_partner/static/description/index.html @@ -3,7 +3,7 @@ - + Management System - Partner