Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
982177b2 by Cédric Krier at 2023-01-21T23:52:55+01:00
Rewrite read/write error messages to be independent on time

id may not exist not only because it was deleted. They may never exist or the
action happen in the past.

Closes #3825
- - - - -


1 changed file:

- trytond/trytond/ir/message.xml


Changes:

=====================================
trytond/trytond/ir/message.xml
=====================================
@@ -208,10 +208,10 @@
 %(rules)s</field>
         </record>
         <record model="ir.message" id="msg_read_error">
-            <field name="text">You are trying to read records "%(ids)s" of 
"%(model)s" that don't exist anymore.</field>
+            <field name="text">You are trying to read records "%(ids)s" of 
"%(model)s" that don't exist.</field>
         </record>
         <record model="ir.message" id="msg_write_rule_error">
             <field name="text">You are not allowed to write to records 
"%(ids)s" of "%(model)s" because of at least one of these rules:
 %(rules)s</field>
         </record>
         <record model="ir.message" id="msg_write_error">
@@ -212,10 +212,10 @@
         </record>
         <record model="ir.message" id="msg_write_rule_error">
             <field name="text">You are not allowed to write to records 
"%(ids)s" of "%(model)s" because of at least one of these rules:
 %(rules)s</field>
         </record>
         <record model="ir.message" id="msg_write_error">
-            <field name="text">You are trying to write to records "%(ids)s" of 
"%(model)s" that don't exist anymore.</field>
+            <field name="text">You are trying to write to records "%(ids)s" of 
"%(model)s" that don't exist.</field>
         </record>
         <record model="ir.message" id="msg_delete_rule_error">
             <field name="text">You are not allowed to delete records "%(ids)s" 
of "%(model)s" because of at lease one of those rules:



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/982177b2161fd4d846702fe9c4d79b5926f23b54

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/982177b2161fd4d846702fe9c4d79b5926f23b54
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to