Houssine BAKKALI
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
12 additions and
0 deletions
-
easy_my_coop/models/partner.py
-
easy_my_coop/views/res_partner_view.xml
|
@ -185,6 +185,14 @@ class ResPartner(models.Model): |
|
|
internal_rules_approved = fields.Boolean(string="Approved Internal Rules") |
|
|
internal_rules_approved = fields.Boolean(string="Approved Internal Rules") |
|
|
financial_risk_approved = fields.Boolean(string="Approved Financial Risk") |
|
|
financial_risk_approved = fields.Boolean(string="Approved Financial Risk") |
|
|
|
|
|
|
|
|
|
|
|
@api.multi |
|
|
|
|
|
def touch_cooperator_type(self): |
|
|
|
|
|
self.ensure_one() |
|
|
|
|
|
for line in self.share_ids: |
|
|
|
|
|
line.share_product_id = line.share_product_id.id |
|
|
|
|
|
break |
|
|
|
|
|
return True |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
@api.depends("subscription_request_ids.state") |
|
|
@api.depends("subscription_request_ids.state") |
|
|
def _compute_coop_candidate(self): |
|
|
def _compute_coop_candidate(self): |
|
|
|
@ -23,6 +23,10 @@ |
|
|
type="action" |
|
|
type="action" |
|
|
context="{'default_active_id': active_id}" |
|
|
context="{'default_active_id': active_id}" |
|
|
groups="easy_my_coop.group_easy_my_coop_user"/> |
|
|
groups="easy_my_coop.group_easy_my_coop_user"/> |
|
|
|
|
|
<button string="Touch" |
|
|
|
|
|
name="touch_cooperator_type" |
|
|
|
|
|
type="object" |
|
|
|
|
|
groups="base.group_system"/> |
|
|
</header> |
|
|
</header> |
|
|
</sheet> |
|
|
</sheet> |
|
|
|
|
|
|
|
|