pos_usability: add missing check_company=True on pos.payment.method, field cash_journal_id

This commit is contained in:
Alexis de Lattre
2021-02-03 11:53:22 +01:00
parent 9c30d4ef53
commit 0d4ff37786
2 changed files with 13 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
from . import product from . import product
from . import pos_category from . import pos_category
from . import pos_payment_method

View File

@@ -0,0 +1,12 @@
# Copyright 2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'
_check_company_auto = True
cash_journal_id = fields.Many2one(check_company=True)