ProgrammingError: relation "ir_model_constraint" does not exist

Asked by mohammed khalid

ProgrammingError: relation "ir_model_constraint" does not exist

plz reply
Regards

Question information

Language:
English Edit question
Status:
Expired
For:
OpenUpgrade Server Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) said :
#1

plz post a detailed traceback, and explanations about what you did to get that error.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Errol Noralez (enoralez) said :
#3

I have the same issue on a migration from 6.1 to V7.
ERROR prodtest1_migrated openerp.sql_db: Programming error: relation "ir_model_constraint" does not exist

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#4

Same question to you Errol. This error is just a symptom that the migration of the base module failed. Please paste full server logs on some pastebin site of your migration attempt with server loglevel DEBUG.

Revision history for this message
Errol Noralez (enoralez) said :
#5

Can I post it here? Don't have pastebin.

Revision history for this message
Errol Noralez (enoralez) said :
#6

Okay signed up for pastebin already. Would you like the migration.log or the openerp-server.log file?

Revision history for this message
Errol Noralez (enoralez) said :
#7

Done.. Pastebin bigdawgbz..

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#8

Got a link?

Revision history for this message
Errol Noralez (enoralez) said :
#9
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#10

Link says: pastebin is private.

Revision history for this message
Errol Noralez (enoralez) said :
#11

Okay, fixed it..

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#12

This is the actual error: Field type not found in browse_record(ir.actions.act_window, 338)

FIrst thing to check: is there an entry in your ir_act_window table with id 338?

Revision history for this message
Errol Noralez (enoralez) said :
#13

I was able to get pass that error and stumbled upon another.

2014-08-07 18:40:24,372 28368 INFO production_test1_migrated openerp.modules.loading: module account: loading company_view.xml
2014-08-07 18:40:24,394 28368 ERROR production_test1_migrated openerp.osv.orm: Can't find field 'property_reserve_and_surplus_account' in the following view parts composing the view of object model 'res.company':
 * res.company.form.inherit

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-08-07 18:40:24,396 28368 ERROR production_test1_migrated openerp.addons.base.ir.ir_ui_view: Can't render view account.view_company_inherit_form for model: res.company
Traceback (most recent call last):
  File "/home/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
  File "/home/openerp/server/openerp/osv/orm.py", line 2278, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/home/openerp/server/openerp/osv/orm.py", line 1955, in __view_look_dom_arch
    raise except_orm('View error', msg)
except_orm: ('View error', u"Can't find field 'property_reserve_and_surplus_account' in the following view parts composing the view of object model 'res.company':\n * res.company.form.inherit\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")
2014-08-07 18:40:24,397 28368 ERROR production_test1_migrated openerp.tools.convert: Parse error in /home/openerp/addons/account/company_view.xml:4:
<record model="ir.ui.view" id="view_company_inherit_form">
            <field name="name">res.company.form.inherit</field>
            <field name="inherit_id" ref="base.view_company_form"/>
            <field name="model">res.company</field>
            <field name="arch" type="xml">
                <notebook position="inside">
                    <page string="Overdue Payments" position="inside">
                        <separator string="Overdue Payments Message" colspan="4"/>
                        <field name="overdue_msg" nolabel="1" colspan="4"/>
                    </page>
                </notebook>
            </field>
        </record>
Traceback (most recent call last):
  File "/home/openerp/server/openerp/tools/convert.py", line 852, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/openerp/server/openerp/tools/convert.py", line 819, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/home/openerp/server/openerp/addons/base/ir/ir_model.py", line 944, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/home/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 214, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/home/openerp/server/openerp/osv/orm.py", line 4282, in write
    self._validate(cr, user, ids, context)
  File "/home/openerp/server/openerp/osv/orm.py", line 1562, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
2014-08-07 18:40:24,406 28368 INFO production_test1_migrated werkzeug: 192.168.1.96 - - [07/Aug/2014 18:40:24] "GET /web/webclient/css?db=production_test1_migrated HTTP/1.1" 200 -

Revision history for this message
Errol Noralez (enoralez) said :
#14

View error

Can't find field 'in_use' in the following view parts composing the view of object model 'product.product':
* citrus.product.tree

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model