Rename Uom to Unit for bill of material

This commit is contained in:
Albert Cervera i Areny 2023-09-13 14:40:24 +02:00
parent c9d9576c91
commit cbab53d2d7
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -7,7 +7,7 @@
<field name="operations" colspan="4"/> <field name="operations" colspan="4"/>
</page> </page>
</xpath> </xpath>
<xpath expr="/form/field[@name='uom']" position="after"> <xpath expr="/form/field[@name='unit']" position="after">
<label name="route"/> <label name="route"/>
<field name="route"/> <field name="route"/>
</xpath> </xpath>