Skip to content

[IMP] stock_release_channel_process_end_time: pre-commit issue#21

Open
anothingguy wants to merge 10 commits intoacsone:16.0-release_channel_date-drofrom
anothingguy:16.0-release_channel_date_hoang
Open

[IMP] stock_release_channel_process_end_time: pre-commit issue#21
anothingguy wants to merge 10 commits intoacsone:16.0-release_channel_date-drofrom
anothingguy:16.0-release_channel_date_hoang

Conversation

@anothingguy
Copy link
Copy Markdown

No description provided.

rousseldenis and others added 10 commits May 16, 2023 11:46
As time should be timezoned to correctly compute the real end date, consider
the channel warehouse timezone or company one. If not defined, consider the timezone
as UTC.
…utation

The compute of releasable picking must take into account the process end date of the stock release channel and not the current datetime.
The way the ORM is working into Odoo prevent to makes query on model with criteria based on values from linked model (comparing column from model A to column of model B). To work arround this limitation, we use a specialized field with a search method. Field's search methods are considered as 'internal' search methods and therefore allows you to use a special 'inselect' operator. This kind operator is usefull since it allows to express a criteria as a plain SQL quey. Thanks to this approach we've an easy way to implement our needs with the Odoo's ORM.
…e_tz

Co-authored-by: Jacques-Etienne Baudoux <je@bcim.be>
@rousseldenis rousseldenis force-pushed the 16.0-release_channel_date-dro branch from 049175d to ac5d844 Compare September 28, 2023 07:35
@rousseldenis rousseldenis force-pushed the 16.0-release_channel_date-dro branch from ac5d844 to 11372d0 Compare October 6, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants