Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm an Odoo noob and I just imported some products from Drupal Commerce into Odoo. Drupal Commerce likes working with cents instead of euros. So I want to programmatically drop 2 zeros from all prices. How can I do that? Ideally some python code from the interface itself or some other form of scripting which is not directly working on SQL.
Is fixing the file and importing again an option for you? If not:
- Either export the products from the database (using the "help with import" option), change the file and re-import that file.
- Find the product_product table in postgres and write some script to alter the prices.
In order to prevent your database from clogging or becoming messy, I would opt for the re-importing of the products.
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
|Asked: 6/10/14, 9:10 AM|
|Seen: 757 times|
|Last updated: 3/16/15, 8:10 AM|