[IMP] product_harmonized_system_delivery: Make product.template#hs_code related

This commit is contained in:
Holger Brunn
2021-08-10 17:28:06 +02:00
committed by Lukas Tran
parent 299548b1c1
commit c1e500000c
6 changed files with 82 additions and 1 deletions

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -4,7 +4,7 @@
{
"name": "Product Harmonized System Codes - Delivery",
"version": "14.0.1.0.0",
"version": "14.0.1.1.0",
"category": "Reporting",
"license": "AGPL-3",
"summary": "Hide native hs_code field provided by the delivery module",

View File

@@ -0,0 +1,33 @@
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__display_name
msgid "Display Name"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__id
msgid "ID"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template____last_update
msgid "Last Modified on"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product Template"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid ""
"Standardized code for international shipping and goods declaration. At the "
"moment, only used for the FedEx shipping provider."
msgstr ""

View File

@@ -1,5 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_harmonized_system_delivery
#
msgid ""
msgstr ""
@@ -11,3 +12,37 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__display_name
msgid "Display Name"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__hs_code
msgid "HS Code"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template__id
msgid "ID"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,field_description:product_harmonized_system_delivery.field_product_template____last_update
msgid "Last Modified on"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model,name:product_harmonized_system_delivery.model_product_template
msgid "Product Template"
msgstr ""
#. module: product_harmonized_system_delivery
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_product__hs_code
#: model:ir.model.fields,help:product_harmonized_system_delivery.field_product_template__hs_code
msgid ""
"Standardized code for international shipping and goods declaration. At the "
"moment, only used for the FedEx shipping provider."
msgstr ""

View File

@@ -0,0 +1 @@
from . import product

View File

@@ -0,0 +1,11 @@
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
# this field cannot be stored because hs_code_id is company dependent
hs_code = fields.Char(related="hs_code_id.hs_code", readonly=True, store=False)