i have multiple companies setup.
i have sale form there is a field called workflow_process_id,
i want this field having different default value based on which company_id
e.g. if company_id = 1 open the sale form, this workflow_id is 'workflow a'
how should i retrieve the company_id and modify this routine?
class SaleOrder(models.Model):
_inherit = "sale.order"
workflow_process_id = fields.Many2one(
comodel_name="sale.workflow.process", string="Automatic Workflow",
ondelete="restrict", )