Update on_change_* method to version 4.0

This commit is contained in:
Jes?s Mart?n Jim?nez 2016-09-02 11:12:13 +02:00
parent 159aee8381
commit 4be39f652f
1 changed files with 1 additions and 3 deletions

View File

@ -74,10 +74,8 @@ class SaleLine:
@fields.depends('document')
def on_change_document(self):
changes = {}
if self.document:
changes['description'] = self.document.name
return changes
self.description = self.document.name
class PrintDocumentWarning(ModelView):