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.

23 lines
872 B

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
  4. @author Quentin DUPONT (https://twitter.com/pondupont)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record model="pos.move.reason" id="cash_register_error">
  9. <field name="name">Cash register error</field>
  10. <field name="is_income_reason" eval="True" />
  11. <field name="is_expense_reason" eval="True"/>
  12. <field name="income_account_id" ref="register_error_income"/>
  13. <field name="expense_account_id" ref="register_error_expense"/>
  14. <field name="journal_ids" model="account.journal" search="[
  15. ('type', '=', 'cash'),
  16. ('company_id', '=', obj().env.ref('base.main_company').id),
  17. ]"/>
  18. <field name="company_id" ref="base.main_company"/>
  19. </record>
  20. </odoo>