[FIX] point_of_sale : wrong api
Before this PR when you select a pos.payment in custom, it raise. It doesn't make sens to use api.model here closes odoo/odoo#104615 X-original-commit: 2abeb8cc5b015263ce49d765315712f92ec25c25 Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
committed by
GitHub
parent
6710a84d6e
commit
e2fe70495a
@@ -33,7 +33,6 @@ class PosPayment(models.Model):
|
||||
is_change = fields.Boolean(string='Is this payment change?', default=False)
|
||||
account_move_id = fields.Many2one('account.move')
|
||||
|
||||
@api.model
|
||||
def name_get(self):
|
||||
res = []
|
||||
for payment in self:
|
||||
|
||||
Reference in New Issue
Block a user