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

When i am upgrade my crm module it shows following error and does not login admin.

ProgrammingError: constraint "portal_crm_crm_contact_us_b_unit_fkey" of relation "portal_crm_crm_contact_us" does not exist

Can any one help me out......

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

Start the openerp-server updating your crm módule:

sh openerp-server -d yourdbname -u all

This command will update all your database structure. You can also only update especific module, for example:

sh openerp-server -d yourdbname -u my_crm
อวตาร
ละทิ้ง
ผู้เขียน

Thank you Rafael Reuber i will try these commands...

ผู้เขียน

Mr.Rafael Reuber when try this sh openerp-server -d yourdbname -u crm it shows openerp-server: 2: openerp-server: import: not found openerp-server: 5: openerp-server: Syntax error: Bad function name

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

You probably deleted a module or a record related to b_unit.

What's b_unit ?

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

b_unit is a field created by me in crm.py also in crm_lead.py

How did you create it - Paste your code. Did you updated your OpenERP instance recently ?

ผู้เขียน

I created as a field in crm_lead.py file.I updated OpenERP instance recently 'B_unit':fields.many2one('crm.case.businessunit','Business Unit',required=True),

When you update, the core file and the addons files are updated (including the crm module), this means that probably the changes you made in crm_lead.py are lost.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
3289
1
มี.ค. 15
7257
0
ก.พ. 25
725
2
พ.ย. 24
4752
2
ต.ค. 24
1960