-
Notifications
You must be signed in to change notification settings - Fork 267
[18.0][MIG] fieldservice_account_analytic #1226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EdgarRetes
wants to merge
52
commits into
OCA:18.0
Choose a base branch
from
ursais:18.0-mig-fieldservice_account_analytic
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e0c8a90
[IMP] fieldservice_account: Simplify module
brian10048 2a32513
Clean up customer_id (billing), cost and change link between account_…
hparfr 107b27f
add missing files
hparfr 6fb09af
[FIX] fieldservice_account: tests and travis
brian10048 7fb85fc
[IMP] fieldservice_account: Update maintainers
brian10048 e6c1927
fieldservice_account_analytic 12.0.2.0.2
OCA-git-bot 903e20e
[IMP] Analytic Account Company Dependant
osi-scampbell 404d69b
fieldservice_account_analytic 12.0.2.1.0
OCA-git-bot 55f1d64
[12.0][IMP] fieldservice
murtuzasaleh fe60e2f
fieldservice_account_analytic 12.0.3.0.0
OCA-git-bot c3f8a20
[IMP] Set Default Customer
osi-scampbell e6c2283
fieldservice_account_analytic 12.0.3.1.0
OCA-git-bot 3f844ee
[DEL] Remove fsm_location_person.py
osi-scampbell 4f06bee
fieldservice_account_analytic 12.0.3.2.0
OCA-git-bot 4510ddc
[IMP] Filter Location/Contact
osi-scampbell eeabe9c
fieldservice_account_analytic 12.0.3.3.0
OCA-git-bot c0c5df5
[WIP][13.0][MIG] Fix Travis
murtuzasaleh 9e27a19
[IMP] Improved code.
murtuzasaleh 5a05c72
[14.0][MIG] fieldservice_account_analytic
Freni-OSI 9a3a91f
Added translation using Weblate (Turkish)
tate11 fc6f43a
Translated using Weblate (Spanish (Argentina))
ibuioli cef6b80
Translated using Weblate (Turkish)
tate11 85cfcc3
Translated using Weblate (Portuguese (Brazil))
marcos-mendez 8bca1c4
[15.0][FIX] Travis
Freni-OSI f5c255b
[15.0][MIG] fieldservice_account_analytic
Freni-OSI 0e41978
Added translation using Weblate (Italian)
mymage 93e0c1a
Translated using Weblate (Italian)
mymage a15aa44
Translated using Weblate (Spanish (Argentina))
ibuioli af5b04d
Translated using Weblate (Portuguese (Brazil))
douglascstd 1b463f1
[MIG] fieldservice_account_analytic: Migration to 16.0
d1981ab
[UPD] Update fieldservice_account_analytic.pot
97c30a2
[BOT] post-merge updates
OCA-git-bot 7c6c214
Translated using Weblate (Spanish)
Ivorra78 80bc623
Translated using Weblate (Portuguese (Brazil))
adrianojprado e7adb35
Translated using Weblate (Italian)
mymage e8cbf5b
[IMP] fieldservice_account_analytic: pre-commit auto fixes
peluko00 51f47b0
[MIG] fieldservice_account_analytic: Migration to 17.0
peluko00 c48ecdc
[UPD] Update fieldservice_account_analytic.pot
323dede
[BOT] post-merge updates
OCA-git-bot de6d104
Update translation files
weblate af87aea
[MIG] fieldservice_account_analytic: Migration to 18.0
EdgarRetes a7c9411
[ADD] fieldservise_account_analytic: analytic plans
EdgarRetes a07c116
[ADD] fieldservice_account_analytic: Location analytic account
EdgarRetes 0b4d9cb
[ADD] fieldservice_account_analytic: Route analytic plan
EdgarRetes 6289872
[ADD] fieldservice_account_analytic: Smart buttons
EdgarRetes 886398a
[ADD] fieldservice_account_analytic: account_usability dependency
EdgarRetes ec1e779
Update fieldservice_account_analytic/readme/USAGE.md
max3903 9017205
Update fsm_order.xml
max3903 ec44a96
Update fieldservice_account_analytic/views/fsm_route.xml
max3903 5c93b75
Update fieldservice_account_analytic/models/fsm_order.py
max3903 3dcd910
[ADD] fieldservice_account_analytic: Contractor costs
EdgarRetes b7ce772
[ADD] fieldservice_account_analytic: Add group when installed
EdgarRetes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -54,3 +54,18 @@ def _search( | |
| limit=limit, | ||
| order=order, | ||
| ) | ||
|
|
||
| @api.model | ||
| def create(self, vals): | ||
| record = super().create(vals) | ||
| analytic_account = self.env["account.analytic.account"].create( | ||
|
||
| { | ||
| "name": vals.get("name"), | ||
| "plan_id": self.env.ref( | ||
| "fieldservice_account_analytic.fsm_location_analytic_plan" | ||
| ).id, | ||
| "fsm_location_id": record, | ||
| } | ||
| ) | ||
| record.analytic_account_id = analytic_account | ||
| return record | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we split this into two files:
account_analytic_line.pyandaccount_analytic_account.py?