Odoo Ayuda


1 Respuesta

As a temporary workaround I added the following to my import function: From the ids returned by the load() method, I search for corresponding ir_model_data entries, and update their 'noupdate' field to True.

res = partner_pool.load(cr, uid, field_names, partners, context=context)

if res['ids']:
    imd_pool = self.pool.get('ir.model.data')
    imd_ids  = imd_pool.search(cr, uid, [('res_id','in',res['ids']),('model','=','res.partner')], context=context)
    _logger.debug("Fixing external ids with no update = True on : %s" % imd_ids)
    if imd_ids:
        imd_pool.write(cr, uid, imd_ids, {'noupdate':True}, context=context)
Realizar una pregunta
Keep Informed
1 seguidor(es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now