Browse Source

Merge PR #80 into 12.0

Signed-off-by jbeficent
12.0
OCA-git-bot 5 years ago
parent
commit
d84a13b102
  1. 2
      base_tier_validation/__manifest__.py
  2. 2
      base_tier_validation/models/tier_validation.py

2
base_tier_validation/__manifest__.py

@ -3,7 +3,7 @@
{
"name": "Base Tier Validation",
"summary": "Implement a validation process based on tiers.",
"version": "12.0.3.0.0",
"version": "12.0.3.1.0",
"development_status": "Mature",
"maintainers": ['lreficent'],
"category": "Tools",

2
base_tier_validation/models/tier_validation.py

@ -88,7 +88,7 @@ class TierValidation(models.AbstractModel):
for rec in self:
tiers = self.env[
'tier.definition'].search([('model', '=', self._name)])
valid_tiers = any([self.evaluate_tier(tier) for tier in tiers])
valid_tiers = any([rec.evaluate_tier(tier) for tier in tiers])
rec.need_validation = not rec.review_ids and valid_tiers and \
getattr(rec, self._state_field) in self._state_from

Loading…
Cancel
Save