Commits

Raimon Esteve (Zikzakmedia)  committed 4166d98

Use separate XML files for views

  • Participants
  • Parent commits 9fc3423

Comments (0)

Files changed (4)

 include LICENSE
 include tryton.cfg
 include *.xml
+include view/*.xml
 include locale/*.po
 include doc/*
     ],
     package_data={
         'trytond.modules.electronic_mail_event': info.get('xml', []) \
-            + ['tryton.cfg', 'locale/*.po'],
+            + ['tryton.cfg', 'view/*.xml', 'locale/*.po'],
     },
     classifiers=[
         'Development Status :: 5 - Production/Stable',

File template.xml

         <record model="ir.ui.view" id="template_view_form">
             <field name="model">electronic.mail.template</field>
             <field name="inherit" ref="electronic_mail_template.template_view_form"/>
-            <field name="arch" type="xml">
-                <![CDATA[
-                <data>
-                    <xpath
-                        expr="/form/notebook/page[@id='general']/group[@id='addresses']/field[@name='bcc']"
-                        position="after">
-                            <label name="party"/>
-                            <field name="party"/>
-                    </xpath>
-                </data>
-                ]]>
-            </field>
+            <field name="name">electronic_mail_template_form</field>
         </record>
   </data>
 </tryton>

File view/electronic_mail_template_form.xml

+<?xml version="1.0"?>
+<!-- This file is part electronic_mail_event module for Tryton.
+The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
+<data>
+    <xpath
+        expr="/form/notebook/page[@id='general']/group[@id='addresses']/field[@name='bcc']"
+        position="after">
+            <label name="party"/>
+            <field name="party"/>
+    </xpath>
+</data>