-
-
Notifications
You must be signed in to change notification settings - Fork 980
/
sale_order_view.xml
22 lines (20 loc) · 1007 Bytes
/
sale_order_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sorp_view_order_form" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="order_line" position="after">
<button name="recalculate_prices"
string="Recalculate prices"
attrs="{'invisible': [('state', 'not in', ['draft', 'sent'])]}"
type="object" colspan="4" class="oe_inline"/>
<button name="recalculate_names"
string="Reset descriptions"
attrs="{'invisible': [('state', 'not in', ['draft', 'sent'])]}"
type="object" colspan="4" class="oe_inline"/>
</field>
</field>
</record>
</odoo>