Skip to content

Commit a6fdb97

Browse files
committed
Merge PR #1167 into 14.0
Signed-off-by max3903
2 parents 0654a3a + d0624f9 commit a6fdb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fieldservice_recurring/models/fsm_recurring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _default_team_id(self):
7070
help="This is the order template that will be recurring",
7171
)
7272
company_id = fields.Many2one(
73-
"res.company", "Company", default=lambda self: self.env.user.company_id
73+
"res.company", "Company", default=lambda self: self.env.company, required=True
7474
)
7575
fsm_order_ids = fields.One2many(
7676
"fsm.order", "fsm_recurring_id", string="Orders", copy=False

0 commit comments

Comments
 (0)