generate_2307_wizard_views.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="l10n_ph_2307_wizard_view_form" model="ir.ui.view">
  4. <field name="name">l10n_ph_2307.wizard.form</field>
  5. <field name="model">l10n_ph_2307.wizard</field>
  6. <field name="arch" type="xml">
  7. <form string="Generate BIR 2307 Report">
  8. This will export a XLS file for BIR 2307.
  9. <group>
  10. <field name="moves_to_export" nolabel="1" readonly="1" colspan="2">
  11. <tree>
  12. <field name="name" optional="show"/>
  13. <field name="invoice_partner_display_name" string="Vendor"/>
  14. <field name="invoice_date" string="Bill Date"/>
  15. <field name="invoice_date_due"/>
  16. <field name="currency_id" invisible="1"/>
  17. <field name="amount_tax_signed" string="Tax" sum="Total" optional="hide" modifiers="{'readonly':true}" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  18. <field name="amount_total_signed" string="Total" sum="Total" decoration-bf="1" optional="show" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  19. <field name="state" widget="badge" decoration-success="state == 'posted'" decoration-info="state == 'draft'" optional="show" on_change="1" modifiers="{'readonly':true, 'required':true}"/>
  20. </tree>
  21. </field>
  22. </group>
  23. <footer>
  24. <button string="Generate" type="object" name="action_generate" class="btn btn-primary" data-hotkey="q"/>
  25. <button string="Cancel" special="cancel" data-hotkey="z" class="btn btn-secondary"/>
  26. </footer>
  27. </form>
  28. </field>
  29. </record>
  30. <record id="view_l10n_ph_2307_wizard_act_window" model="ir.actions.act_window">
  31. <field name="name">BIR 2307 Report</field>
  32. <field name="res_model">l10n_ph_2307.wizard</field>
  33. <field name="view_mode">form</field>
  34. <field name="target">new</field>
  35. </record>
  36. </odoo>