first commit
This commit is contained in:
43
modules/sale_promotion/view/promotion_form.xml
Normal file
43
modules/sale_promotion/view/promotion_form.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?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. -->
|
||||
<form col="6">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="company"/>
|
||||
<field name="company"/>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
|
||||
<label name="start_date"/>
|
||||
<field name="start_date"/>
|
||||
<label name="end_date"/>
|
||||
<field name="end_date"/>
|
||||
<label name="price_list"/>
|
||||
<field name="price_list"/>
|
||||
|
||||
<label name="formula"/>
|
||||
<field name="formula" colspan="5"/>
|
||||
<separator id="pattern" colspan="6"/>
|
||||
|
||||
<label name="amount"/>
|
||||
<field name="amount" symbol=""/>
|
||||
<label name="currency"/>
|
||||
<field name="currency"/>
|
||||
<group id="amount" col="-1" colspan="2">
|
||||
<label name="untaxed_amount"/>
|
||||
<field name="untaxed_amount" xexpand="0" width="25"/>
|
||||
</group>
|
||||
|
||||
<label name="quantity"/>
|
||||
<field name="quantity"/>
|
||||
<label name="unit"/>
|
||||
<field name="unit"/>
|
||||
|
||||
<notebook colspan="6">
|
||||
<page id="products" string="Products">
|
||||
<field name="categories" colspan="2"/>
|
||||
<field name="products" colspan="2" view_ids="product.product_view_tree_simple"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
9
modules/sale_promotion/view/promotion_list.xml
Normal file
9
modules/sale_promotion/view/promotion_list.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?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. -->
|
||||
<tree>
|
||||
<field name="company" expand="1" optional="1"/>
|
||||
<field name="name" expand="2"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
</tree>
|
||||
11
modules/sale_promotion/view/sale_line_form.xml
Normal file
11
modules/sale_promotion/view/sale_line_form.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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='quantity']" position="after">
|
||||
<label name="original_unit_price"/>
|
||||
<field name="original_unit_price"/>
|
||||
<label name="original_amount"/>
|
||||
<field name="original_amount"/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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='number']" position="before">
|
||||
<field name="promotion" expand="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='revenue_trend']" position="replace"></xpath>
|
||||
</data>
|
||||
14
modules/sale_promotion/view/sale_sale_form.xml
Normal file
14
modules/sale_promotion/view/sale_sale_form.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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='untaxed_amount']" position="before">
|
||||
<field name="original_untaxed_amount" xalign="1.0" xexpand="0"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='tax_amount']" position="before">
|
||||
<field name="original_tax_amount" xalign="1.0" xexpand="0"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='total_amount']" position="before">
|
||||
<field name="original_total_amount" xalign="1.0" xexpand="0"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user