mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[IMP] product_harmonized_system_delivery: Make product.template#hs_code related
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
1
product_harmonized_system_delivery/models/__init__.py
Normal file
1
product_harmonized_system_delivery/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import product
|
||||
11
product_harmonized_system_delivery/models/product.py
Normal file
11
product_harmonized_system_delivery/models/product.py
Normal 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)
|
||||
Reference in New Issue
Block a user