Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
307 Lượt xem

Hello, please help me i'm in server action. I'm executing python code that update de value of field Total but no result. Here is my code

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

hello, 

Tying this Python code 

for record in self:

    total_value = record.product_qty * record.price_unit * record.x_studio_carat_ct

    record.write({'price_total': total_value})


Ảnh đại diện
Huỷ bỏ