Skip to content
Snippets Groups Projects
Commit 248b84ea authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Merge invoice and credit note

issue5225
review18921002
parent 18f1a308
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment