account_invoice_view.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="discount_view_invoice_line_tree" model="ir.ui.view">
  5. <field name="name">discount.account.invoice.line.tree</field>
  6. <field name="model">account.invoice.line</field>
  7. <field name="inherit_id" ref="account.view_invoice_line_tree"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='discount']" position="attributes">
  10. <attribute name="digits">(16, 2)</attribute>
  11. </xpath>
  12. </field>
  13. </record>
  14. <record id="discount_view_invoice_line_form" model="ir.ui.view">
  15. <field name="name">discount.account.invoice.line.form</field>
  16. <field name="model">account.invoice.line</field>
  17. <field name="inherit_id" ref="account.view_invoice_line_form"/>
  18. <field name="arch" type="xml">
  19. <xpath expr="//field[@name='discount']" position="attributes">
  20. <attribute name="digits">(16, 2)</attribute>
  21. </xpath>
  22. </field>
  23. </record>
  24. <record id="discount_account_invoice_view_form1" model="ir.ui.view">
  25. <field name="name">discount.account.invoice</field>
  26. <field name="model">account.invoice</field>
  27. <field name="inherit_id" ref="account.invoice_form"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//field[@name='discount']" position="attributes">
  30. <attribute name="digits">(16, 2)</attribute>
  31. </xpath>
  32. <xpath expr="//group[@class='oe_subtotal_footer oe_right']" position="replace">
  33. <group col="4">
  34. <group name="discount">
  35. <field name="discount_type"/>
  36. <field name="discount_rate"/>
  37. </group>
  38. <group class="oe_subtotal_footer oe_right">
  39. <field name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  40. <field name="amount_discount" widget='monetary' options="{'currency_field': 'currency_id'}"/>
  41. <div>
  42. <label for="amount_tax"/>
  43. <button name="button_reset_taxes" states="draft,proforma2"
  44. string="(update)" class="oe_link oe_edit_only"
  45. type="object" help="Recompute taxes and total"/>
  46. </div>
  47. <field name="amount_tax" nolabel="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  48. <field name="amount_total" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  49. <field name="residual" groups="account.group_account_user" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  50. <field name="reconciled" invisible="1"/>
  51. </group>
  52. </group>
  53. </xpath>
  54. </field>
  55. </record>
  56. </data>
  57. </openerp>