Browse Source

[IMP] easy_my_coop_online_payment: not installable

pull/58/head
robin.keunen 5 years ago
parent
commit
0407349d69
  1. 2
      easy_my_coop/models/coop.py
  2. 1
      easy_my_coop/views/subscription_request_view.xml
  3. 2
      easy_my_coop_online_payment/__openerp__.py

2
easy_my_coop/models/coop.py

@ -533,7 +533,7 @@ class SubscriptionRequest(models.Model):
# To be overridden # To be overridden
return True return True
@api.one
@api.one # todo remove api.one
def validate_subscription_request(self): def validate_subscription_request(self):
partner_obj = self.env['res.partner'] partner_obj = self.env['res.partner']

1
easy_my_coop/views/subscription_request_view.xml

@ -5,6 +5,7 @@
<field name="name">subscription.request.tree</field> <field name="name">subscription.request.tree</field>
<field name="model">subscription.request</field> <field name="model">subscription.request</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<!-- fixme no colors in v12 ? -->
<tree string="Subscription Requests" colors="red:validated == False; blue:state in ('draft'); grey: state in ('done')"> <tree string="Subscription Requests" colors="red:validated == False; blue:state in ('draft'); grey: state in ('done')">
<field name="name"/> <field name="name"/>
<field name="company_name"/> <field name="company_name"/>

2
easy_my_coop_online_payment/__openerp__.py

@ -35,6 +35,6 @@
"views/online_payment_template.xml", "views/online_payment_template.xml",
"views/subscription_request_view.xml", "views/subscription_request_view.xml",
], ],
'installable': True,
'installable': False,
'application': False, 'application': False,
} }
Loading…
Cancel
Save