Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
2560 มุมมอง

Hi,

Please how can acheive this result, Thanks. To see the image clearly click on this link :  http://imgur.com/a/LBWAo

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

have you tried with a related field??

it should work, some like


_name='mymodel.model'

x_name_field = fields.Char(related="write_id")

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello medmars,

You can create compute method.

le_reste = fields.Float(compute='compute_le_reste', store=True)
@api.multi
@api.depends('montant_octroy', 'montant_vignatte')
def compute_le_reste(self):
    for rec in self:
rec.le_reste = rec.montant_octroy + rec.montant_vignatte

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Still not getting the right anwser you can show hte image clealy here to understand right the requirement. thanks

http://imgur.com/a/LBWAo