FIX default_name + on_change move_line

task-028817
This commit is contained in:
Raimon Esteve 2016-10-25 10:04:56 +02:00
parent b5e005f0d6
commit a703586f1e

View file

@ -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: