三元输入坐标变色
This commit is contained in:
@@ -101,9 +101,11 @@
|
|||||||
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
|
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
|
||||||
<button name="button_finish" type="object" string="完成" class="btn-success"
|
<button name="button_finish" type="object" string="完成" class="btn-success"
|
||||||
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
|
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
|
||||||
<button name="%(mrp.act_mrp_block_workcenter_wo)d" type="action" string="停工" context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
<button name="%(mrp.act_mrp_block_workcenter_wo)d" type="action" string="停工"
|
||||||
|
context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
||||||
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'),('user_permissions','=',False)]}"/>
|
attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'),('user_permissions','=',False)]}"/>
|
||||||
<button name="button_unblock" type="object" string="Unblock" context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
<button name="button_unblock" type="object" string="Unblock"
|
||||||
|
context="{'default_workcenter_id': workcenter_id}" class="btn-danger"
|
||||||
attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>
|
attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>
|
||||||
</sheet>
|
</sheet>
|
||||||
|
|
||||||
@@ -155,98 +157,142 @@
|
|||||||
<div>左面:</div>
|
<div>左面:</div>
|
||||||
<div class="o_address_format">
|
<div class="o_address_format">
|
||||||
<label for="X1_axis" string="x"/>
|
<label for="X1_axis" string="x"/>
|
||||||
<field name="X1_axis" class="o_form_label"/>
|
<field name="X1_axis" class="o_form_label"
|
||||||
|
decoration-success="X1_axis > 0"
|
||||||
|
decoration-warning="X1_axis < 0"/>
|
||||||
<label for="Y1_axis" string="y"/>
|
<label for="Y1_axis" string="y"/>
|
||||||
<field name="Y1_axis" class="o_form_label"/>
|
<field name="Y1_axis" class="o_form_label"
|
||||||
|
decoration-success="Y1_axis > 0"
|
||||||
|
decoration-warning="Y1_axis < 0"/>
|
||||||
<label for="Z1_axis" string="z"/>
|
<label for="Z1_axis" string="z"/>
|
||||||
<field name="Z1_axis" class="o_form_label"/>
|
<field name="Z1_axis" class="o_form_label"
|
||||||
|
decoration-success="Z1_axis > 0"
|
||||||
|
decoration-warning="Z1_axis < 0"/>
|
||||||
<div></div>
|
<div></div>
|
||||||
<label for="X2_axis" string="x"/>
|
<label for="X2_axis" string="x"/>
|
||||||
<field name="X2_axis" class="o_form_label"/>
|
<field name="X2_axis" class="o_form_label"
|
||||||
|
decoration-success="X2_axis > 0"
|
||||||
|
decoration-warning="X2_axis < 0"/>
|
||||||
<label for="Y2_axis" string="y"/>
|
<label for="Y2_axis" string="y"/>
|
||||||
<field name="Y2_axis" class="o_form_label"/>
|
<field name="Y2_axis" class="o_form_label"
|
||||||
|
decoration-success="Y2_axis > 0"
|
||||||
|
decoration-warning="Y2_axis < 0"/>
|
||||||
<label for="Z2_axis" string="z"/>
|
<label for="Z2_axis" string="z"/>
|
||||||
<field name="Z2_axis" class="o_form_label"/>
|
<field name="Z2_axis" class="o_form_label"
|
||||||
|
decoration-success="Z2_axis > 0"
|
||||||
|
decoration-warning="Z2_axis < 0"/>
|
||||||
</div>
|
</div>
|
||||||
<div>前面:</div>
|
<div>前面:</div>
|
||||||
<div class="o_address_format">
|
<div class="o_address_format">
|
||||||
<label for="X3_axis" string="x"/>
|
<label for="X3_axis" string="x"/>
|
||||||
<field name="X3_axis" class="o_form_label"/>
|
<field name="X3_axis" class="o_form_label"
|
||||||
|
decoration-success="X3_axis > 0"
|
||||||
|
decoration-warning="X3_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y3_axis" string="y"/>
|
<label for="Y3_axis" string="y"/>
|
||||||
<field name="Y3_axis" class="o_form_label"/>
|
<field name="Y3_axis" class="o_form_label"
|
||||||
|
decoration-success="Y3_axis > 0"
|
||||||
|
decoration-warning="Y3_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z3_axis" string="z"/>
|
<label for="Z3_axis" string="z"/>
|
||||||
<field name="Z3_axis" class="o_form_label"/>
|
<field name="Z3_axis" class="o_form_label"
|
||||||
|
decoration-success="Z3_axis > 0"
|
||||||
|
decoration-warning="Z3_axis < 0"/>
|
||||||
<div></div>
|
<div></div>
|
||||||
<label for="X4_axis" string="x"/>
|
<label for="X4_axis" string="x"/>
|
||||||
<field name="X4_axis" class="o_form_label"/>
|
<field name="X4_axis" class="o_form_label"
|
||||||
|
decoration-success="X4_axis > 0"
|
||||||
|
decoration-warning="X4_axis < 0"
|
||||||
|
/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y4_axis" string="y"/>
|
<label for="Y4_axis" string="y"/>
|
||||||
<field name="Y4_axis" class="o_form_label"/>
|
<field name="Y4_axis" class="o_form_label"
|
||||||
|
decoration-success="Y4_axis > 0"
|
||||||
|
decoration-warning="Y4_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z4_axis" string="z"/>
|
<label for="Z4_axis" string="z"/>
|
||||||
<field name="Z4_axis" class="o_form_label"/>
|
<field name="Z4_axis" class="o_form_label"
|
||||||
|
decoration-success="Z4_axis > 0"
|
||||||
|
decoration-warning="Z4_axis < 0"/>
|
||||||
</div>
|
</div>
|
||||||
<div>右面:</div>
|
<div>右面:</div>
|
||||||
<div class="o_address_format">
|
<div class="o_address_format">
|
||||||
<label for="X5_axis" string="x"/>
|
<label for="X5_axis" string="x"/>
|
||||||
<field name="X5_axis" class="o_form_label"/>
|
<field name="X5_axis" class="o_form_label"
|
||||||
|
decoration-success="X5_axis > 0"
|
||||||
|
decoration-warning="X5_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y5_axis" string="y"/>
|
<label for="Y5_axis" string="y"/>
|
||||||
<field name="Y5_axis" class="o_form_label"/>
|
<field name="Y5_axis" class="o_form_label" decoration-success="Y5_axis > 0"
|
||||||
|
decoration-warning="Y5_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z5_axis" string="z"/>
|
<label for="Z5_axis" string="z"/>
|
||||||
<field name="Z5_axis" class="o_form_label"/>
|
<field name="Z5_axis" class="o_form_label" decoration-success="Z5_axis > 0"
|
||||||
|
decoration-warning="Z5_axis < 0"/>
|
||||||
<div></div>
|
<div></div>
|
||||||
<label for="X6_axis" string="x"/>
|
<label for="X6_axis" string="x"/>
|
||||||
<field name="X6_axis" class="o_form_label"/>
|
<field name="X6_axis" class="o_form_label" decoration-success="X6_axis > 0"
|
||||||
|
decoration-warning="X6_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y6_axis" string="y"/>
|
<label for="Y6_axis" string="y"/>
|
||||||
<field name="Y6_axis" class="o_form_label"/>
|
<field name="Y6_axis" class="o_form_label" decoration-success="Y6_axis > 0"
|
||||||
|
decoration-warning="Y6_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z6_axis" string="z"/>
|
<label for="Z6_axis" string="z"/>
|
||||||
<field name="Z6_axis" class="o_form_label"/>
|
<field name="Z6_axis" class="o_form_label" decoration-success="Z6_axis > 0"
|
||||||
|
decoration-warning="Z6_axis < 0"/>
|
||||||
</div>
|
</div>
|
||||||
<div>后面:</div>
|
<div>后面:</div>
|
||||||
<div class="o_address_format">
|
<div class="o_address_format">
|
||||||
<label for="X7_axis" string="x"/>
|
<label for="X7_axis" string="x"/>
|
||||||
<field name="X7_axis" class="o_form_label"/>
|
<field name="X7_axis" class="o_form_label" decoration-success="X7_axis > 0"
|
||||||
|
decoration-warning="X7_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y7_axis" string="y"/>
|
<label for="Y7_axis" string="y"/>
|
||||||
<field name="Y7_axis" class="o_form_label"/>
|
<field name="Y7_axis" class="o_form_label" decoration-success="Y7_axis > 0"
|
||||||
|
decoration-warning="Y7_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z7_axis" string="z"/>
|
<label for="Z7_axis" string="z"/>
|
||||||
<field name="Z7_axis" class="o_form_label"/>
|
<field name="Z7_axis" class="o_form_label" decoration-success="Z7_axis > 0"
|
||||||
|
decoration-warning="Z7_axis < 0"/>
|
||||||
<div></div>
|
<div></div>
|
||||||
<label for="X8_axis" string="x"/>
|
<label for="X8_axis" string="x"/>
|
||||||
<field name="X8_axis" class="o_form_label"/>
|
<field name="X8_axis" class="o_form_label" decoration-success="X8_axis > 0"
|
||||||
|
decoration-warning="X8_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y8_axis" string="y"/>
|
<label for="Y8_axis" string="y"/>
|
||||||
<field name="Y8_axis" class="o_form_label"/>
|
<field name="Y8_axis" class="o_form_label" decoration-success="Y8_axis > 0"
|
||||||
|
decoration-warning="Y8_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z8_axis" string="z"/>
|
<label for="Z8_axis" string="z"/>
|
||||||
<field name="Z8_axis" class="o_form_label"/>
|
<field name="Z8_axis" class="o_form_label" decoration-success="Z8_axis > 0"
|
||||||
|
decoration-warning="Z8_axis < 0"/>
|
||||||
</div>
|
</div>
|
||||||
<div>上面:</div>
|
<div>上面:</div>
|
||||||
<div class="o_address_format">
|
<div class="o_address_format">
|
||||||
<label for="X9_axis" string="x"/>
|
<label for="X9_axis" string="x"/>
|
||||||
<field name="X9_axis" class="o_form_label"/>
|
<field name="X9_axis" class="o_form_label" decoration-success="X9_axis > 0"
|
||||||
|
decoration-warning="X9_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y9_axis" string="y"/>
|
<label for="Y9_axis" string="y"/>
|
||||||
<field name="Y9_axis" class="o_form_label"/>
|
<field name="Y9_axis" class="o_form_label" decoration-success="Y9_axis > 0"
|
||||||
|
decoration-warning="Y9_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z9_axis" string="z"/>
|
<label for="Z9_axis" string="z"/>
|
||||||
<field name="Z9_axis" class="o_form_label"/>
|
<field name="Z9_axis" class="o_form_label" decoration-success="Z9_axis > 0"
|
||||||
|
decoration-warning="Z9_axis < 0"/>
|
||||||
<div></div>
|
<div></div>
|
||||||
<label for="X10_axis" string="x"/>
|
<label for="X10_axis" string="x"/>
|
||||||
<field name="X10_axis" class="o_form_label"/>
|
<field name="X10_axis" class="o_form_label" decoration-success="X10_axis > 0"
|
||||||
|
decoration-warning="X10_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Y10_axis" string="y"/>
|
<label for="Y10_axis" string="y"/>
|
||||||
<field name="Y10_axis" class="o_form_label"/>
|
<field name="Y10_axis" class="o_form_label" decoration-success="Y10_axis > 0"
|
||||||
|
decoration-warning="Y10_axis < 0"/>
|
||||||
<span>&nbsp;</span>
|
<span>&nbsp;</span>
|
||||||
<label for="Z10_axis" string="z"/>
|
<label for="Z10_axis" string="z"/>
|
||||||
<field name="Z10_axis" class="o_form_label"/>
|
<field name="Z10_axis" class="o_form_label" decoration-success="Z10_axis > 0"
|
||||||
|
decoration-warning="Z10_axis < 0"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 col-lg-6 o_setting_box">
|
<div class="col-12 col-lg-6 o_setting_box">
|
||||||
@@ -293,7 +339,8 @@
|
|||||||
</group>
|
</group>
|
||||||
<div class="col-12 col-lg-6 o_setting_box">
|
<div class="col-12 col-lg-6 o_setting_box">
|
||||||
<button type="object" class="oe_highlight" name="recreateManufacturingOrWorkerOrder"
|
<button type="object" class="oe_highlight" name="recreateManufacturingOrWorkerOrder"
|
||||||
string="检测确认" attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>
|
string="检测确认"
|
||||||
|
attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>
|
||||||
</div>
|
</div>
|
||||||
</page>
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
@@ -306,7 +353,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-6 o_setting_box">
|
<div class="col-12 col-lg-6 o_setting_box">
|
||||||
<button type="action" class="oe_highlight" name="sf_manufacturing.label_sf_tray_code1"
|
<button type="action" class="oe_highlight" name="sf_manufacturing.label_sf_tray_code1"
|
||||||
string="打印标签" attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>
|
string="打印标签"
|
||||||
|
attrs='{"invisible": ["|",("state","!=","progress"),("user_permissions","=",False)]}'/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</page>
|
</page>
|
||||||
@@ -314,3 +362,4 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user