Skip to content

[16.0][ADD] purchase_date_planned_manual_container_deposit_product: When date_planned is set manually, prevent calculation of the field up#2342

Closed
chaule97 wants to merge 1 commit intoOCA:16.0from
chaule97:16.0-fix-purchase_date_planned_manual
Closed

[16.0][ADD] purchase_date_planned_manual_container_deposit_product: When date_planned is set manually, prevent calculation of the field up#2342
chaule97 wants to merge 1 commit intoOCA:16.0from
chaule97:16.0-fix-purchase_date_planned_manual

Conversation

@chaule97
Copy link

@chaule97 chaule97 commented Jul 8, 2024

  • Add module purchase_date_planned_manual_container_deposit_product: When date_planned is set manually and add product attached to container deposit, this glue module makes those purchase order lines have a same date_planned

@chaule97 chaule97 force-pushed the 16.0-fix-purchase_date_planned_manual branch 2 times, most recently from f77c2ad to b5e589a Compare July 8, 2024 09:46

def prepare_deposit_container_line(self, product, qty):
values = super().prepare_deposit_container_line(product, qty)
if self.date_planned:
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment is welcome, why the values["date_planned"] is overridden here and we need to fix it?

Copy link
Author

Choose a reason for hiding this comment

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

prepare_deposit_container_line will return values to create a new purchase order line with the container deposit product. If we enter Expected Arrival date_planned in the purchase order, we need to send the date_planned from the purchase order to the purchase order line. If not, the new purchase order line will have date_planned as today.

The method I override and where it was executed.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @sebalix , Do you want to reopen this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

hi guys, it's seems to be good for me, could we reopen the pr and merge ? @chaule97

Copy link
Author

Choose a reason for hiding this comment

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

Hi @cyrilmanuel , can we merge #2979?

…te_planned is set manually, prevent calculation of the field upon PO confirmation
@chaule97 chaule97 force-pushed the 16.0-fix-purchase_date_planned_manual branch from b5e589a to 75173d9 Compare July 9, 2024 10:05
@chaule97 chaule97 requested a review from sebalix July 9, 2024 12:10
@github-actions
Copy link

github-actions bot commented Dec 7, 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 Dec 7, 2025
@github-actions github-actions bot closed this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants