Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2121 Visualizzazioni

Hi,

I have a price_bruto field and want to freeze it when the invoice is  != draft


class AccountInvoiceLine(models.Model):

    _inherit = "account.invoice.line"


    price_bruto = fields.Float(related='product_id.price_bruto', string="Price bruto", store=True)


Is it posible?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 23
14664
0
ott 23
33
3
ott 23
788
1
ott 23
569
1
ago 23
2406