Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5257 มุมมอง

Is there a way you can remove the comma from the integer

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

It did not work for me....
This is how I have my field in the xml.

<field name="x_studio_cdigo_de_cliente" string="Código de Cliente" help="Codigo de Cliente" widget="integer" options="{'format': 0}"/>

อวตาร
ละทิ้ง

This have worked across all view types in V15.

Stuti Mehta

I have just use this in v16 but it doesn't work for me

For v16 you need to install OCA module: web_field_numeric_formatting
and then use <field name="id" options="{'enable_formatting': false}" />

ผู้เขียน คำตอบที่ดีที่สุด

https://www.loom.com/share/3b535e2f0c94455cb7290c20f27cdc8e


อวตาร
ละทิ้ง

you could just written to add field option options="{'format': 0}" in the view :)