Browse Source
Merge pull request #53 from Eficent/11.0-fix-base_tier_validation
[11.0][FIX] base_tier_validation
pull/54/head
Jordi Ballester Alomar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
base_tier_validation/models/tier_validation.py
-
base_tier_validation/views/tier_definition_view.xml
|
|
@ -88,7 +88,7 @@ class TierValidation(models.AbstractModel): |
|
|
|
tiers = self.env[ |
|
|
|
'tier.definition'].search([('model', '=', self._name)]) |
|
|
|
valid_tiers = any([self.evaluate_tier(tier) for tier in tiers]) |
|
|
|
rec.need_validation = not self.review_ids and valid_tiers and \ |
|
|
|
rec.need_validation = not rec.review_ids and valid_tiers and \ |
|
|
|
getattr(rec, self._state_field) in self._state_from |
|
|
|
|
|
|
|
@api.multi |
|
|
|
|
|
@ -64,7 +64,7 @@ |
|
|
|
<separator/> |
|
|
|
<filter string="All" name="all" domain="['|', ('active', '=', False), ('active', '=', True)]" /> |
|
|
|
<group expand="0" string="Group By"> |
|
|
|
<filter string="Model" domain="[]" context="{'group_by':'model_id'}"/> |
|
|
|
<filter string="Model" name="model_id" domain="[]" context="{'group_by':'model_id'}"/> |
|
|
|
</group> |
|
|
|
</search> |
|
|
|
</field> |
|
|
|