Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1427 Vistas

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
Descartar
Autor Mejor respuesta

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


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
jun 24
1244
0
jul 25
383
2
jul 25
35
2
jun 25
654
1
jun 25
643