We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760e74d commit c799445Copy full SHA for c799445
1 file changed
partner_tag_smart_assignation/models/res_partner_category.py
@@ -55,13 +55,19 @@ class ResPartnerCategory(models.Model):
55
@api.model
56
def create(self, vals):
57
record = super().create(vals)
58
- record.update_partner_tags()
+ record.with_delay(
59
+ channel="root.res_partner",
60
+ priority=100
61
+ ).update_partner_tags()
62
return record
63
64
def write(self, vals):
65
res = super().write(vals)
66
if "tag_filter_condition_id" in vals or "model" in vals:
- self.update_partner_tags()
67
+ self.with_delay(
68
69
70
71
return res
72
73
@api.constrains(
0 commit comments