From 493bd5fe5ad3a56787768ac4c4e43315673220e0 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 24 Oct 2021 02:12:54 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- base_tier_validation_formula/__manifest__.py | 2 +- base_tier_validation_formula/models/tier_review.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5abe217..1603959 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/base_tier_validation_formula/__manifest__.py b/base_tier_validation_formula/__manifest__.py index c193eb9..f1cdfa2 100644 --- a/base_tier_validation_formula/__manifest__.py +++ b/base_tier_validation_formula/__manifest__.py @@ -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", diff --git a/base_tier_validation_formula/models/tier_review.py b/base_tier_validation_formula/models/tier_review.py index 3c2228b..4bb9050 100644 --- a/base_tier_validation_formula/models/tier_review.py +++ b/base_tier_validation_formula/models/tier_review.py @@ -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(