コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
528 ビュー

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
972
2
9月 25
580
3
10月 25
715
3
9月 25
779
3
9月 25
769