mirror of
https://github.com/NaN-tic/trytond-electronic_mail_wizard-old.git
synced 2023-12-13 21:30:11 +01:00
Use separate XML files for views
This commit is contained in:
parent
98a5235fef
commit
520011cfa1
6 changed files with 37 additions and 36 deletions
|
@ -6,5 +6,6 @@ include COPYRIGHT
|
|||
include LICENSE
|
||||
include tryton.cfg
|
||||
include *.xml
|
||||
include view/*.xml
|
||||
include locale/*.po
|
||||
include doc/*
|
||||
|
|
|
@ -6,29 +6,7 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
|
|||
<record model="ir.ui.view" id="templateemail_start">
|
||||
<field name="model">electronic.mail.wizard.templateemail.start</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<form string="Send Email" col="2">
|
||||
<label name="from_"/>
|
||||
<field name="from_"/>
|
||||
<label name="to"/>
|
||||
<field name="to"/>
|
||||
<label name="cc"/>
|
||||
<field name="cc"/>
|
||||
<label name="bcc"/>
|
||||
<field name="bcc"/>
|
||||
<label name="subject"/>
|
||||
<field name="subject"/>
|
||||
<label name="plain"/>
|
||||
<field name="plain"/>
|
||||
<separator name="total" colspan="2"/>
|
||||
<field name="total" colspan="2"/>
|
||||
<newline/>
|
||||
<field name="template" invisible="1"/>
|
||||
<field name="model" invisible="1"/>
|
||||
</form>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">electronic_mail_wizard_templateemail</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
2
setup.py
2
setup.py
|
@ -40,7 +40,7 @@ setup(name='trytonzz_electronic_mail_wizard',
|
|||
],
|
||||
package_data={
|
||||
'trytond.modules.electronic_mail_wizard': info.get('xml', []) \
|
||||
+ ['tryton.cfg', 'locale/*.po'],
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po'],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
|
13
template.xml
13
template.xml
|
@ -6,18 +6,7 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
|
|||
<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='advanced']/field[@name='engine']"
|
||||
position="after">
|
||||
<label name="wizard"/>
|
||||
<field name="wizard"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">electronic_mail_template_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
11
view/electronic_mail_template_form.xml
Normal file
11
view/electronic_mail_template_form.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part electronic_mail_template 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='advanced']/field[@name='engine']"
|
||||
position="after">
|
||||
<label name="wizard"/>
|
||||
<field name="wizard"/>
|
||||
</xpath>
|
||||
</data>
|
22
view/electronic_mail_wizard_templateemail.xml
Normal file
22
view/electronic_mail_wizard_templateemail.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part electronic_mail_template module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<form string="Send Email" col="2">
|
||||
<label name="from_"/>
|
||||
<field name="from_"/>
|
||||
<label name="to"/>
|
||||
<field name="to"/>
|
||||
<label name="cc"/>
|
||||
<field name="cc"/>
|
||||
<label name="bcc"/>
|
||||
<field name="bcc"/>
|
||||
<label name="subject"/>
|
||||
<field name="subject"/>
|
||||
<label name="plain"/>
|
||||
<field name="plain"/>
|
||||
<separator name="total" colspan="2"/>
|
||||
<field name="total" colspan="2"/>
|
||||
<newline/>
|
||||
<field name="template" invisible="1"/>
|
||||
<field name="model" invisible="1"/>
|
||||
</form>
|
Loading…
Reference in a new issue