Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2916 Vistas

How can we configure the Product template, to have a specific PRODUCT TAG automatically added when new products are created?

Avatar
Descartar
Autor Mejor respuesta

If you have a scenario where new products when created need to carry a specific TAG on it, you can do that by creating an automated action. 

Create the related TAG and get the related ID number. You will need that to be added to the automation rule.

For that you need to select the related TAG and check the URL:

https://15784293-saas-15-2-all.runbot82.odoo.com/web#id=1&cids=1&menu_id=548&action=1585&model=product.tag&view_type=form


In this case our TAG ID it is 1

How to create the Automated Action:

In debug mode, type: Automated Action in the main menu. After that create a new Automation action as below:

1 - Name: TAG on Product Creation

2 - Mode: Product Template

3 - Trigger: On Creation

4 - Action to do: Update the record

5 - Field: Product Tags / Evaluation Type: Python Expression / Value  [(6,0, [1])]



***Extra***
Why the VALUE info is like that? [(6,0, [1])]

6 and 0 in Odoo expression mean: UPDATE

and 1 is the ID of the TAG we want to use in the update process.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
jun 25
2770
0
may 24
1794
1
mar 24
1724
1
ene 24
1607
1
oct 22
2864