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

i am trying to add a custom field ( Field type = many2one,  Stored = True )  in res.users and it is showing below error (screenshot).

previously it was added through a custom module, but now i have to use only frontend (Settings -> Technical -> Models) to modify any Model or View but facing this situration, so please help how to resolve this problem.



regards

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

Hello SmithJohn45,


I hope you're doing well.


When utilizing a field for ordering, ensure the field is both present in the model and set to be stored.

Please find example in comment. 

Thanks & Regards,
Email: odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง

Here's an example:

python code:

field_name = fields.field_type(string="String for field", store=True)

ผู้เขียน

thank you @Jainesh Shah, but this is not what i am asking for. i am not allowed to add/use a custom module, the only way i have to use to modify all customizations is Setting -> Technical (as already mentioned), i am setting it as Stored = True

hope its clear now.

regards

ผู้เขียน

if in screenshot the error is not readable then check here i have copy and pasting so it can be read by anyone.

Validation Error: Unable to order by name: fields used for ordering must be present on the model and stored.

regards

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 23
5903
1
ก.ค. 23
3821
2
มี.ค. 22
2251
2
มิ.ย. 19
2581
1
พ.ค. 16
5460