Odoo Ayuda

0

0
1 Respuesta
0
Avatar

Hilar AK Omán

--Hilar AK--
17374
| 7 6 11
Muscut, Omán
--Hilar AK--
Experienced Odoo / Python Developer with a demonstrated history of working in the information technology and services industry with 3.5+years of experience. Skilled in Python, PostgreSQL, SQL, HTML, JavaScript. Strong engineering professional with a Bachelor of Technology (BTech) focused on Computer Science from the College of Engineering Munnar.

 Blogs:-

https://medium.com/@hilarak
https://hilarlive.wordpress.com/
 StackOverflow:
       https://stackoverflow.com/users/7561347/burmese-pythis-hilar-ak


Hilar AK Omán
23/5/17 0:19

First you need to create a stock.change.product.qty record and using this object you have to call change_product_qty function.
In python code will be like:-

wizard = change_qty_wiz.create({
'product_id': product.id,
'new_quantity': float(item.findtext(name)),
'location_id': location.id,
})
wizard.change_product_qty()

Here Wizard is a stock.change.product.qty object.




Realizar una pregunta
Writer
Etiquetas
Keep Informed
1 seguidor(es)
About This Community

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

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now