Rename Uom to Unit.

This commit is contained in:
Albert Cervera i Areny 2023-09-14 00:02:19 +02:00
parent cdb71ef456
commit 20f3f54d34
3 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ Create Bill of Material::
>>> bom.inputs.append(input2)
>>> input2.product = component2
>>> input2.quantity = 150
>>> input2.uom = centimeter
>>> input2.unit = centimeter
>>> output = BOMOutput()
>>> bom.outputs.append(output)
>>> output.product = product

View File

@ -89,7 +89,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase):
'inputs': [
('create', [{
'product': input_product.id,
'uom': kg.id,
'unit': kg.id,
'quantity': 10,
'from_location': storage_loc.id,
'to_location': production_loc.id,
@ -99,7 +99,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase):
'outputs': [
('create', [{
'product': output_product_wo_lot.id,
'uom': kg.id,
'unit': kg.id,
'quantity': 5,
'from_location': production_loc.id,
'to_location': storage_loc.id,
@ -113,7 +113,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase):
'inputs': [
('create', [{
'product': input_product.id,
'uom': kg.id,
'unit': kg.id,
'quantity': 10,
'from_location': storage_loc.id,
'to_location': production_loc.id,
@ -123,7 +123,7 @@ class ProductionOutputLotTestCase(CompanyTestMixin, ModuleTestCase):
'outputs': [
('create', [{
'product': output_product_w_lot.id,
'uom': kg.id,
'unit': kg.id,
'quantity': 5,
'from_location': production_loc.id,
'to_location': storage_loc.id,

View File

@ -2,7 +2,7 @@
<!-- 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/field[@name='uom']" position="after">
<xpath expr="/form/field[@name='unit']" position="after">
<label name="use_lot"/>
<field name="use_lot"/>
</xpath>