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.

26 lines
859 B

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