From 4786228df49224cf55e2cdf09937080b1ea44853 Mon Sep 17 00:00:00 2001 From: juanjo-nan <57089222+juanjo-nan@users.noreply.github.com> Date: Tue, 14 Dec 2021 14:07:06 +0100 Subject: [PATCH] Move the product unit_info functionality to a new module. (#1) product_information_uom (https://github.com/NaN-tic/product_information_uom) Task #043706 --- __init__.py | 2 -- locale/ca.po | 20 -------------------- locale/es.po | 20 -------------------- template.xml | 12 ------------ tryton.cfg | 2 +- view/template_form.xml | 23 ----------------------- 6 files changed, 1 insertion(+), 78 deletions(-) delete mode 100644 template.xml delete mode 100644 view/template_form.xml diff --git a/__init__.py b/__init__.py index cb204ba..7702d04 100644 --- a/__init__.py +++ b/__init__.py @@ -1,13 +1,11 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from trytond.pool import Pool -from . import template from . import invoice def register(): Pool.register( - template.Template, invoice.InvoiceLine, module='account_invoice_information_uom', type_='model') Pool.register( diff --git a/locale/ca.po b/locale/ca.po index fd012c1..3fbfef2 100644 --- a/locale/ca.po +++ b/locale/ca.po @@ -21,23 +21,3 @@ msgstr "Preu unitari UdM Informativa" msgctxt "field:account.invoice.line,show_info_unit:" msgid "Show Information UOM" msgstr "Mostrar UdM Informativa" - -msgctxt "field:product.template,info_list_price:" -msgid "Information List Price" -msgstr "Preu de Venda UdM Informativa" - -msgctxt "field:product.template,info_ratio:" -msgid "Information Ratio" -msgstr "Ratio UdM informativa" - -msgctxt "field:product.template,info_unit:" -msgid "Information UOM" -msgstr "UdM Informativa" - -msgctxt "field:product.template,use_info_unit:" -msgid "Use Information UOM" -msgstr "Utilitzar UdM Informativa" - -msgctxt "view:product.template:" -msgid "Information UOM" -msgstr "UdM Informativa" diff --git a/locale/es.po b/locale/es.po index 9ef0b20..ab9f9eb 100644 --- a/locale/es.po +++ b/locale/es.po @@ -21,23 +21,3 @@ msgstr "Precio unitario UdM Informativa" msgctxt "field:account.invoice.line,show_info_unit:" msgid "Show Information UOM" msgstr "Mostrar UdM Informativa" - -msgctxt "field:product.template,info_list_price:" -msgid "Information List Price" -msgstr "Precio de Venda UdM Informativa" - -msgctxt "field:product.template,info_ratio:" -msgid "Information Ratio" -msgstr "Ratio UdM Informativa" - -msgctxt "field:product.template,info_unit:" -msgid "Information UOM" -msgstr "UdM Informativa" - -msgctxt "field:product.template,use_info_unit:" -msgid "Use Information UOM" -msgstr "Utilitzar UdM Informativa" - -msgctxt "view:product.template:" -msgid "Information UOM" -msgstr "UdM Informativa" diff --git a/template.xml b/template.xml deleted file mode 100644 index 70184cd..0000000 --- a/template.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - product.template - - template_form - - - diff --git a/tryton.cfg b/tryton.cfg index 7ec448a..8381f53 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -3,8 +3,8 @@ version=6.1.0 depends: ir account_invoice + product_information_uom extras_depend: sale xml: - template.xml invoice.xml diff --git a/view/template_form.xml b/view/template_form.xml deleted file mode 100644 index dc04bae..0000000 --- a/view/template_form.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - -