changeset 584793391809 in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=584793391809
description:
Rename informations to information
issue7926
review54491002
diffstat:
CHANGELOG | 2 ++
statement.py | 13 +++++++++++--
view/statement_origin_form.xml | 2 +-
3 files changed, 14 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 38674f99dfd1 -r 584793391809 CHANGELOG
--- a/CHANGELOG Wed Jan 30 11:58:45 2019 +0100
+++ b/CHANGELOG Wed Feb 06 22:34:13 2019 +0100
@@ -1,3 +1,5 @@
+* Rename Origin field informations to information
+
Version 5.0.0 - 2018-10-01
* Bug fixes (see mercurial logs for details)
* Use single account for statement journal
diff -r 38674f99dfd1 -r 584793391809 statement.py
--- a/statement.py Wed Jan 30 11:58:45 2019 +0100
+++ b/statement.py Wed Feb 06 22:34:13 2019 +0100
@@ -1008,8 +1008,17 @@
digits=(16, Eval('_parent_statement', {})
.get('currency_digits', 2))),
'on_change_with_pending_amount', searcher='search_pending_amount')
- informations = fields.Dict(
- 'account.statement.origin.information', "Informations", readonly=True)
+ information = fields.Dict(
+ 'account.statement.origin.information', "Information", readonly=True)
+
+ @classmethod
+ def __register__(cls, module_name):
+ table = cls.__table_handler__(module_name)
+
+ # Migration from 5.0: rename informations into information
+ table.column_rename('informations', 'information')
+
+ super(Origin, cls).__register__(module_name)
@fields.depends('statement')
def on_change_with_statement_id(self, name=None):
diff -r 38674f99dfd1 -r 584793391809 view/statement_origin_form.xml
--- a/view/statement_origin_form.xml Wed Jan 30 11:58:45 2019 +0100
+++ b/view/statement_origin_form.xml Wed Feb 06 22:34:13 2019 +0100
@@ -20,6 +20,6 @@
<field name="account"/>
<label name="description"/>
<field name="description" colspan="3"/>
- <field name="informations" colspan="4"/>
+ <field name="information" colspan="4"/>
<field name="lines" colspan="4"/>
</form>