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.

49 lines
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <odoo>
  3. <record id="cash_invoice_in_form" model="ir.ui.view">
  4. <field name="name">cash_invoice_in_form</field>
  5. <field name="model">cash.invoice.in</field>
  6. <field name="type">form</field>
  7. <field name="arch" type="xml">
  8. <form string="Pay supplier invoice or customer refund">
  9. <group>
  10. <field name="company_id" invisible="1"/>
  11. <field name="journal_ids" invisible="1"/>
  12. <field name="journal_count" invisible="1"/>
  13. <field name="journal_id"
  14. class="oe_inline"
  15. domain="[('id', 'in', journal_ids[0][2])]"
  16. options="{'no_create': True, 'no_open':True}"
  17. attrs="{'invisible':[('journal_count', '&lt;', 2)]}"
  18. />
  19. <field name="invoice_id"
  20. class="oe_inline"
  21. domain="[('company_id', '=', company_id),
  22. ('state', '=', 'open'),
  23. ('currency_id', '=', currency_id),
  24. ('type', 'in', ['in_invoice', 'out_refund'])]"
  25. options="{'no_create': True, 'no_open':True}"
  26. />
  27. <label for="amount"/>
  28. <div>
  29. <field name="amount" class="oe_inline"/><field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/>
  30. </div>
  31. </group>
  32. <footer>
  33. <button name="run" string="Pay invoice" type="object" class="btn-primary"/>
  34. <button special="cancel" string="Cancel" class="btn-default"/>
  35. </footer>
  36. </form>
  37. </field>
  38. </record>
  39. <act_window
  40. id="action_cash_invoice_in_from_statement"
  41. name="Pay invoice"
  42. res_model="cash.invoice.in"
  43. src_model="account.bank.statement"
  44. view_mode="form"
  45. target="new"
  46. key2="client_action_multi"
  47. />
  48. </odoo>