You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
965 B
27 lines
965 B
from odoo import fields, models
|
|
|
|
|
|
class SubscriptionRequest(models.Model):
|
|
_inherit = 'subscription.request'
|
|
|
|
company_type = fields.Selection([('scrl', 'SCRL'),
|
|
('asbl', 'ASBL'),
|
|
('sprl', 'SPRL'),
|
|
('sa', 'SA')])
|
|
|
|
def get_partner_company_vals(self):
|
|
vals = super(SubscriptionRequest).get_partner_company_vals()
|
|
vals['out_inv_comm_algorithm'] = 'random'
|
|
return vals
|
|
|
|
def get_partner_vals(self):
|
|
vals = super(SubscriptionRequest).get_partner_vals()
|
|
vals['out_inv_comm_type'] = 'bba'
|
|
vals['out_inv_comm_algorithm'] = 'random'
|
|
return vals
|
|
|
|
def get_representative_valst(self):
|
|
vals = super(SubscriptionRequest).get_representative_vals()
|
|
vals['out_inv_comm_type'] = 'bba'
|
|
vals['out_inv_comm_algorithm'] = 'random'
|
|
return vals
|