Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting an error res.partner in openerp?
    primarykey
    data
    text
    <p>I am new to openerp. When I am updating one module, I am getting an error from res.partner,</p> <p><strong>AttributeError: 'NoneType' object has no attribute 'is_transient'</strong></p> <pre><code>2013-12-10 06:19:41,192 28014 ERROR openerp.tools.convert: Parse error in /opt/openerp/addons/portal/security/portal_security.xml:5: &lt;record id="portal_read_own_res_partner" model="ir.rule"&gt; &lt;field name="name"&gt;res_partner: read access on my partner&lt;/field&gt; &lt;field name="model_id" ref="base.model_res_partner"/&gt; &lt;field name="domain_force"&gt;[('user_ids', 'in', user.id)]&lt;/field&gt; &lt;field name="groups" eval="[(4, ref('group_portal')), (4, ref('group_anonymous'))]"/&gt; &lt;field name="perm_create" eval="False"/&gt; &lt;field name="perm_unlink" eval="False"/&gt; &lt;field name="perm_write" eval="False"/&gt; &lt;/record&gt; Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse self._tags[rec.tag](self.cr, rec, n) File "/opt/openerp/server/openerp/tools/convert.py", line 814, 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 "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 964, in _update res_id = model_obj.create(cr, uid, values, context=context) File "/opt/openerp/server/openerp/addons/base/ir/ir_rule.py", line 166, in create res = super(ir_rule, self).create(cr, uid, vals, context=context) File "/opt/openerp/server/openerp/osv/orm.py", line 4472, in create self._validate(cr, user, [id_new], context) File "/opt/openerp/server/openerp/osv/orm.py", line 1529, in _validate if not fun(self, cr, uid, ids): File "/opt/openerp/server/openerp/addons/base/ir/ir_rule.py", line 68, in _check_model_obj return not any(self.pool.get(rule.model_id.model).is_transient() for rule in self.browse(cr, uid, ids, context)) File "/opt/openerp/server/openerp/addons/base/ir/ir_rule.py", line 68, in &lt;genexpr&gt; return not any(self.pool.get(rule.model_id.model).is_transient() for rule in self.browse(cr, uid, ids, context)) AttributeError: 'NoneType' object has no attribute 'is_transient' </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload