We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0654a3a + d0624f9 commit a6fdb97Copy full SHA for a6fdb97
fieldservice_recurring/models/fsm_recurring.py
@@ -70,7 +70,7 @@ def _default_team_id(self):
70
help="This is the order template that will be recurring",
71
)
72
company_id = fields.Many2one(
73
- "res.company", "Company", default=lambda self: self.env.user.company_id
+ "res.company", "Company", default=lambda self: self.env.company, required=True
74
75
fsm_order_ids = fields.One2many(
76
"fsm.order", "fsm_recurring_id", string="Orders", copy=False
0 commit comments