Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
8270 Переглядів

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.

or

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 25
788
3
жовт. 24
4129
3
бер. 24
5375
2
бер. 24
3527
0
вер. 21
2923