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

[ADD] sale_order_line_effective_date #3129

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

EmilioPascual
Copy link
Contributor

Add field effective date in sale order line. This field is a compute with completion date of the first delivery.

@yajo @Shide @rafaelbn @Gelojr please review

MT-6075 @moduon

@rafaelbn rafaelbn added this to the 16.0 milestone May 8, 2024
Comment on lines +19 to +22
moves = line.move_ids.filtered(
lambda x: x.state == "done" and x.location_dest_id.usage == "customer"
)
dates_list = [date for date in moves.mapped("date") if date]
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: filtering twice feels awkward

Suggested change
moves = line.move_ids.filtered(
lambda x: x.state == "done" and x.location_dest_id.usage == "customer"
)
dates_list = [date for date in moves.mapped("date") if date]
moves = line.move_ids.filtered(
lambda x: x.state == "done" and x.location_dest_id.usage == "customer" and x.date
)
dates_list = moves.mapped("date")

@@ -0,0 +1 @@
This module extends the functionality of sale stock and add field effective date in sale order line, this field is completion date of the first delivery order.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This module extends the functionality of sale stock and add field effective date in sale order line, this field is completion date of the first delivery order.
This module extends the functionality of sale stock and adds the field "effective date" in sale order lines.
This field displays the completion date of the first delivery order.

To use this module, you need to:

1. Go to Sales > Orders > Quotation.
1. Create new quotation with storable product.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1. Create new quotation with storable product.
1. Create a new quotation with a storable product.

1. Set quantities done in delivery picking.
1. Validate delivery picking.

To see field effective date you can install *sale_order_line_menu*
Copy link
Member

Choose a reason for hiding this comment

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

This would fit better in INSTALL.md

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.

None yet

3 participants