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

I was make Workshop module for fleets and tied the fleet module and the workshop module after that I decided to separate to module but after I make that I the fleet module when save data show me this errore

MissingError

One of the documents you are trying to access has been deleted, please try again after refreshing. 

 !!!!!

please help me how solve this problem.

 

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

Hy, I'm not sure that the answer could be so simple.

A qucik searcch indicates many issues related to this : https://github.com/odoo/odoo/issues?utf8=%E2%9C%93&q=Missing+document%28s%29 and espcially one : https://github.com/odoo/odoo/pull/6105 that is waiting to be merged.

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

You are trying to use, a wrong ID to browse/write etc in a object, So have a look at your code

อวตาร
ละทิ้ง

Thank you, Deep.

+1 from me.

คำตอบที่ดีที่สุด

I got this error, and after some trace I found that I'm trying to access a field that is not defined in the object I'm dealing with.

I got the case when I tried to override the mail_message.create method. This method is called from several classes. I wrote the following line of code

            ticket_o = self.pool.get('ticket.ticket').browse(cr, uid, val['res_id'])

            if ticket_o.section_id and ticket_o.section_id.email_server:

..........

it crashed in the 2nd line. In trace I found that it acts with the res.partner object not with ticket.ticket one, where res.partner does not have a section id field





อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 19
5785
0
พ.ค. 15
5980
1
เม.ย. 15
4063
How to make space in qweb report? แก้ไขแล้ว
8
มี.ค. 21
30683
1
ก.ค. 19
3314