Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Commits
248b84ea
Commit
248b84ea
authored
9 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
Merge invoice and credit note
issue5225 review18921002
parent
18f1a308
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
invoice.py
+2
-6
2 additions, 6 deletions
invoice.py
with
2 additions
and
6 deletions
invoice.py
+
2
−
6
View file @
248b84ea
...
...
@@ -79,5 +79,5 @@
# an empty list means we'll use the current cost price
moves
=
[
move
for
move
in
self
.
_anglo_saxon_stock_moves
if
move
.
state
==
'
done
'
]
if
self
.
invoice
.
type
==
'
in
_invoice
'
:
if
self
.
invoice
.
type
==
'
in
'
:
type_
=
'
in_supplier
'
...
...
@@ -83,3 +83,3 @@
type_
=
'
in_supplier
'
elif
self
.
invoice
.
type
==
'
out
_invoice
'
:
elif
self
.
invoice
.
type
==
'
out
'
:
type_
=
'
out_customer
'
...
...
@@ -85,8 +85,4 @@
type_
=
'
out_customer
'
elif
self
.
invoice
.
type
==
'
in_credit_note
'
:
type_
=
'
out_supplier
'
elif
self
.
invoice
.
type
==
'
out_credit_note
'
:
type_
=
'
in_customer
'
if
self
.
quantity
<
0
:
direction
,
target
=
type_
.
split
(
'
_
'
)
if
direction
==
'
in
'
:
...
...
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