[FIX] YAML: typos

This commit is contained in:
Leonardo Rochael Almeida 2015-06-03 02:33:43 +02:00 committed by Martin Trigaux
parent 5760a5d547
commit 11886f4d9f
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ class YamlInterpreter(object):
id = xml_id id = xml_id
if '.' in xml_id: if '.' in xml_id:
module, id = xml_id.split('.', 1) module, id = xml_id.split('.', 1)
assert '.' not in id, "The ID reference '%s' must contains maximum one dot.\n" \ assert '.' not in id, "The ID reference '%s' must contain at most one dot.\n" \
"It is used to refer to other modules ID, in the form: module.record_id" \ "It is used to refer to other modules ID, in the form: module.record_id" \
% (xml_id,) % (xml_id,)
if module != self.module: if module != self.module:
@ -334,7 +334,7 @@ class YamlInterpreter(object):
self.cr.commit() self.cr.commit()
def _create_record(self, model, fields, view_info=None, parent={}, default=True): def _create_record(self, model, fields, view_info=None, parent={}, default=True):
"""This function processes the !record tag in yalm files. It simulates the record creation through an xml """This function processes the !record tag in yaml files. It simulates the record creation through an xml
view (either specified on the !record tag or the default one for this object), including the calls to view (either specified on the !record tag or the default one for this object), including the calls to
on_change() functions, and sending only values for fields that aren't set as readonly. on_change() functions, and sending only values for fields that aren't set as readonly.
:param model: model instance :param model: model instance