跳至內容
選單
此問題已被標幟
2 回覆
506 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 25
940
2
9月 25
562
3
10月 25
646
3
9月 25
712
3
9月 25
727