accrued_orders.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_account_accrued_orders_wizard" model="ir.ui.view">
  4. <field name="name">account.accrued.orders.wizard.view</field>
  5. <field name="model">account.accrued.orders.wizard</field>
  6. <field name="arch" type="xml">
  7. <form string="Make Accrual Entries">
  8. <field name="company_id" invisible="1"/>
  9. <group>
  10. <div class="alert alert-info" colspan="4" role="alert" attrs="{'invisible': [('display_amount', '!=', True)]}">
  11. There doesn't appear to be anything to invoice for the selected order. However, you can use the amount field to force an accrual entry.
  12. </div>
  13. <group>
  14. <field name="journal_id"/>
  15. <field name="account_id"/>
  16. <field name="amount" attrs="{'invisible': [('display_amount', '!=', True)]}"/>
  17. <field name="display_amount" invisible="1"/>
  18. </group>
  19. <group>
  20. <field name="date"/>
  21. <field name="reversal_date"/>
  22. </group>
  23. </group>
  24. <field name="preview_data" widget="grouped_view_widget" class="w-100"/>
  25. <footer>
  26. <button string='Create Entry' name="create_entries" type="object" class="btn-primary"/>
  27. <button string="Cancel" class="btn-secondary" special="cancel"/>
  28. </footer>
  29. </form>
  30. </field>
  31. </record>
  32. </odoo>