增加列表多选配置
This commit is contained in:
@@ -15,8 +15,7 @@ class ReworkWizard(models.TransientModel):
|
|||||||
production_id = fields.Many2one('mrp.production', string='制造订单号')
|
production_id = fields.Many2one('mrp.production', string='制造订单号')
|
||||||
workorder_ids = fields.Many2many('mrp.workorder', 'rework_wizard_to_work_order', string='所有工单',
|
workorder_ids = fields.Many2many('mrp.workorder', 'rework_wizard_to_work_order', string='所有工单',
|
||||||
domain="[('production_id', '=', production_id),('state','=','done')]")
|
domain="[('production_id', '=', production_id),('state','=','done')]")
|
||||||
hidden_workorder_ids = fields.Many2many('mrp.workorder', 'rework_wizard_to_work_order_hidden',
|
hidden_workorder_ids = fields.Char('')
|
||||||
string='所有工单(hidden)')
|
|
||||||
rework_reason = fields.Selection(
|
rework_reason = fields.Selection(
|
||||||
[("programming", "编程"), ("cutter", "刀具"), ("clamping", "装夹"),
|
[("programming", "编程"), ("cutter", "刀具"), ("clamping", "装夹"),
|
||||||
("operate computer", "操机"),
|
("operate computer", "操机"),
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
<field name="tool_state" invisible="True"/>
|
<field name="tool_state" invisible="True"/>
|
||||||
<field name="routing_type" invisible="True"/>
|
<field name="routing_type" invisible="True"/>
|
||||||
<field name="processing_panel_id" invisible="1"/>
|
<field name="processing_panel_id" invisible="1"/>
|
||||||
<field name="hidden_workorder_ids" invisible="1"/>
|
<field name="hidden_workorder_ids" class="css_not_available_msg"/>
|
||||||
<group>
|
<group>
|
||||||
<field name="workorder_ids" string="工序" attrs='{"invisible": [("routing_type","=","装夹预调")]}'>
|
<field readonly="1" name="workorder_ids" widget="jikimo_subtree_selector_field" jikimo_selector="True" replace_context="hidden_workorder_ids" string="工序" attrs='{"invisible": [("routing_type","=","装夹预调")]}'>
|
||||||
<tree create="0" editable='bottom' delete="0">
|
<tree create="0" editable='bottom' delete="0">
|
||||||
<field name="processing_panel" readonly="1"/>
|
<field name="processing_panel" readonly="1"/>
|
||||||
<field name="name" readonly="1"/>
|
<field name="name" readonly="1"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user