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.

33 lines
1.3 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="bank_out_reason" model="pos.move.reason">
  9. <field name="name">Bank Deposit</field>
  10. <field name="is_income_reason" eval="False" />
  11. <field name="is_expense_reason" eval="True"/>
  12. <field name="expense_account_id" ref="bank_deposit_account"/>
  13. <field name="journal_ids" model="account.journal" search="[
  14. ('type', '=', 'cash'),
  15. ('company_id', '=', obj().env.ref('base.main_company').id),
  16. ]"/>
  17. <field name="company_id" ref="base.main_company"/>
  18. </record>
  19. <record id="gasoline_out_reason" model="pos.move.reason">
  20. <field name="name">Gazoline Expense</field>
  21. <field name="is_income_reason" eval="False" />
  22. <field name="is_expense_reason" eval="True"/>
  23. <field name="expense_account_id" ref="gazoline_expense_account"/>
  24. <field name="journal_ids" model="account.journal" search="[
  25. ('type', '=', 'cash'),
  26. ('company_id', '=', obj().env.ref('base.main_company').id),
  27. ]"/>
  28. <field name="company_id" ref="base.main_company"/>
  29. </record>
  30. </odoo>