Browse Source
Merge pull request #140 from coopiteasy/12.0-fix-view-representatives-depends
[FIX] easy_my_coop: respresentatives view depends
pull/142/head
12.0-2020-12-06.00
Manuel Claeys Bouuaert
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
easy_my_coop/models/partner.py
|
|
@ -200,7 +200,7 @@ class ResPartner(models.Model): |
|
|
|
partner.coop_candidate = is_candidate |
|
|
|
|
|
|
|
@api.multi |
|
|
|
@api.depends("parent_id", "representative") |
|
|
|
@api.depends("parent_id", "parent_id.member", "representative") |
|
|
|
def _compute_representative_of_member_company(self): |
|
|
|
for partner in self: |
|
|
|
member_companies = self.env["res.partner"].search( |
|
|
|