Add ir.message and use custom exceptions
issue3672
This commit is contained in:
1 parent
e7b20f3920
commit
5fc14d8a78
5 files changed
+44
-43
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data group="1">
|
||||
<record model="ir.message" id="msg_invalid_distribution">
|
||||
<field name="text">To save account "%(account)s" the sum of their distributions must be 100%%.</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_missing_root_account">
|
||||
<field name="text">To save "%(name)s" you must set a value for analytics "%(analytics)s".</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_root_origin_unique">
|
||||
<field name="text">Only one account is allowed by analytic root and origin.</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
Reference in new issue
Block a user