Skip to content

Conversation

@grindtildeath
Copy link
Contributor

No description provided.

JordiBForgeFlow and others added 11 commits February 6, 2025 18:38
Improve code after reviews

* performance (less queries executed)
* disable tracking in tests (faster)
* use with_user instead of sudo
* the double for loop in _compute_route_ids actually generates one more
  query as the simple one in this commit (thanks to the cache)
* extract a method
* the parent locations can be found using 'parent_of' which will use the
  parent_path under the hood (example: 1/7/8 will return locations 1, 7,
  8)
This is to avoid issue below for any module that inherits tree view of
the model `stock.warehouse.orderpoint`. Example: `stock_orderpoint_manual_procurement`

Field route_ids used in field route_id default domain
([('id', 'in', route_ids)]) must be present in view but is missing.
@grindtildeath grindtildeath force-pushed the 18.0-mig-stock_orderpoint_route branch from 88b35ce to ddd4c89 Compare February 6, 2025 17:56
@grindtildeath
Copy link
Contributor Author

This one will need fixing because IMO the condition to filter routes in _get_location_routes_of_parents is not correct for following reasons:

  • In v18.0, multi step reception route is excluded because its rule doesn't use an internal source location
  • Even in v16.0, using a single step reception route, it is excluded because its single rule doesn't use an internal source location
  • The delivery route should not be selectable from the orderpoint as triggering the procurement with this route selected will not generate anything

@github-actions
Copy link

github-actions bot commented Jun 8, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 8, 2025
@giarve
Copy link

giarve commented Jun 11, 2025

This one will need fixing because IMO the condition to filter routes in _get_location_routes_of_parents is not correct for following reasons:

* In v18.0, multi step reception route is excluded because its rule doesn't use an internal source location

* Even in v16.0, using a single step reception route, it is excluded because its single rule doesn't use an internal source location

* The delivery route should not be selectable from the orderpoint as triggering the procurement with this route selected will not generate anything

Check this out:

#42

Copy link
Member

@marcelsavegnago marcelsavegnago left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 15, 2025
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 19, 2025
@marcelsavegnago
Copy link
Member

@grindtildeath can you rebase?

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 26, 2025
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.