Skip to content

Commit

Permalink
[FIX] l10n_br_repair: active company
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniospneto committed May 17, 2024
1 parent 768b08d commit 9e5945f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_br_repair/models/fiscal_line_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FiscalLineMixin(models.AbstractModel):

@api.model
def _default_fiscal_operation(self):
return self.env.user.company_id.repair_fiscal_operation_id
return self.env.company.repair_fiscal_operation_id

fiscal_operation_id = fields.Many2one(
comodel_name="l10n_br_fiscal.operation",
Expand Down
4 changes: 2 additions & 2 deletions l10n_br_repair/models/repair_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class RepairOrder(models.Model):

@api.model
def _default_fiscal_operation(self):
return self.env.user.company_id.repair_fiscal_operation_id
return self.env.company.repair_fiscal_operation_id

@api.model
def _default_copy_note(self):
return self.env.user.company_id.copy_repair_quotation_notes
return self.env.company.copy_repair_quotation_notes

@api.model
def _fiscal_operation_domain(self):
Expand Down

0 comments on commit 9e5945f

Please sign in to comment.