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

Using Odoo V17 Online


I am trying to create a computed field in Studio to calculate price / lb of the given product based off of the list price that is based off of the packaging size.


To start I thought I could use list_price, uom_id, and ratio as Dependencies. Immediately I had doubts as I was not sure how it would know what ratio to pull up for the calculation, but tried anyway. 

With this, I received the following error when trying to save the field


Then, I tried to just to a simple calculation based off of list price... 


Upon closing Studio, the new field x_studio_price_lb listed $0.00 and when I tried to change the list_price I received this error. 


I have tried contacting support, and they referred me to my salesman. My BSA from the success pack that we've purchased does not seem to know how to do it either. Very frustrating as it is a pretty simple calculation, but I have zero Python experience, so I was hoping someone could point me in the right direction.


Thank you,



Avatar
Zrušit
Autor Nejlepší odpověď

Working with AI is a big help... Please see code below for anyone interested. 


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 24
1323
0
čvc 25
540
2
čvc 25
35
2
čvn 25
773
1
čvn 25
693