mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma_purchase: adapt to simplification on rma.line form view.
This commit is contained in:
@@ -8,29 +8,28 @@
|
||||
<field name="view_mode">form,tree</field>
|
||||
</record>
|
||||
|
||||
<record id="view_rma_line_supplier_button_sale_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.line.supplier.form</field>
|
||||
<field name="model">rma.order.line</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_supplier_button_form" />
|
||||
<field name="arch" type="xml">
|
||||
<header position="inside">
|
||||
<button
|
||||
name="%(action_rma_order_line_make_purchase_order)d"
|
||||
states="approved"
|
||||
string="Create Purchase Order"
|
||||
class="oe_highlight"
|
||||
context="{'rma_line_id': active_id, 'default_partner_id': partner_id}"
|
||||
type="action"
|
||||
/>
|
||||
</header>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_rma_line_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.line.supplier.form</field>
|
||||
<field name="model">rma.order.line</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_supplier_form" />
|
||||
<field name="arch" type="xml">
|
||||
<header position="inside">
|
||||
<button
|
||||
name="%(action_rma_order_line_make_purchase_order)d"
|
||||
string="Create Purchase Order"
|
||||
class="oe_highlight"
|
||||
attrs="{'invisible':['|', ('qty_to_purchase', '=', 0), ('state', '!=', 'approved')]}"
|
||||
context="{'rma_line_id': active_id, 'default_partner_id': partner_id}"
|
||||
type="action"
|
||||
/>
|
||||
<button
|
||||
name="%(action_rma_order_line_make_purchase_order)d"
|
||||
string="Create Purchase Order"
|
||||
attrs="{'invisible':['|', ('qty_to_purchase', '!=', 0), ('state', '!=', 'approved')]}"
|
||||
context="{'rma_line_id': active_id, 'default_partner_id': partner_id}"
|
||||
type="action"
|
||||
/>
|
||||
</header>
|
||||
<div name='button_box' position="inside">
|
||||
<button
|
||||
type="object"
|
||||
|
||||
Reference in New Issue
Block a user