pos_usability: add sequenc eon pos.payment.method

This commit is contained in:
Alexis de Lattre
2023-10-23 12:40:09 +00:00
parent 18e9ed99ff
commit e36f88e23a
3 changed files with 35 additions and 0 deletions

View File

@@ -8,7 +8,9 @@ from odoo import fields, models
class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'
_check_company_auto = True
_order = 'sequence, id'
outstanding_account_id = fields.Many2one(check_company=True)
receivable_account_id = fields.Many2one(check_company=True)
journal_id = fields.Many2one(check_company=True)
sequence = fields.Integer(default=10)