fix field name

This commit is contained in:
?ngel ?lvarez 2018-02-14 17:57:26 +01:00
parent 1ff303a8e3
commit fb09dd6205
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ diff -r 6c85f394741c invoice.py
cls.save(invoices)
+ def invoice_type_criteria(self):
+ if self.base_amount < 0:
+ if self.untaxed_amount < 0:
+ return '_credit_note'
+ return '_invoice'
+