Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3170 Weergaven

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

Avatar
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
jun. 25
3278
0
mei 24
2086
1
mrt. 24
1982
1
jan. 24
1882
1
okt. 22
3163