Hello,
I’m tryting to replace a product name using trytond-console inside docker:
Here’s the code
docker run --link tryton-postgres:postgres --rm -ti tryton/tryton trytond-console -d tryton
from trytond.pool import Pool
Product = Pool().get(‘product.product’)
products, = Product.search([‘code’,‘in’,(‘890201’,) ])
products.name = ‘my new name’
products.save() # I realized that when I tried this the name value gets reset - so I tried without the save too.transaction.set_context(user=1) # I also tried this
transaction.commit()
Honestly I’m running out of ideas, do I need to do something else? I’m using trytond-cosnole 7.0.4
After commit nothing happens, no error message, nothing.
Thanks in advance.