Skip to Content
Menu
This question has been flagged
2 Replies
2498 Views

Hello, 


I am trying to create a computed fields called x_remaining_qty, which calculates the difference between product_qty and the received_qty. 


Using studio:

created the field : 'x_remaining_qty' as decimal / float

added dependencies :  product_qty,received_qty 
Calculated Field: 
for record in self:

        record['x_studio_remaining_qty'] = record.product_qty - record.qty_received


the value is always 0.00 


I also tried to surround "x_studio_remaining_qty" with double quotes .. still not luck, 
can someone give me a little direction? 


Erich


 

Avatar
Discard
Best Answer

Hi Erich:

There seems to be a typo in the dependencies. The second field should be qty_received (instead of received_qty).

Avatar
Discard
Related Posts Replies Views Activity
3
Dec 24
2360
1
Jul 24
705
1
Jun 24
773
2
Jun 24
897
1
Mar 24
536