Adapt issue6253.diff to review284621002.
This commit is contained in:
parent
b039f0c38c
commit
7c80810ef7
|
@ -17,7 +17,7 @@ diff -r 6c85f394741c invoice.py
|
||||||
pattern.setdefault('fiscalyear', fiscalyear.id)
|
pattern.setdefault('fiscalyear', fiscalyear.id)
|
||||||
pattern.setdefault('period', period.id)
|
pattern.setdefault('period', period.id)
|
||||||
invoice_type = self.type
|
invoice_type = self.type
|
||||||
- if (all(l.amount < 0 for l in self.lines if l.product)
|
- if (all(l.amount <= 0 for l in self.lines if l.product)
|
||||||
- and self.total_amount < 0):
|
- and self.total_amount < 0):
|
||||||
- invoice_type += '_credit_note'
|
- invoice_type += '_credit_note'
|
||||||
- else:
|
- else:
|
||||||
|
|
Loading…
Reference in New Issue