Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2123 Представления

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?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
дек. 23
14664
0
окт. 23
33
3
окт. 23
788
1
окт. 23
569
1
авг. 23
2406