跳至內容
選單
此問題已被標幟
2 回覆
824 瀏覽次數

Hi guys

Could you give me the way to create a new calculated field that would give the result of [Ordered qties - Already received qties]

Thanks

頭像
捨棄
作者 最佳答案

I did everything you told me : Yes, I'm in PO line order

I erased the space after the coma. I still get the same error message.

I removed product_qty for Dependencies then I still get the same kind of message " Unknown field 'qty_received' in dependency 'qty_received'"

頭像
捨棄

- Check if you are in purchase order line model
-check there is no spacing
-try to remove product_qty from dependencies then save without it

最佳答案

Hello,

1. open studio in PO form view -> navigate to purchase order lines and open list view

2. drag and drop field with type decimal -> then click on "More" at the left bottom


3. add this code on compute field:

for record in self:
record['x_studio_remaining_qty'] = record['product_qty'] - record['qty_received']


the result will be :


Notes:

- activate developer mode

- start new purchase cycle to test customizations

Hope this will Help

頭像
捨棄