Store the SQL constraint message directly in the field `message` of the corresponding `ir.model.constraint` record, and manage translations from there. Those records are given an XML id in order to be tracked in PO files. The translation type 'sql_constraint` is removed.
11 lines
435 B
XML
11 lines
435 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_tests" name="Test New Api Assets Tests" inherit_id="web.assets_tests">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/test_new_api/static/tests/tours/constraint.js"></script>
|
|
<script type="text/javascript" src="/test_new_api/static/tests/tours/x2many.js"></script>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|