first commit
This commit is contained in:
17
modules/sale_discount/view/sale_line_form.xml
Normal file
17
modules/sale_discount/view/sale_line_form.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//label[@name='unit_price']" position="before">
|
||||
<label name="base_price"/>
|
||||
<field name="base_price"/>
|
||||
<label id="discount" string="Discount"/>
|
||||
<group col="-1" id="discounts">
|
||||
<group col="-1" id="discount_rate">
|
||||
<field name="discount_rate" factor="100" xexpand="0"/>
|
||||
<label name="discount_rate" string="%" xalign="0.0" xexpand="1"/>
|
||||
</group>
|
||||
<field name="discount_amount"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</data>
|
||||
12
modules/sale_discount/view/sale_line_list.xml
Normal file
12
modules/sale_discount/view/sale_line_list.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='unit_price']" position="before">
|
||||
<field name="base_price" optional="1"/>
|
||||
<field name="discount_rate" factor="100" optional="1">
|
||||
<suffix name="discount_rate" string="%"/>
|
||||
</field>
|
||||
<field name="discount_amount" optional="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user