Rename informations to information

issue7926
review54491002
This commit is contained in:
David Harper
2019-02-06 22:34:13 +01:00
parent 37cf6e394f
commit 36ebb4843e
3 changed files with 14 additions and 3 deletions
+2
View File
@@ -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
+11 -2
View File
@@ -1008,8 +1008,17 @@ class Origin(origin_mixin(_states, _depends), ModelSQL, ModelView):
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):
+1 -1
View File
@@ -20,6 +20,6 @@ this repository contains the full copyright notices and license terms. -->
<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>