flectra/addons/sales_discount/demo/sale_order.xml
2018-01-17 12:10:36 +05:30

37 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra noupdate="1">
<record model="sale.order" id="discount_sale_order">
<field name="partner_id" ref="base.res_partner_3"/>
<field name="discount_method">per</field>
<field name="discount_per">10</field>
<field name="pricelist_id" ref="product.list0"/>
<field name="partner_invoice_id" ref="base.res_partner_address_11"/>
<field name="user_id" ref="base.user_root"/>
<field name="state">draft</field>
<field name="team_id" ref="sales_team.team_sales_department"/>
<field name="partner_shipping_id" ref="base.res_partner_address_11"/>
</record>
<record model="sale.order.line" id="discount_sale_order_line_1">
<field name="order_id" ref="discount_sale_order"/>
<field name="name">Headset USB</field>
<field name="product_id" ref="product.product_delivery_01"/>
<field name="product_uom_qty">10</field>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="price_unit">65</field>
<field name="discount">10</field>
</record>
<record model="sale.order.line" id="discount_sale_order_line_2">
<field name="order_id" ref="discount_sale_order"/>
<field name="name">Laptop E5023</field>
<field name="product_id" ref="product.product_product_25"/>
<field name="product_uom_qty">20</field>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="price_unit">2950.00</field>
<field name="discount">10</field>
</record>
</flectra>