|
@ -1,7 +1,8 @@ |
|
|
# -*- coding: utf-8 -*- |
|
|
# -*- coding: utf-8 -*- |
|
|
from openerp import api, fields, models |
|
|
|
|
|
|
|
|
from openerp import api, models |
|
|
|
|
|
|
|
|
class subscription_request(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SubscriptionRequest(models.Model): |
|
|
_inherit = 'subscription.request' |
|
|
_inherit = 'subscription.request' |
|
|
|
|
|
|
|
|
def get_eater_vals(self, partner, share_product_id): |
|
|
def get_eater_vals(self, partner, share_product_id): |
|
@ -18,7 +19,7 @@ class subscription_request(models.Model): |
|
|
@api.one |
|
|
@api.one |
|
|
def validate_subscription_request(self): |
|
|
def validate_subscription_request(self): |
|
|
|
|
|
|
|
|
invoice = super(subscription_request, self).validate_subscription_request()[0] |
|
|
|
|
|
|
|
|
invoice = super(SubscriptionRequest, self).validate_subscription_request()[0] |
|
|
partner = invoice.partner_id |
|
|
partner = invoice.partner_id |
|
|
|
|
|
|
|
|
vals = self.get_eater_vals(partner, self.share_product_id) |
|
|
vals = self.get_eater_vals(partner, self.share_product_id) |
|
|