Skip to Content
Menu
This question has been flagged
3 Replies
1824 Views

I have to add and "*" to the end of 120 product names. How can I upload a csv and overrite the old name with a new name?


thanks

Avatar
Discard
Best Answer

Please follow these steps


Avatar
Discard
Best Answer

Hi

If you just need to add a * along with existing product name, you can write a server action that executes a python code as follows and trigger it once and you can remove it.

Code:

for record in records:

    record['name'] = record.name +  ' *'

See more about server action here: https://www.youtube.com/watch?v=TXBjlnfbZg8

Thanks

Avatar
Discard
Best Answer

Hello Michael,

You have to export the list of products from the inventory module/products menu/ product variants (if your products have variants). 

When exporting, include the id of each product in the data to be exported, update the names of the products in the template and re-import to Odoo. The product "id" allows you to update any data in the registry without duplicating it in the database when importing it back into the system. 

You can see more information about "Introduction to importing and exporting data" here https://youtu.be/nx4G2QVXsh4

Avatar
Discard