diff --git a/trytond/ir/translation.xml b/trytond/ir/translation.xml index 7d13fad580..f007f1c63e 100644 --- a/trytond/ir/translation.xml +++ b/trytond/ir/translation.xml @@ -68,6 +68,31 @@ + + None + en_US + error + You are not allowed to delete this record. + ir + + + + None + en_US + error + This record is part of the base configuration. + ir + + + + None + en_US + error + You are not allowed to modify this record. + ir + + + ir.translation.update_report.init form diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index 5637754b58..115fc60b18 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -519,10 +519,7 @@ class ORM(object): self._constraints = [] self._inherit_fields = [] self._order = [('id', 'ASC')] - self._error_messages = { - 'delete_xml_record': 'You are not allowed to delete this record.', - 'xml_record_desc': "This record is part of the base configuration.", - 'write_xml_record': 'You are not allowed to modify this record.'} + self._error_messages = {} # reinit the cache on _columns and _defaults self.__columns = None self.__defaults = None