@ -533,7 +533,7 @@ class SubscriptionRequest(models.Model):
# To be overridden
return True
@api.one
@api.one # todo remove api.one
def validate_subscription_request(self):
partner_obj = self.env['res.partner']
@ -5,6 +5,7 @@
<field name="name">subscription.request.tree</field>
<field name="model">subscription.request</field>
<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')">
<field name="name"/>
<field name="company_name"/>
@ -35,6 +35,6 @@
"views/online_payment_template.xml",
"views/subscription_request_view.xml",
],
'installable': True,
'installable': False,
'application': False,
}