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

i want to insert data to a model through xml file.There is a many2 one field.My condition is the data should be inserted according to the name i.e sms gateway in the model gateway_setup.How Could i achieve this..?

<field name="gateway_id" eval="obj(ref('kw_sendsms.model_gateway_setup')).name=='sms_gateway'" model="gateway_setup"/>

The above code gives odoo.tools.convert.ParseError: "Record does not exist or has been deleted.

But in my model the name 'sms_gateway' is already present.

i think the code may be wrong.

Could anyone please help me to find out the solution..?

อวตาร
ละทิ้ง

Do you want to insert demo data?

Check out this odoo customization tips: https://goo.gl/8HgnCF

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 25
6079
1
ธ.ค. 24
1572
1
พ.ย. 22
16136
3
ส.ค. 22
13249
2
ส.ค. 22
4640