mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma_sale: adapt to simplification on rma.line form view.
This commit is contained in:
committed by
JasminSForgeFlow
parent
c2319e3c13
commit
c3d9803241
@@ -26,6 +26,7 @@
|
|||||||
name="sale_line_id"
|
name="sale_line_id"
|
||||||
context="{'rma': True}"
|
context="{'rma': True}"
|
||||||
options="{'no_create': True}"
|
options="{'no_create': True}"
|
||||||
|
attrs="{'invisible':[('type', '!=', 'customer')]}"
|
||||||
/>
|
/>
|
||||||
</group>
|
</group>
|
||||||
<group name="quantities" position="inside">
|
<group name="quantities" position="inside">
|
||||||
@@ -51,43 +52,6 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_rma_line_supplier_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">
|
|
||||||
<div name='button_box' position="inside">
|
|
||||||
<button
|
|
||||||
type="object"
|
|
||||||
name="action_view_sale_order"
|
|
||||||
class="oe_stat_button"
|
|
||||||
icon="fa-strikethrough"
|
|
||||||
groups="sales_team.group_sale_salesman_all_leads"
|
|
||||||
>
|
|
||||||
<field
|
|
||||||
name="sales_count"
|
|
||||||
widget="statinfo"
|
|
||||||
string="Sales Orders"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<group name="quantities" position="inside">
|
|
||||||
<group>
|
|
||||||
<field name="qty_to_sell" />
|
|
||||||
<field name="qty_sold" />
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
<field name="delivery_policy" position="after">
|
|
||||||
<field name="sale_policy" />
|
|
||||||
</field>
|
|
||||||
<notebook position="inside">
|
|
||||||
<page name="sale" string="Sale Lines">
|
|
||||||
<field name="sale_line_ids" nolabel="1" />
|
|
||||||
</page>
|
|
||||||
</notebook>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_rma_line_button_sale_form" model="ir.ui.view">
|
<record id="view_rma_line_button_sale_form" model="ir.ui.view">
|
||||||
<field name="name">rma.order.line.form</field>
|
<field name="name">rma.order.line.form</field>
|
||||||
<field name="model">rma.order.line</field>
|
<field name="model">rma.order.line</field>
|
||||||
@@ -96,25 +60,15 @@
|
|||||||
<header position="inside">
|
<header position="inside">
|
||||||
<button
|
<button
|
||||||
name="%(action_rma_order_line_make_sale_order)d"
|
name="%(action_rma_order_line_make_sale_order)d"
|
||||||
states="approved"
|
|
||||||
string="Create Sales Quotation"
|
string="Create Sales Quotation"
|
||||||
class="oe_highlight"
|
class="oe_highlight"
|
||||||
|
attrs="{'invisible':['|', ('qty_to_sell', '=', 0), ('state', '!=', 'approved')]}"
|
||||||
type="action"
|
type="action"
|
||||||
/>
|
/>
|
||||||
</header>
|
|
||||||
</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
|
<button
|
||||||
name="%(action_rma_order_line_make_sale_order)d"
|
name="%(action_rma_order_line_make_sale_order)d"
|
||||||
states="approved"
|
|
||||||
string="Create Sales Quotation"
|
string="Create Sales Quotation"
|
||||||
class="oe_highlight"
|
attrs="{'invisible':['|', ('qty_to_sell', '!=', 0), ('state', '!=', 'approved')]}"
|
||||||
type="action"
|
type="action"
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user