Automatic Update form OCA2FC Migrator

This commit is contained in:
Flectra Community Bot 2021-10-24 02:12:54 +00:00 committed by OCA2FC Migrator Bot
parent d740a08a8e
commit 493bd5fe5a
3 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@ addon | version | summary
[barcode_action](barcode_action/) | 2.0.1.0.0| Allows to use barcodes as a launcher
[multi_step_wizard](multi_step_wizard/) | 2.0.1.0.0| Multi-Steps Wizards
[base_technical_features](base_technical_features/) | 2.0.1.1.0| Access to technical features without activating debug mode
[base_tier_validation_formula](base_tier_validation_formula/) | 2.0.2.0.0| Formulas for Base tier validation
[base_tier_validation_formula](base_tier_validation_formula/) | 2.0.2.0.1| Formulas for Base tier validation
[base_tier_validation](base_tier_validation/) | 2.0.2.5.1| Implement a validation process based on tiers.
[base_search_custom_field_filter](base_search_custom_field_filter/) | 2.0.1.0.0| Add custom filters for fields via UI
[base_revision](base_revision/) | 2.0.1.0.1| Keep track of revised document

View File

@ -5,7 +5,7 @@
"name": "Base Tier Validation Formula",
"summary": """
Formulas for Base tier validation""",
"version": "2.0.2.0.0",
"version": "2.0.2.0.1",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://gitlab.com/flectra-community/server-ux",

View File

@ -29,7 +29,10 @@ class TierReview(models.Model):
@api.depends("definition_id.reviewer_expression", "review_type", "model", "res_id")
def _compute_python_reviewer_ids(self):
for rec in self.filtered(lambda x: x.review_type == "expression"):
for rec in self:
if rec.review_type != "expression":
rec.python_reviewer_ids = self.env["res.users"].browse()
continue
record = rec.env[rec.model].browse(rec.res_id).exists()
try:
reviewer_ids = safe_eval(