changeset 43de1cb5041f in modules/account_dunning:default
details: 
https://hg.tryton.org/modules/account_dunning?cmd=changeset;node=43de1cb5041f
description:
        Add ir.message and use custom exceptions

        issue3672
diffstat:

 dunning.py  |   2 +-
 message.xml |  10 ++++++++++
 tryton.cfg  |   1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 3a3d57ee2190 -r 43de1cb5041f dunning.py
--- a/dunning.py        Mon Nov 12 17:20:07 2018 +0100
+++ b/dunning.py        Sat Dec 29 14:20:28 2018 +0100
@@ -130,7 +130,7 @@
         table = cls.__table__()
         cls._sql_constraints = [
             ('line_unique', Unique(table, table.line),
-                'Line can be used only once on dunning.'),
+                'account_dunning.msg_dunning_line_unique'),
             ]
         cls._active_field = 'active'
 
diff -r 3a3d57ee2190 -r 43de1cb5041f message.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/message.xml       Sat Dec 29 14:20:28 2018 +0100
@@ -0,0 +1,10 @@
+<?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_dunning_line_unique">
+            <field name="text">Line can be used only once on dunning.</field>
+        </record>
+    </data>
+</tryton>
diff -r 3a3d57ee2190 -r 43de1cb5041f tryton.cfg
--- a/tryton.cfg        Mon Nov 12 17:20:07 2018 +0100
+++ b/tryton.cfg        Sat Dec 29 14:20:28 2018 +0100
@@ -10,3 +10,4 @@
     dunning.xml
     party.xml
     account.xml
+    message.xml

Reply via email to