Skip to content

[17.0][IMP] fieldservice_stock: Autocomplete order warehouse with default worker warehouse #1374

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
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

BernatObrador
Copy link

This PR adds autocomplete for the warehouse_id in FSM orders based on the worker’s default warehouse.
It uses the default warehouse set on the user linked to the worker’s partner.

How to test:

  1. Create an additional warehouse (if the company only has one).
  2. Go to the worker’s user record: Preferences → Default Warehouse and set it.
  3. In an FSM order, select a worker associated with that user.
  4. The warehouse_id field should autopopulate with the user’s default warehouse.

cc https://github.com/APSL 8334

@miquelalzanillas @lbarry-apsl @mpascuall @peluko00 @javierobcn @ppyczko please review

@OCA-git-bot
Copy link
Contributor

Hi @brian10048, @wolfhall, @max3903, @smangukiya,
some modules you are maintaining are being modified, check this out!

@BernatObrador BernatObrador changed the title [IMP] fieldservice_stock: Autocomplete order warehouse with default worker warehouse [17.0][IMP] fieldservice_stock: Autocomplete order warehouse with default worker warehouse Apr 15, 2025
@BernatObrador BernatObrador force-pushed the 17.0-imp-fieldservice_stock branch from 6ad39fb to 01abd35 Compare April 15, 2025 06:59
Copy link
Contributor

@peluko00 peluko00 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@ppyczko ppyczko left a comment

Choose a reason for hiding this comment

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

LTGM!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

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

Successfully merging this pull request may close these issues.

5 participants