Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
386 Prikazi

Mi orden de fabricación presenta las cantidades de los ingredientes en kilogramos pero necesito agregar una columna con el dato en gramos y no logro hacer que funcione la fórmula.


Supongo que algo me falta incluir en el código, no soy programador.

El campo con los kilos es: product_uom_qty

Avatar
Opusti
Avtor Best Answer

Gracias, entendí la lógica, y lo apliqué pero todavía no funciona.

Avatar
Opusti
Best Answer

Hi,


The issue is with the syntax you’re using inside Odoo Studio → Calculated field.


When writing formulas in Odoo Studio, you always need to reference fields using the record['field_name'] notation.


Try the code


record['x_studio_gramos'] = record['product_uom_qty'] * 1000


Hope it helps

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
sep. 25
751
2
sep. 25
357
4
sep. 25
479
3
sep. 25
537
3
sep. 25
618