Copy order number to credit invoice

This commit is contained in:
Sergi Almacellas Abellana 2015-07-20 17:16:33 +02:00
parent 80f94e1aab
commit bab7e4151c

View file

@ -28,6 +28,11 @@ class Invoice:
def search_requires_order_number(cls, name, clause):
return [('party.requires_order_number',) + tuple(clause[1:])]
def _credit(self):
values = super(Invoice, self)._credit()
values['number_order'] = self.number_order
return values
class Party:
__name__ = 'party.party'