Skip to content

Commit

Permalink
Merge 2a1d67a into ab1b00b
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Nov 29, 2019
2 parents ab1b00b + 2a1d67a commit f727c82
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 75 deletions.
2 changes: 1 addition & 1 deletion sale_operating_unit/models/__init__.py
@@ -1,4 +1,4 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from . import sale_order
from . import crm_team
from . import sale_order
72 changes: 0 additions & 72 deletions sale_operating_unit/models/sale.py

This file was deleted.

3 changes: 1 addition & 2 deletions sale_operating_unit/models/sale_order.py
Expand Up @@ -14,8 +14,7 @@ def _default_operating_unit(self):
team = self.env['crm.team']._get_default_team_id()
if team.operating_unit_id:
return team.operating_unit_id
else:
return self.env.user.default_operating_unit_id
return self.env.user.default_operating_unit_id

operating_unit_id = fields.Many2one(
comodel_name='operating.unit',
Expand Down

0 comments on commit f727c82

Please sign in to comment.