Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
830 Vues

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

Avatar
Ignorer
Auteur Meilleure réponse

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'"

Avatar
Ignorer

- 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

Meilleure réponse

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

Avatar
Ignorer