mirror of
https://github.com/NaN-tic/trytond-account_invoice_order_number-old.git
synced 2023-12-14 04:42:52 +01:00
Copy order number to credit invoice
This commit is contained in:
parent
80f94e1aab
commit
bab7e4151c
1 changed files with 5 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue