Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1646 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
giu 24
1495
0
lug 25
712
2
lug 25
36
2
giu 25
932
1
giu 25
791