forked from Mapan/odoo17e
19 lines
580 B
Python
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
|