I want to have a field in the invoice line that will show the price that is product getting from product.pricelist. Can I make a related field? or do I need to do it another way?
class AccountInvoice(models.Model):
_inherit = 'account.invoice.line'
price_by_pricelist = fields.Float(related="???", "Price by Pricelist")
UPDATE
actually, I need to add this field to vendor bills but I think it's not changing anything here
Basically, I want to compare price from price list and actual product price in vendor bills line