diff --git a/move.py b/move.py index 8ec385e700..8d161a472f 100644 --- a/move.py +++ b/move.py @@ -1476,21 +1476,6 @@ class Line(ModelSQL, ModelView): default['reconciliation'] = None return super(Line, cls).copy(lines, default=default) - @classmethod - def view_header_get(cls, value, view_type='form'): - JournalPeriod = Pool().get('account.journal.period') - if (not Transaction().context.get('journal') - or not Transaction().context.get('period')): - return value - journal_periods = JournalPeriod.search([ - ('journal', '=', Transaction().context['journal']), - ('period', '=', Transaction().context['period']), - ], limit=1) - if not journal_periods: - return value - journal_period, = journal_periods - return value + ': ' + journal_period.rec_name - @classmethod def view_toolbar_get(cls): pool = Pool() @@ -1525,15 +1510,13 @@ class Line(ModelSQL, ModelView): result = super(Line, cls).fields_view_get(view_id=view_id, view_type=view_type) if view_type == 'tree' and 'journal' in Transaction().context: - title = cls.view_header_get('', view_type=view_type) journal = Journal(Transaction().context['journal']) if not journal.view: return result xml = '\n' \ - '\n' \ - % title + '\n' fields = set() for column in journal.view.columns: fields.add(column.field.name) diff --git a/view/account_balance_sheet_tree.xml b/view/account_balance_sheet_tree.xml index 4b8d9983ae..cb9a798260 100644 --- a/view/account_balance_sheet_tree.xml +++ b/view/account_balance_sheet_tree.xml @@ -1,7 +1,7 @@ - + diff --git a/view/account_deferral_form.xml b/view/account_deferral_form.xml index 7d71e49b97..f1e1337351 100644 --- a/view/account_deferral_form.xml +++ b/view/account_deferral_form.xml @@ -1,7 +1,7 @@ -
+