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

Hi,

i am using the Maintenance Plan module by OCA and had created a new custom field named x_notes in the maintenance.kind module used to write the ToDos tasks of the specific maintenance kind. in that way i created the same field (x_notes) in the maintenance.request module. 

The thing is how can i retrieve the values stored in the x_notes field of the maintenance.kind module in the x_notes field in the maintenance.request module? so when everytime a new preventive maintenance is created, it comes with the notes (x_notes) of that preventive maintenance kind?

thanks.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi Hilar,

i am using Odoo 10 CE and have access to install any module, I have a little knowledge of python but i dont know how to code for Odoo.


can this be done without coding? from de UI?

thanks

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

If you have any related field with this maintenance.request and maintenance.kind, then you can retrieve the data from the related model by realatiion_field.field name. If you can able to update the code, then we can answer with the code examples.

อวตาร
ละทิ้ง
ผู้เขียน

can we see some examples?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 23
4271
1
มิ.ย. 23
5688
1
ก.ค. 19
3161
2
ก.พ. 25
1539
2
ม.ค. 24
1752