base_usability: add supplier_ref in display_full_address, to have the proper label for POs
This commit is contained in:
@@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 14.0\n"
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-02-17 16:46+0000\n"
|
"POT-Creation-Date: 2021-02-17 16:55+0000\n"
|
||||||
"PO-Revision-Date: 2021-02-17 16:46+0000\n"
|
"PO-Revision-Date: 2021-02-17 16:55+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -150,6 +150,13 @@ msgstr ""
|
|||||||
msgid "Search Countries"
|
msgid "Search Countries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Supplier Number:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
||||||
msgid "Tag Name"
|
msgid "Tag Name"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 14.0\n"
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-02-17 16:47+0000\n"
|
"POT-Creation-Date: 2021-02-17 16:55+0000\n"
|
||||||
"PO-Revision-Date: 2021-02-17 16:47+0000\n"
|
"PO-Revision-Date: 2021-02-17 16:55+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -63,7 +63,7 @@ msgstr "Nom affiché"
|
|||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "E-mail:"
|
msgid "E-mail:"
|
||||||
msgstr ""
|
msgstr "E-mail :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
@@ -150,6 +150,13 @@ msgstr "Référence"
|
|||||||
msgid "Search Countries"
|
msgid "Search Countries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Supplier Number:"
|
||||||
|
msgstr "N° fournisseur :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
||||||
msgid "Tag Name"
|
msgid "Tag Name"
|
||||||
|
|||||||
@@ -131,6 +131,15 @@ class ResPartner(models.Model):
|
|||||||
'value': self.ref,
|
'value': self.ref,
|
||||||
'label': _('Customer Number:'),
|
'label': _('Customer Number:'),
|
||||||
},
|
},
|
||||||
|
# Same with 'supplier_' prefix, to change the label
|
||||||
|
'supplier_commercial_ref': {
|
||||||
|
'value': self.commercial_partner_id.ref,
|
||||||
|
'label': _('Supplier Number:'),
|
||||||
|
},
|
||||||
|
'supplier_ref': {
|
||||||
|
'value': self.ref,
|
||||||
|
'label': _('Supplier Number:'),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
res = []
|
res = []
|
||||||
for detail in details:
|
for detail in details:
|
||||||
|
|||||||
Reference in New Issue
Block a user