1
<?xml version="1.0" encoding="utf-8"?>
4
<!-- Redeclaration of the wizards defined in email_template -->
5
<record model="ir.ui.view" id="email_template_send_wizard_form_facturae">
6
<field name="name">email_template.send.wizard.form.facturae</field>
7
<field name="model">email_template.send.wizard.facturae</field>
8
<field name="type">form</field>
9
<field name="arch" type="xml">
10
<form string="Send mail Wizard">
11
<group col="4" colspan="4">
12
<field name="rel_model" colspan="2" />
13
<field name="from" required="1" colspan="2" />
15
<group col="4" colspan="4">
16
<group col="6" colspan="4">
17
<field name="to" select="1" colspan="4" />
19
<field name="cc" select="2" colspan="4" />
21
<field name="bcc" select="2" colspan="4" />
23
<field name="subject" select="2" colspan="4" attrs="{'required':[('state','=','single')]}" />
25
<field name="report" colspan="4" />
27
<separator string="" colspan="4" />
28
<notebook colspan="4">
29
<page string="Body (Plain Text)">
30
<field name="body_text" select="2" colspan="4" nolabel="1" />
32
<page string="Body (HTML)">
33
<field name="body_html" select="2" colspan="4" nolabel="1" />
35
<page string="Attachments">
36
<label string="Add here all attachments of the current document you want to include in the Email." colspan="4"/>
37
<field name="attachment_ids" colspan="4" nolabel="1"/>
40
<field name="signature" colspan="4" />
42
<group col="4" colspan="4" attrs="{'invisible':[('state','!=','single')]}">
43
<button icon="gtk-apply" name="sav_to_drafts" string="Save in Drafts" type="object" />
44
<button icon="gtk-ok" name="send_mail" string="Send now" type="object" />
45
<button icon="gtk-cancel" special="cancel" string="Discard Mail" />
47
<group col="4" colspan="4" attrs="{'invisible':[('state','=','single')]}">
48
<label string="Tip: Multiple emails are sent in the same language (the first one is proposed). We suggest you send emails in groups according to language." colspan="4"/>
49
<field name="requested" />
50
<field name="generated" />
51
<button icon="gtk-ok" name="get_generated" string="Send all mails" type="object" states="multi" colspan="2" />
52
<button icon="gtk-cancel" special="cancel" string="Discard Mail" colspan="2" states="multi" />
54
<button icon="gtk-ok" special="cancel" string="Close" colspan="4" states="done" />
55
<field name="state" />
57
<label string="After clicking send all mails, mails will be sent to outbox and cleared in next Send/Recieve" colspan="4"/>
62
<record model="ir.actions.act_window" id="action_email_template_send_wizard_form_facturae">
63
<field name="name">Factura Electronica Email</field>
64
<field name="res_model">email_template.send.wizard.facturae</field>
65
<field name="src_model">account.invoice</field>
66
<field name="view_type">form</field>
67
<field name="view_mode">form,tree</field>
68
<field name="target">new</field>
69
<field name="view_id" ref="email_template_send_wizard_form_facturae" />
70
<field name="type">ir.actions.act_window</field>
71
<field name="auto_refresh" eval="1" />
72
<field name="context">{'src_model':'account.invoice','template':'FacturaE','src_rec_id':active_id,'src_rec_ids':active_ids}</field>
74
<!--<field name="context">{'src_model':'account.invoice','template':'FacturaE','src_rec_id':active_id,'src_rec_ids':active_ids}</field>-->
75
<!--<field name="context">{'src_model':'account.invoice','template_id':'1','src_rec_id':active_id,'src_rec_ids':active_ids}</field>-->
76
<!--<field name="context">{'src_model': src_obj,'template_id':template_obj.id,'src_rec_id':active_id,'src_rec_ids':active_ids}</field>-->
77
<!-- <field name="context">"{'src_model':'%s','template_id':'%d','src_rec_id':active_id,'src_rec_ids':active_ids}" % (src_obj, template_obj.id)</field> -->
79
<record model="ir.values" id="email_template_send_wizard_form_facturae_values">
80
<field name="model_id" ref="account.model_account_invoice" />
81
<field name="object" eval="1" />
82
<field name="name">Factura Electronica Email</field>
83
<field name="key2">client_action_multi</field>
84
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_email_template_send_wizard_form_facturae'))" />
85
<field name="key">action</field>
86
<field name="model">account.invoice</field>