Browse Source

[FIX] adding default value "deferred" for payment type to avoid problem

when creating subscription request from backend.
pull/1/head
houssine 7 years ago
parent
commit
c07e0e8dff
  1. 2
      easy_my_coop_online_payment/models/coop.py

2
easy_my_coop_online_payment/models/coop.py

@ -5,7 +5,7 @@ class SubscriptionRequest(models.Model):
_inherit = 'subscription.request'
payment_type = fields.Selection([('online', 'Online'),
('deferred', 'Deferred')], string='Payment Type')
('deferred', 'Deferred')], string='Payment Type', default="deferred")
def send_capital_release_request(self, invoice):
if self.payment_type == 'deferred':

Loading…
Cancel
Save