Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lefilament_sales
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
lefilament_sales
Commits
07ce21e7
Commit
07ce21e7
authored
6 years ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
Extend lines to invoiced ones
parent
2509fded
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/sale.py
+1
-1
1 addition, 1 deletion
models/sale.py
with
1 addition
and
1 deletion
models/sale.py
+
1
−
1
View file @
07ce21e7
...
...
@@ -17,7 +17,7 @@ class SaleOrder(models.Model):
Compute the amount (untaxed) that remains to be invoiced from sale order
"""
for
order
in
self
:
line_to_invoice
=
[
line
for
line
in
order
.
order_line
if
line
.
invoice_status
==
'
to invoice
'
]
line_to_invoice
=
[
line
for
line
in
order
.
order_line
if
line
.
invoice_status
==
'
to invoice
'
or
line
.
invoice_status
==
'
invoiced
'
]
untaxed_amount_to_invoice
=
order
.
amount_untaxed
for
line
in
line_to_invoice
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment