account_invoice.xml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="farm_invoice_form">
  5. <field name="name">farm.invoice.form</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_form"/>
  8. <field name="arch" type="xml">
  9. <field name="quantity" position="before">
  10. <field name="animal_qty"/>
  11. </field>
  12. </field>
  13. </record>
  14. <template id="report_invoice_n_animals" inherit_id="account.report_invoice_document">
  15. <xpath expr="//table/thead/tr/th[1]" position="before">
  16. <t t-if="o.invoice_line[0].animal_qty">
  17. <th class="text-right">Num. Animals</th>
  18. </t>
  19. </xpath>
  20. <xpath expr="//tbody/tr/td[1]" position="before">
  21. <t t-if="l.animal_qty">
  22. <td class="text-right">
  23. <span t-field="l.animal_qty"/>
  24. </td>
  25. </t>
  26. </xpath>
  27. </template>
  28. </data>
  29. </openerp>