first commit
This commit is contained in:
2
modules/stock_secondary_unit/__init__.py
Normal file
2
modules/stock_secondary_unit/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
Binary file not shown.
BIN
modules/stock_secondary_unit/__pycache__/stock.cpython-311.pyc
Normal file
BIN
modules/stock_secondary_unit/__pycache__/stock.cpython-311.pyc
Normal file
Binary file not shown.
35
modules/stock_secondary_unit/locale/bg.po
Normal file
35
modules/stock_secondary_unit/locale/bg.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/ca.po
Normal file
35
modules/stock_secondary_unit/locale/ca.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Categoria de la UdM secundaria del producte"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Quantitat secundaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Unitat secundaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Preu unitari secundari"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "La categoria de la unitat de mesura secundaria del producte."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Quantitat:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Preu unitari:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Unitat:"
|
||||
35
modules/stock_secondary_unit/locale/cs.po
Normal file
35
modules/stock_secondary_unit/locale/cs.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/de.po
Normal file
35
modules/stock_secondary_unit/locale/de.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Artikel Zweitmaßeinheitenkategorie"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Zweitmenge"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Zweitmaßeinheit"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Zweiteinzelpreis"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "Die Kategorie für die Zweitmaßeinheit des Artikels."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Menge:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Einzelpreis:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Einheit:"
|
||||
35
modules/stock_secondary_unit/locale/es.po
Normal file
35
modules/stock_secondary_unit/locale/es.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Categoría de la UdM secundaria del producto"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Cantidad secundaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Unidad secundaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Precio unitario secundario"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "La categoria de la unidad de medida secundaria del producto."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Cantidad:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Precio unitario:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Unidad:"
|
||||
35
modules/stock_secondary_unit/locale/es_419.po
Normal file
35
modules/stock_secondary_unit/locale/es_419.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/et.po
Normal file
35
modules/stock_secondary_unit/locale/et.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/fa.po
Normal file
35
modules/stock_secondary_unit/locale/fa.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/fi.po
Normal file
35
modules/stock_secondary_unit/locale/fi.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/fr.po
Normal file
35
modules/stock_secondary_unit/locale/fr.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Catégorie d'UDM secondaire du produit"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Quantité secondaire"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Unité secondaire"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Prix unitaire secondaire"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "La catégorie d'unité de mesure secondaire pour le produit."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Quantité :"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Prix unitaire :"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Unité :"
|
||||
35
modules/stock_secondary_unit/locale/hu.po
Normal file
35
modules/stock_secondary_unit/locale/hu.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/id.po
Normal file
35
modules/stock_secondary_unit/locale/id.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
36
modules/stock_secondary_unit/locale/it.po
Normal file
36
modules/stock_secondary_unit/locale/it.po
Normal file
@@ -0,0 +1,36 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Categoria UdM secondaria prodotto"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Quantità secondaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Unità secondaria"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Prezzo unitario secondario"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Quantità:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Prezzo unitario:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Unità:"
|
||||
35
modules/stock_secondary_unit/locale/lo.po
Normal file
35
modules/stock_secondary_unit/locale/lo.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/lt.po
Normal file
35
modules/stock_secondary_unit/locale/lt.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/nl.po
Normal file
35
modules/stock_secondary_unit/locale/nl.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Product secundaire maateenheid categorie"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Secundaire hoeveelheid"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Secundaire eenheid"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "secundaire eenheidsprijs"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "De categorie van de secundaire maateenheid van het product."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Hoeveelheid:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Eenheid prijs:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Eenheid:"
|
||||
35
modules/stock_secondary_unit/locale/pl.po
Normal file
35
modules/stock_secondary_unit/locale/pl.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/pt.po
Normal file
35
modules/stock_secondary_unit/locale/pt.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/ro.po
Normal file
35
modules/stock_secondary_unit/locale/ro.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr "Categorie secundară UM de produs"
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr "Cantitate secundară"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr "Unitatea secundară"
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr "Preţ Unitate Secundara"
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr "Categoria de unitate de măsură secundară pentru produs."
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr "Cantitate:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr "Preț unitar:"
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr "Unitate:"
|
||||
35
modules/stock_secondary_unit/locale/ru.po
Normal file
35
modules/stock_secondary_unit/locale/ru.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/sl.po
Normal file
35
modules/stock_secondary_unit/locale/sl.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/tr.po
Normal file
35
modules/stock_secondary_unit/locale/tr.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/uk.po
Normal file
35
modules/stock_secondary_unit/locale/uk.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
35
modules/stock_secondary_unit/locale/zh_CN.po
Normal file
35
modules/stock_secondary_unit/locale/zh_CN.po
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.move,product_secondary_uom_category:"
|
||||
msgid "Product Secondary UoM Category"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_quantity:"
|
||||
msgid "Secondary Quantity"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit:"
|
||||
msgid "Secondary Unit"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,secondary_unit_price:"
|
||||
msgid "Secondary Unit Price"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.move,product_secondary_uom_category:"
|
||||
msgid "The category of secondary Unit of Measure for the product."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Quantity:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit Price:"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.move:"
|
||||
msgid "Unit:"
|
||||
msgstr ""
|
||||
169
modules/stock_secondary_unit/stock.py
Normal file
169
modules/stock_secondary_unit/stock.py
Normal file
@@ -0,0 +1,169 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.modules.currency.fields import Monetary
|
||||
from trytond.modules.product import price_digits, round_price
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Eval
|
||||
|
||||
|
||||
class Move(metaclass=PoolMeta):
|
||||
__name__ = 'stock.move'
|
||||
|
||||
secondary_quantity = fields.Function(fields.Float(
|
||||
"Secondary Quantity", digits='secondary_unit',
|
||||
states={
|
||||
'invisible': ~Eval('secondary_unit'),
|
||||
'readonly': Eval('state').in_(
|
||||
['cancelled', 'assigned', 'done']),
|
||||
}),
|
||||
'on_change_with_secondary_quantity', setter='set_secondary')
|
||||
secondary_unit = fields.Many2One(
|
||||
'product.uom', "Secondary Unit", ondelete='RESTRICT',
|
||||
domain=[
|
||||
('category', '=', Eval('product_secondary_uom_category', -1)),
|
||||
],
|
||||
states={
|
||||
'invisible': ~Eval('product_secondary_uom_category'),
|
||||
'readonly': Eval('state').in_(['cancelled', 'assigned', 'done']),
|
||||
})
|
||||
secondary_unit_price = fields.Function(
|
||||
Monetary(
|
||||
"Secondary Unit Price", currency='currency', digits=price_digits,
|
||||
states={
|
||||
'invisible': (~Eval('unit_price_required')
|
||||
| ~Eval('secondary_unit')),
|
||||
'readonly': Eval('state') != 'draft',
|
||||
}),
|
||||
'on_change_with_secondary_unit_price', setter='set_secondary')
|
||||
|
||||
product_secondary_uom_category = fields.Function(
|
||||
fields.Many2One(
|
||||
'product.uom.category', "Product Secondary UoM Category",
|
||||
help="The category of secondary Unit of Measure for the product."),
|
||||
'get_product_secondary_uom_category')
|
||||
|
||||
@fields.depends('quantity', 'unit', 'secondary_unit', 'origin')
|
||||
def on_change_with_secondary_quantity(self, name=None):
|
||||
pool = Pool()
|
||||
Uom = pool.get('product.uom')
|
||||
if (self.quantity and self.unit and self.secondary_unit
|
||||
and (self.secondary_uom_factor or self.secondary_uom_rate)):
|
||||
return Uom.compute_qty(
|
||||
self.unit, self.quantity,
|
||||
self.secondary_unit, round=True,
|
||||
factor=self.secondary_uom_factor, rate=self.secondary_uom_rate)
|
||||
else:
|
||||
return None
|
||||
|
||||
@fields.depends('secondary_quantity', 'secondary_unit', 'unit', 'origin')
|
||||
def on_change_secondary_quantity(self):
|
||||
pool = Pool()
|
||||
Uom = pool.get('product.uom')
|
||||
if (self.secondary_quantity and self.secondary_unit and self.unit
|
||||
and (self.secondary_uom_factor or self.secondary_uom_rate)):
|
||||
self.quantity = Uom.compute_qty(
|
||||
self.secondary_unit, self.secondary_quantity,
|
||||
self.unit, round=True,
|
||||
factor=self.secondary_uom_rate, rate=self.secondary_uom_factor)
|
||||
|
||||
@fields.depends('unit_price', 'unit', 'secondary_unit', 'origin')
|
||||
def on_change_with_secondary_unit_price(self, name=None):
|
||||
pool = Pool()
|
||||
Uom = pool.get('product.uom')
|
||||
if (self.unit_price and self.unit and self.secondary_unit
|
||||
and (self.secondary_uom_factor or self.secondary_uom_rate)):
|
||||
unit_price = Uom.compute_price(
|
||||
self.unit, self.unit_price, self.secondary_unit,
|
||||
factor=self.secondary_uom_factor, rate=self.secondary_uom_rate
|
||||
)
|
||||
return round_price(unit_price)
|
||||
else:
|
||||
return None
|
||||
|
||||
@fields.depends('secondary_unit_price', 'secondary_unit', 'unit', 'origin')
|
||||
def on_change_secondary_unit_price(self, name=None):
|
||||
pool = Pool()
|
||||
Uom = pool.get('product.uom')
|
||||
if (self.secondary_unit_price and self.secondary_unit and self.unit
|
||||
and (self.secondary_uom_factor or self.secondary_uom_rate)):
|
||||
self.unit_price = Uom.compute_price(
|
||||
self.secondary_unit, self.secondary_unit_price, self.unit,
|
||||
factor=self.secondary_uom_rate, rate=self.secondary_uom_factor)
|
||||
self.unit_price = round_price(self.unit_price)
|
||||
|
||||
@fields.depends(methods=[
|
||||
'on_change_secondary_quantity', 'on_change_secondary_unit_price'])
|
||||
def on_change_secondary_unit(self):
|
||||
self.on_change_secondary_quantity()
|
||||
self.on_change_secondary_unit_price()
|
||||
|
||||
def get_product_secondary_uom_category(self, name):
|
||||
category = None
|
||||
if self.secondary_unit:
|
||||
# Stay valid even if origin has been deleted
|
||||
category = self.secondary_unit.category.id
|
||||
if isinstance(self.origin, self.__class__) and self.origin != self:
|
||||
if self.origin.product_secondary_uom_category:
|
||||
category = self.origin.product_secondary_uom_category.id
|
||||
return category
|
||||
|
||||
@classmethod
|
||||
def set_secondary(cls, lines, name, value):
|
||||
pass
|
||||
|
||||
@property
|
||||
def secondary_uom_factor(self):
|
||||
if isinstance(self.origin, self.__class__) and self.origin != self:
|
||||
return self.origin.secondary_uom_factor
|
||||
|
||||
@property
|
||||
def secondary_uom_rate(self):
|
||||
if isinstance(self.origin, self.__class__) and self.origin != self:
|
||||
return self.origin.secondary_uom_rate
|
||||
|
||||
|
||||
class ShipmentIn(metaclass=PoolMeta):
|
||||
__name__ = 'stock.shipment.in'
|
||||
|
||||
def _get_inventory_move(self, incoming_move):
|
||||
move = super()._get_inventory_move(incoming_move)
|
||||
if move:
|
||||
move.secondary_unit = incoming_move.secondary_unit
|
||||
return move
|
||||
|
||||
|
||||
class ShipmentOut(metaclass=PoolMeta):
|
||||
__name__ = 'stock.shipment.out'
|
||||
|
||||
def _get_inventory_move(self, move):
|
||||
inventory_move = super()._get_inventory_move(move)
|
||||
if inventory_move:
|
||||
inventory_move.secondary_unit = move.secondary_unit
|
||||
return inventory_move
|
||||
|
||||
def _sync_outgoing_move(self, template=None):
|
||||
move = super()._sync_outgoing_move(template)
|
||||
if template:
|
||||
move.secondary_unit = template.secondary_unit
|
||||
return move
|
||||
|
||||
|
||||
class ShipmentOutReturn(metaclass=PoolMeta):
|
||||
__name__ = 'stock.shipment.out.return'
|
||||
|
||||
def _get_inventory_move(self, incoming_move):
|
||||
move = super()._get_inventory_move(incoming_move)
|
||||
if move:
|
||||
move.secondary_unit = incoming_move.secondary_unit
|
||||
return move
|
||||
|
||||
|
||||
class ShipmentInternal(metaclass=PoolMeta):
|
||||
__name__ = 'stock.shipment.internal'
|
||||
|
||||
def _sync_incoming_move(self, template=None):
|
||||
move = super()._sync_incoming_move(template)
|
||||
if template:
|
||||
move.secondary_unit = template.secondary_unit
|
||||
return move
|
||||
36
modules/stock_secondary_unit/stock.xml
Normal file
36
modules/stock_secondary_unit/stock.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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="move_view_form">
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit" ref="stock.move_view_form"/>
|
||||
<field name="name">stock_move_form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="move_view_tree">
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit" ref="stock.move_view_tree"/>
|
||||
<field name="name">stock_move_tree</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="move_view_tree_simple">
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit" ref="stock.move_view_tree_simple"/>
|
||||
<field name="name">stock_move_tree</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="move_view_list_shipment_in">
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit" ref="stock.move_view_list_shipment_in"/>
|
||||
<field name="name">stock_move_tree</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="move_view_list_shipment">
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit" ref="stock.move_view_list_shipment"/>
|
||||
<field name="name">stock_move_tree</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
2
modules/stock_secondary_unit/tests/__init__.py
Normal file
2
modules/stock_secondary_unit/tests/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
Binary file not shown.
Binary file not shown.
12
modules/stock_secondary_unit/tests/test_module.py
Normal file
12
modules/stock_secondary_unit/tests/test_module.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
|
||||
|
||||
class StockSecondaryUnitTestCase(ModuleTestCase):
|
||||
'Test Stock Secondary Unit module'
|
||||
module = 'stock_secondary_unit'
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
16
modules/stock_secondary_unit/tryton.cfg
Normal file
16
modules/stock_secondary_unit/tryton.cfg
Normal file
@@ -0,0 +1,16 @@
|
||||
[tryton]
|
||||
version=7.8.0
|
||||
depends:
|
||||
ir
|
||||
stock
|
||||
product
|
||||
xml:
|
||||
stock.xml
|
||||
|
||||
[register]
|
||||
model:
|
||||
stock.Move
|
||||
stock.ShipmentIn
|
||||
stock.ShipmentOut
|
||||
stock.ShipmentOutReturn
|
||||
stock.ShipmentInternal
|
||||
15
modules/stock_secondary_unit/view/stock_move_form.xml
Normal file
15
modules/stock_secondary_unit/view/stock_move_form.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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="//field[@name='currency']" position="after">
|
||||
<separator name="secondary_unit" colspan="4"/>
|
||||
<label name="secondary_quantity" string="Quantity:"/>
|
||||
<field name="secondary_quantity"/>
|
||||
<label name="secondary_unit" string="Unit:"/>
|
||||
<field name="secondary_unit"/>
|
||||
<label name="secondary_unit_price" string="Unit Price:"/>
|
||||
<field name="secondary_unit_price"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
8
modules/stock_secondary_unit/view/stock_move_tree.xml
Normal file
8
modules/stock_secondary_unit/view/stock_move_tree.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?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="//field[@name='quantity']" position="after">
|
||||
<field name="secondary_quantity" symbol="secondary_unit" optional="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user