Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 16.0 #897 +/- ##
==========================================
- Coverage 44.28% 43.79% -0.49%
==========================================
Files 317 325 +8
Lines 6294 6464 +170
Branches 1000 1011 +11
==========================================
+ Hits 2787 2831 +44
- Misses 3486 3612 +126
Partials 21 21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1e0c8e2 to
49384d8
Compare
Mark sale order lines and invoice only the marked ones. Adds a generic boolean ``selected`` on ``sale.order.line`` and an "Only selected lines" checkbox on the standard ``sale.advance.payment.inv`` wizard. When the wizard runs with that flag, ``_get_invoiceable_lines`` narrows core's regular invoiceable result to the selected lines (sections and down-payments handled like core), and ``selected`` is reset on the just-invoiced lines. Useful for long quotations where the customer wants to invoice subsets instead of the full order.
49384d8 to
f11e02c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New module
sale_invoice_partial_linesthat lets the user pick which sale order lines go into the next regular invoice via a per-line Invoice next checkbox persisted in the database.to_invoice_nextboolean onsale.order.line(DB-persisted,copy=False). The selection survives pagination, refreshes and browser restarts — important on quotations with hundreds of lines.X lines · subtotal Y €), and a search filter on the standalone order-line list view.sale.advance.payment.invextended with anonly_selected_linescheckbox, visible only when Regular invoice is selected. When checked,_get_invoiceable_lineskeeps only marked product lines plus their wrapping sections, notes and prior down payments; raisesUserErrorif no line is marked. The flag is reset on every invoiced line right after the invoice is created.ca.poandes.pofor the new strings only.Test plan
-i sale_invoice_partial_lines)--test-tags=/sale_invoice_partial_lines, 6/6)pre-commit run -aclean