You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="discount_account_invoice_view_form" model="ir.ui.view">
<field name="name">discount.account.invoice</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='discount']" position="attributes">
<attribute name="digits">[16, 2]</attribute>
</xpath>
<xpath expr="//field[@name='amount_untaxed']" position="after">
<field name="amount_discount"/>
</xpath>
<xpath expr="//field[@name='narration']" position="after">
<div>
<label for="discount_type" string="Discount Type :"/>
<field name="discount_type" class="oe_inline"/>
</div>
<div>
<label for="discount_rate" string="Discount Rate :"/>
<field name="discount_rate" class="oe_inline"/>
</div>
</xpath>
</field>
</record>
<!-- <record id="discount_view_invoice_line_tree" model="ir.ui.view">-->
<!-- <field name="name">discount.account.invoice.line.tree</field>-->
<!-- <field name="model">account.move.line.tree.grouped.sales.purchase</field>-->
<!-- <field name="inherit_id" ref="account.view_move_line_tree_grouped_sales_purchases"/>-->
<!-- <field name="arch" type="xml">-->
<!-- <xpath expr="//field[@name='debit']" position="attributes">-->
<!-- <attribute name="digits">[16, 2]</attribute>-->
<!-- </xpath>-->
<!-- </field>-->
<!-- </record>-->
</data>
</odoo>