Fix for former fields deletion.
This commit is contained in:
1 parent
d10c6443fa
commit
9d2232065d
1 file changed
+1
-7
+1
-7
@@ -55,15 +55,9 @@ class Statement(OSV):
|
||||
if not value.get('journal'):
|
||||
return {}
|
||||
journal_obj = self.pool.get('statement.journal')
|
||||
currency_obj = self.pool.get('currency.currency')
|
||||
company_obj = self.pool.get('company.company')
|
||||
journal= journal_obj.browse(cursor, user, value['journal'],
|
||||
context=context)
|
||||
return {'currency': currency_obj.name_get(
|
||||
cursor, user, journal.currency.id, context=context)[0],
|
||||
'company': company_obj.name_get(
|
||||
cursor, user, journal.company.id, context=context)[0],
|
||||
'start_balance': journal.balance}
|
||||
return {'start_balance': journal.balance}
|
||||
|
||||
def get_end_balance(self, cursor, user, ids, name, arg, context=None):
|
||||
statements = self.browse(cursor, user, ids, context=context)
|
||||
|
||||
Reference in new issue
Block a user