Skip to Content
Menu
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
Related Posts Replies Views Activity
1
Mar 16
8827
2
Dec 22
7594
0
Jul 22
1198
3
Sep 20
2122
2
Mar 19
9664