account_journal_dashboard.xml 1.2 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="account_journal_dashboard_kanban_view_inherit_hr_expense" model="ir.ui.view">
  4. <field name="name">account.journal.dashboard.kanban</field>
  5. <field name="model">account.journal</field>
  6. <field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//t[@id='account.JournalBodySalePurchase']//div[hasclass('o_kanban_primary_right')]" position="inside">
  9. <div class="row" t-if="dashboard.number_expenses_to_pay">
  10. <div class="col overflow-hidden text-start">
  11. <a type="object" t-if="journal_type == 'purchase'" name="open_expenses_action">
  12. <t t-esc="dashboard.number_expenses_to_pay"/> Expenses to Process
  13. </a>
  14. </div>
  15. <div class="col-auto text-end">
  16. <span t-if="journal_type == 'purchase'"><t t-esc="dashboard.sum_expenses_to_pay"/></span>
  17. </div>
  18. </div>
  19. </xpath>
  20. </field>
  21. </record>
  22. </odoo>