mirror of
https://github.com/NaN-tic/trytond-analytic_line_state.git
synced 2023-12-14 03:33:02 +01:00
FIX default_name + on_change move_line
task-028817
This commit is contained in:
parent
b5e005f0d6
commit
a703586f1e
1 changed files with 4 additions and 4 deletions
|
@ -385,14 +385,14 @@ class AnalyticLine:
|
|||
value = context.get(name)
|
||||
if value:
|
||||
return value
|
||||
if 'move' in context:
|
||||
if context.get('move'):
|
||||
move = Pool().get('account.move')(context.get('move'))
|
||||
return move.description
|
||||
|
||||
def on_change_move_line(self):
|
||||
self.journal = None,
|
||||
self.name = None,
|
||||
self.party = None,
|
||||
self.journal = None
|
||||
self.name = None
|
||||
self.party = None
|
||||
if self.move_line:
|
||||
self.date = self.move_line.move.date
|
||||
if not self.debit:
|
||||
|
|
Loading…
Reference in a new issue