mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Change diff issue18481003_1 for 4.0 series
This commit is contained in:
parent
3ec9879e69
commit
a7a9492361
|
@ -1,18 +1,9 @@
|
||||||
# HG changeset patch
|
diff -r c7607908611c trytond/trytond/modules/account_invoice/invoice.py
|
||||||
# User Sergi Almacellas Abellana <sergi@koolpi.com>
|
--- a/trytond/trytond/modules/account_invoice/invoice.py Wed May 11 11:37:56 2016 +0200
|
||||||
Correctly show reference and party on invoice rec_name
|
+++ b/trytond/trytond/modules/account_invoice/invoice.py Mon May 30 15:28:43 2016 +0200
|
||||||
|
@@ -1018,9 +1018,12 @@
|
||||||
issue4878
|
|
||||||
review18481003
|
|
||||||
|
|
||||||
Index: trytond/trytond/modules/account_invoice/invoice.py
|
|
||||||
===================================================================
|
|
||||||
|
|
||||||
--- a/trytond/trytond/modules/account_invoice/invoice.py
|
|
||||||
+++ b/trytond/trytond/modules/account_invoice/invoice.py
|
|
||||||
@@ -942,9 +942,12 @@
|
|
||||||
cls.raise_user_error('modify_invoice', (invoice.rec_name,))
|
cls.raise_user_error('modify_invoice', (invoice.rec_name,))
|
||||||
|
|
||||||
def get_rec_name(self, name):
|
def get_rec_name(self, name):
|
||||||
- return (self.number or unicode(self.id)
|
- return (self.number or unicode(self.id)
|
||||||
- + (self.reference and (' ' + self.reference) or '')
|
- + (self.reference and (' ' + self.reference) or '')
|
||||||
|
@ -23,7 +14,6 @@ Index: trytond/trytond/modules/account_invoice/invoice.py
|
||||||
+ if self.party:
|
+ if self.party:
|
||||||
+ name += ' %s' % self.party.rec_name
|
+ name += ' %s' % self.party.rec_name
|
||||||
+ return name
|
+ return name
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def search_rec_name(cls, name, clause):
|
def search_rec_name(cls, name, clause):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue