Skip to content
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
wants to merge 17 commits into
base: 15.0
Choose a base branch
from

Conversation

bosd
Copy link
Contributor

@bosd bosd commented Jun 23, 2023

Standard migration.

@bosd bosd force-pushed the 15.0-mig-product_route_profile branch 3 times, most recently from 51944b5 to 8c505e3 Compare June 23, 2023 18:21
@bosd bosd force-pushed the 15.0-mig-product_route_profile branch 2 times, most recently from 02a7d37 to ba6b877 Compare August 12, 2023 21:43
@bosd bosd force-pushed the 15.0-mig-product_route_profile branch 5 times, most recently from ab4e002 to 95773a9 Compare October 31, 2023 19:25
@bosd
Copy link
Contributor Author

bosd commented Oct 31, 2023

Generated the icon with command:

oca-gen-addon-icon --addon-dir=. --format png --icon-set-params "fa fa-route" --icon-extra='{"fa fa-box fa-lg": {"position": "absolute", "top": "100px", "left": "5px", "font-size": "28px"}}' --icon-color yellow

@bosd bosd marked this pull request as ready for review October 31, 2023 19:54
@bosd bosd force-pushed the 15.0-mig-product_route_profile branch from 5e90c9f to c0cbd2e Compare January 13, 2024 16:31
@bosd
Copy link
Contributor Author

bosd commented Jan 13, 2024

@pedrobaeza pre-commit was broken here..
But all good now. 👍

@pedrobaeza
Copy link
Member

/ocabot migration product_route_profile

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Jan 13, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 13, 2024
80 tasks
@bosd
Copy link
Contributor Author

bosd commented Feb 2, 2024

@francesco-ooops Can you please review?

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bosd sorry but I don't understand well what this module does. I can only see a "Route Profile" menu where I can create a record and assign a name and nothing else

@bosd
Copy link
Contributor Author

bosd commented Apr 25, 2024

Hi @bosd sorry but I don't understand well what this module does. I can only see a "Route Profile" menu where I can create a record and assign a name and nothing else

After you created a route profile, It can be assigned to a product.
It is usefull to have a products route configured with one click.
Specifically when multiple routes can be applied to a product.

e.g. with one click, the correct values are set according to the defined route_profile.
It can be set as mandatory. to prevent users erros selecting the wron routes.

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Using this as the basis of the migration to 17.0 at #2097

@@ -28,7 +28,7 @@ class ProductTemplate(models.Model):
@api.depends("route_profile_id", "force_route_profile_id")
@api.depends_context("company")
def _compute_route_ids(self):
for rec in self:
for rec in self.sudo():
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

Copy link

@Dranyel-Bosd Dranyel-Bosd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.