1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/sale_loyalty_taxcloud/models/account_move_line.py
2024-12-10 09:04:09 +07:00

19 lines
580 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
reward_id = fields.Many2one('loyalty.reward',
string='Discount reward', readonly=True,
help='The loyalty reward that created this line.',
)
# Technical field to hold prices for TaxCloud
price_taxcloud = fields.Float('Taxcloud Price', default=0)
def _get_taxcloud_price(self):
self.ensure_one()
return self.price_taxcloud