Odoo Help


specify company when writing to property field

on 4/19/16, 6:23 AM 680 views

 I'm using openerp 7.

When writing to property field, the system writes the value to the user's company. I'd like to force company into another one, here's what I did:

context['company_id'] = 1

product_obj.write(cr, uid , [product.id],{'standard_price': new_std_price}, context = context)

Here, standard price is a property field, so I'm using the context to specify company, but that still writes to the user's company.

Any idea how should I do, please?

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

Question tools

1 follower(s)


Asked: 4/19/16, 6:23 AM
Seen: 680 times
Last updated: 4/19/16, 7:41 AM