You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
3.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="account_statement_line_create_view_form" model="ir.ui.view">
  4. <field name="name">account_statement_line_create_form</field>
  5. <field name="model">account.statement.line.create</field>
  6. <field name="arch" type="xml">
  7. <form string="Choose Move Lines Filter Options">
  8. <group name="main">
  9. <field name="statement_id" invisible="1"/>
  10. <field name="partner_id"/>
  11. <field name="date_type"/>
  12. <field name="move_date"
  13. attrs="{'required': [('date_type', '=', 'move')],
  14. 'invisible': [('date_type', '!=', 'move')]}"/>
  15. <field name="due_date"
  16. attrs="{'required': [('date_type', '=', 'due')],
  17. 'invisible': [('date_type', '!=', 'due')]}"/>
  18. <field name="journal_ids" widget="many2many_tags"
  19. placeholder="Keep empty for using all journals"/>
  20. <field name="target_move" widget="radio"/>
  21. <field name="invoice"/>
  22. <field name="allow_blocked"/>
  23. <label string="Click on Add All Move Lines to auto-select the move lines matching the above criteria or click on Add an item to manually select the move lines filtered by the above criteria." colspan="2"/>
  24. <button name="populate" type="object" string="Add All Move Lines"/>
  25. </group>
  26. <group name="move_lines"
  27. string="Selected Move Lines to Create Lines">
  28. <field name="move_line_ids" nolabel="1">
  29. <tree>
  30. <field name="date"/>
  31. <field name="move_id" required="0"/>
  32. <field name="journal_id"/>
  33. <field name="partner_id"/>
  34. <field name="account_id"/>
  35. <field name="date_maturity"/>
  36. <field name="debit"/>
  37. <field name="credit"/>
  38. <field name="amount_residual" sum="Total Residual"/>
  39. <field name="amount_currency"/>
  40. <field name="amount_residual_currency"/>
  41. <field name="company_currency_id" invisible="1"/>
  42. </tree>
  43. </field>
  44. </group>
  45. <footer>
  46. <button name="create_statement_lines" type="object"
  47. string="Create Statement Lines" class="oe_highlight"/>
  48. <button string="Cancel" special="cancel" class="oe_link"/>
  49. </footer>
  50. </form>
  51. </field>
  52. </record>
  53. <record id="account_statement_line_create_action"
  54. model="ir.actions.act_window">
  55. <field name="name">Create Lines from Move Lines</field>
  56. <field name="res_model">account.statement.line.create</field>
  57. <field name="view_mode">form</field>
  58. <field name="target">new</field>
  59. </record>
  60. </odoo>