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

I have created a custom module. In that, I want to use the functionality which is already exist in Odoo;

Settings-->Database structure-->Fields-->Create.

But this existing feature restricts me to add x_ at the beginning of my custom field name by prompting the validation message.

Then, I tried to override the  def _check_name(self):  method of ir.model.fields model (which is in ir.models.py file) by inheriting the model, but it didn't work.

All I want is, when I import the fields by importing CSV file, the fields present in CSV file should be created if it does not exist in the particular model.

How can I achieve this? Or How to create fields dynamically?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
19848
How to install odoo 10 in ubuntu 20.04? แก้ไขแล้ว
1
ก.ย. 23
2703
3
พ.ค. 23
5369
7
เม.ย. 23
48657
Barcode scanner from mobile แก้ไขแล้ว
1
ธ.ค. 22
7549