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
983 B

  1. from odoo import fields, models
  2. class SubscriptionRequest(models.Model):
  3. _inherit = 'subscription.request'
  4. company_type = fields.Selection([('scrl', 'SCRL'),
  5. ('asbl', 'ASBL'),
  6. ('sprl', 'SPRL'),
  7. ('sa', 'SA')])
  8. def get_partner_company_vals(self):
  9. vals = super(SubscriptionRequest, self).get_partner_company_vals()
  10. vals['out_inv_comm_algorithm'] = 'random'
  11. return vals
  12. def get_partner_vals(self):
  13. vals = super(SubscriptionRequest, self).get_partner_vals()
  14. vals['out_inv_comm_type'] = 'bba'
  15. vals['out_inv_comm_algorithm'] = 'random'
  16. return vals
  17. def get_representative_valst(self):
  18. vals = super(SubscriptionRequest, self).get_representative_vals()
  19. vals['out_inv_comm_type'] = 'bba'
  20. vals['out_inv_comm_algorithm'] = 'random'
  21. return vals