Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3800 Zobrazení

Hello, can someone help me


I want to do as the amount:

- calculate the volume per item

- and the total volume.

I created the fields in the model but I cannot find the place where I must put the calculation formula.

Avatar
Zrušit
Autor Nejlepší odpověď

Thank you for your reply.

I created the field x_volume_subtotal in Purchase Order Line Model and I tried to apply the following calculation formula to it: x_volume_subtotal = (volume_of_l'article * quantity) / packaging.

for record in self: 

    record['x_volume_subtotal'] = (['product_id'].value.volume *record['product_qty'])/['product_id'].packaging.qty



Avatar
Zrušit
Nejlepší odpověď

You can add new fields in purchase order line where you can store the volume per item (if not defined on product). and add new field for purchase order where you can calculate the volume based on your formula.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 25
2229
3
pro 24
6443
1
čvc 24
3154
1
čvn 24
2189
2
čvn 24
3057