-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fieldservice_account_analytic/models/fsm_order.py
- Loading branch information
1 parent
ec44a96
commit 5c93b75
Showing
5 changed files
with
41 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,17 +26,6 @@ def setUpClass(cls): | |
cls.test_loc_partner2 = cls.env["res.partner"].create( | ||
{"name": "Test Loc Partner 2", "phone": "123", "email": "[email protected]"} | ||
) | ||
# create expected FSM Location to compare to converted FSM Location | ||
cls.test_location = cls.env["fsm.location"].create( | ||
{ | ||
"name": "Test Location", | ||
"phone": "123", | ||
"email": "[email protected]", | ||
"partner_id": cls.test_loc_partner.id, | ||
"owner_id": cls.test_loc_partner.id, | ||
"customer_id": cls.test_loc_partner.id, | ||
} | ||
) | ||
cls.location = cls.env["fsm.location"].create( | ||
{ | ||
"name": "Location 1", | ||
|
@@ -56,6 +45,18 @@ def setUpClass(cls): | |
"plan_id": cls.test_analytic_plan.id, | ||
} | ||
) | ||
# create expected FSM Location to compare to converted FSM Location | ||
cls.test_location = cls.env["fsm.location"].create( | ||
{ | ||
"name": "Test Location", | ||
"phone": "123", | ||
"email": "[email protected]", | ||
"partner_id": cls.test_loc_partner.id, | ||
"owner_id": cls.test_loc_partner.id, | ||
"customer_id": cls.test_loc_partner.id, | ||
"analytic_account_id": cls.test_analytic_account.id, | ||
} | ||
) | ||
cls.test_location2 = cls.env["fsm.location"].create( | ||
{ | ||
"name": "Test Location 2", | ||
|
@@ -122,6 +123,7 @@ def test_fsm_orders_1(self): | |
"request_early": fields.datetime.today(), | ||
} | ||
) | ||
|
||
order4 = self.env["fsm.order"].create( | ||
{ | ||
"location_id": self.location.id, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters