This question has been flagged

 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?



Avatar
Discard