Add rec_name to account.move.line
issue3862 review5251002
This commit is contained in:
1 parent
9e0f9816eb
commit
6018e82a36
2 files changed
+13
No files matched your search
@@ -154,6 +154,9 @@ an account. The fields are:
|
||||
- Tax Lines. Gives the distribution of the amount line on the account
|
||||
chart
|
||||
|
||||
The Move Line is displayed using the account's name eventualy surrounded by
|
||||
parenthesis when it is a credit line.
|
||||
|
||||
The *Reconcile Lines* wizard allow to link move lines of the same
|
||||
acount for whose the credit sum is equal to the debit sum. If the
|
||||
selected lines are not balanced, the wizard offer to create a
|
||||
|
||||
@@ -1139,6 +1139,16 @@ class Line(ModelSQL, ModelView):
|
||||
order_origin = _order_move_field('origin')
|
||||
order_move_state = _order_move_field('state')
|
||||
|
||||
def get_rec_name(self, name):
|
||||
if self.debit > self.credit:
|
||||
return self.account.rec_name
|
||||
else:
|
||||
return '(%s)' % self.account.rec_name
|
||||
|
||||
@classmethod
|
||||
def search_rec_name(cls, name, clause):
|
||||
return [('account.rec_name',) + tuple(clause[1:])]
|
||||
|
||||
@classmethod
|
||||
def query_get(cls, table):
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user