| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="confirm_expiry_view_mrp_inherit" model="ir.ui.view"> |
| 4 |
<field name="name">Confirm</field> |
| 5 |
<field name="model">expiry.picking.confirmation</field> |
| 6 |
<field name="inherit_id" ref="product_expiry.confirm_expiry_view"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//field[@name='description']" position="after"> |
| 9 |
<field name="picking_ids" invisible="1"/> |
| 10 |
<field name="production_ids" invisible="1"/> |
| 11 |
<field name="workorder_id" invisible="1"/> |
| 12 |
</xpath> |
| 13 |
<xpath expr="//button[@name='process']" position="attributes"> |
| 14 |
<attribute name="invisible">not picking_ids</attribute> |
| 15 |
</xpath> |
| 16 |
<xpath expr="//button[@name='process_no_expired']" position="attributes"> |
| 17 |
<attribute name="invisible">not picking_ids</attribute> |
| 18 |
</xpath> |
| 19 |
<xpath expr="//button[@special='cancel']" position="attributes"> |
| 20 |
<attribute name="invisible">production_ids</attribute> |
| 21 |
</xpath> |
| 22 |
<xpath expr="//button[@name='process']" position="after"> |
| 23 |
|
| 24 |
<button name="confirm_produce" data-hotkey="q" |
| 25 |
string="Confirm" |
| 26 |
type="object" |
| 27 |
invisible="not production_ids" |
| 28 |
class="btn-primary"/> |
| 29 |
<button special="cancel" data-hotkey="x" |
| 30 |
string="Discard" |
| 31 |
invisible="not production_ids" |
| 32 |
class="btn-secondary"/> |
| 33 |
|
| 34 |
<button name="confirm_workorder" |
| 35 |
string="Confirm" |
| 36 |
type="object" |
| 37 |
invisible="not workorder_id" |
| 38 |
class="btn-primary"/> |
| 39 |
</xpath> |
| 40 |
</field> |
| 41 |
</record> |
| 42 |
</odoo> |