跳至內容
選單
此問題已被標幟
2131 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 23
14673
0
10月 23
33
3
10月 23
788
1
10月 23
569
1
8月 23
2418