-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
[15.0][MIG] product_route_profile #1775
Open
bosd
wants to merge
18
commits into
OCA:15.0
Choose a base branch
from
bosd:15.0-mig-product_route_profile
base: 15.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
18 commits
Select commit
Hold shift + click to select a range
bd47ee9
[ADD] module: product_route_profile
Kev-Roche 3a18b5b
[UPD] Update product_route_profile.pot
cace422
[UPD] README.rst
OCA-git-bot 36926c7
[ADD] icon.png
OCA-git-bot fe550fd
product_route_profile 14.0.1.0.1
OCA-git-bot 0fd9234
[FIX] product_route_profile _inverse_route_ids store selected route_p…
awisky d6a09e3
product_route_profile 14.0.1.0.2
OCA-git-bot 54d8c3c
Added translation using Weblate (Dutch)
bosd 3507a64
[UPD] README.rst
OCA-git-bot 4ae3c68
Update translation files
weblate 602cbb6
*: Fix pylint
etobella 0f9a9a2
[UPD] Update product_route_profile.pot
e66cb5b
[BOT] post-merge updates
OCA-git-bot ca3ec30
Update translation files
weblate 54d3390
[IMP] product_route_profile: pre-commit execution
bosd e88af8c
[MIG] product_route_profile: Migration to 15.0
bosd c0cbd2e
[IMP] product_route_profile: add custom icon
bosd 900e724
[IMP] product_route_profile: Improve module Description
bosd 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 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 |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
# @author Kévin Roche <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.tests.common import SavepointCase | ||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestProductRouteProfile(SavepointCase): | ||
class TestProductRouteProfile(TransactionCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
super(TestProductRouteProfile, cls).setUpClass() | ||
|
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.
@bosd Why is this needed ?
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.
I think it was needed to pass the tests.
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.
@bosd I still need an answer on this as just putting this for tests is not wanted.
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.
Good question. I don't remember, it has been a while :)
Maybe better to do functional test it without this. To see if it only is relevant for the tests. Or also required to achieve the functionality.
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.
Given that different routes may apply depending on the current company, it might be the case that there are route profiles (with an empty company_id) that provide routes for different companies. In that case it makes sense to escalate privileges when copying routes so that routes are copied even if the user does not have access to the all the companies that the routes belong to.