pos_usability: add missing check_company=True on pos.payment.method, field cash_journal_id
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
from . import product
|
from . import product
|
||||||
from . import pos_category
|
from . import pos_category
|
||||||
|
from . import pos_payment_method
|
||||||
|
|||||||
12
pos_usability/models/pos_payment_method.py
Normal file
12
pos_usability/models/pos_payment_method.py
Normal 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)
|
||||||
Reference in New Issue
Block a user