Skip to content
Snippets Groups Projects
Commit 57544f3b authored by Florent de Labarre's avatar Florent de Labarre Committed by GitHub
Browse files

[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#104595

X-original-commit: 2abeb8cc
Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 37bebefd
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment