Skip to Content
Menu
This question has been flagged
1 Reply
3935 Views

connection = openerplib.get_connection(hostname="localhost", database="admin", login="admin", password='odoo')

m = 'stock.change.product.qty'

model = connection.get_model(m)

v = {'create_uid':5,'location_id': 12 , 'new_quantity': newQuantite,'product_id' : productID}

stock = model.create(vals=v)


in data base create_uid = 1  the Id for admin but i want have create_uid = 5

thank you

Avatar
Discard
Best Answer
  1. Open the form view of res.users [/web#id=5&view_type=form&model=res.users].

  2. In the access group of Warehouse assign it Manager[ as you want to create a record in stock.change.product.qty]

  3. save the record.

Hop this may help i your case.

Avatar
Discard