Odoo Help


This community 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.


specify company when writing to property field

on 4/19/16, 6:23 AM 212 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?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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