Move the product unit_info functionality to a new module. (#1)

product_information_uom (https://github.com/NaN-tic/product_information_uom)

Task #043706
This commit is contained in:
juanjo-nan 2021-12-14 14:07:06 +01:00 committed by Juanjo Garcia
parent 9cecffc606
commit 4786228df4
6 changed files with 1 additions and 78 deletions

View File

@ -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(

View File

@ -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"

View File

@ -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"

View File

@ -1,12 +0,0 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">template_form</field>
</record>
</data>
</tryton>

View File

@ -3,8 +3,8 @@ version=6.1.0
depends:
ir
account_invoice
product_information_uom
extras_depend:
sale
xml:
template.xml
invoice.xml

View File

@ -1,23 +0,0 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='general']/field[@name='list_price']"
position="after">
<label name="use_info_unit"/>
<field name="use_info_unit"/>
</xpath>
<xpath expr="/form/notebook/page[@id='general']" position="after">
<page id="information_uom" string="Information UOM">
<label name="use_info_unit"/>
<field name="use_info_unit"/>
<newline/>
<label name="info_ratio"/>
<field name="info_ratio"/>
<label name="info_unit"/>
<field name="info_unit"/>
<label name="info_list_price"/>
<field name="info_list_price"/>
</page>
</xpath>
</data>