Rename Uom to Unit.
This commit is contained in:
parent
cdb71ef456
commit
20f3f54d34
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue