Improve labels input and output materials of production and BOM
This commit is contained in:
@@ -21,8 +21,9 @@ class BOM(DeactivableMixin, ModelSQL, ModelView):
|
||||
})
|
||||
code_readonly = fields.Function(
|
||||
fields.Boolean("Code Readonly"), 'get_code_readonly')
|
||||
inputs = fields.One2Many('production.bom.input', 'bom', 'Inputs')
|
||||
outputs = fields.One2Many('production.bom.output', 'bom', 'Outputs')
|
||||
inputs = fields.One2Many('production.bom.input', 'bom', "Input Materials")
|
||||
outputs = fields.One2Many(
|
||||
'production.bom.output', 'bom', "Output Materials")
|
||||
output_products = fields.Many2Many('production.bom.output',
|
||||
'bom', 'product', 'Output Products')
|
||||
|
||||
|
||||
@@ -113,7 +113,8 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
|
||||
})
|
||||
cost = fields.Function(fields.Numeric('Cost', digits=price_digits,
|
||||
readonly=True), 'get_cost')
|
||||
inputs = fields.One2Many('stock.move', 'production_input', 'Inputs',
|
||||
inputs = fields.One2Many(
|
||||
'stock.move', 'production_input', "Input Materials",
|
||||
domain=[
|
||||
('shipment', '=', None),
|
||||
('from_location', 'child_of', [Eval('warehouse', -1)], 'parent'),
|
||||
@@ -124,7 +125,8 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
|
||||
'readonly': (~Eval('state').in_(['request', 'draft', 'waiting'])
|
||||
| ~Eval('warehouse') | ~Eval('location')),
|
||||
})
|
||||
outputs = fields.One2Many('stock.move', 'production_output', 'Outputs',
|
||||
outputs = fields.One2Many(
|
||||
'stock.move', 'production_output', "Output Materials",
|
||||
domain=[
|
||||
('shipment', '=', None),
|
||||
('from_location', '=', Eval('location', -1)),
|
||||
|
||||
@@ -19,9 +19,11 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="unit"/>
|
||||
<field name="unit"/>
|
||||
<notebook>
|
||||
<page string="Lines" id="lines">
|
||||
<field name="inputs" colspan="2" view_ids="stock.move_view_list_shipment"/>
|
||||
<field name="outputs" colspan="2" view_ids="stock.move_view_list_shipment"/>
|
||||
<page name="inputs">
|
||||
<field name="inputs" view_ids="stock.move_view_list_shipment" colspan="4"/>
|
||||
</page>
|
||||
<page name="outputs">
|
||||
<field name="outputs" view_ids="stock.move_view_list_shipment" colspan="4"/>
|
||||
</page>
|
||||
<page string="Other Info" id="other">
|
||||
<label name="company"/>
|
||||
|
||||
@@ -6,7 +6,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="work_center"/>
|
||||
<field name="work_center"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page[@id='lines']" position="after">
|
||||
<xpath expr="/form/notebook/page[@id='other']" position="before">
|
||||
<page name="works">
|
||||
<field name="works" colspan="4"
|
||||
view_ids="production_work.work_view_list_sequence"/>
|
||||
|
||||
Reference in New Issue
Block a user