Skip to content

Commit afd3ab2

Browse files
authored
Merge pull request #55 from gisce/71112_imp_poweremail_view
Move the buttons and the fields that enables the created emails link wizard to a new tab
2 parents 78aa627 + fa90b7e commit afd3ab2

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
from oopgrade.oopgrade import load_data_records
3+
from tools import config
4+
5+
6+
def up(cursor, installed_version):
7+
if not installed_version:
8+
return
9+
10+
load_data_records(
11+
cursor,
12+
'poweremail_references',
13+
'poweremail_template_view.xml',
14+
['poweremail_template_access_form'],
15+
mode='update'
16+
)
17+
18+
19+
def down(cursor, installed_version):
20+
pass
21+
22+
23+
migrate = up
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<openerp>
3-
<data>
4-
<record model="ir.ui.view" id="poweremail_template_access_form">
3+
<data>
4+
<record model="ir.ui.view" id="poweremail_template_access_form">
55
<field name="name">poweremail.templates.access.form</field>
66
<field name="model">poweremail.templates</field>
77
<field name="type">form</field>
88
<field name="inherit_id" ref="poweremail.poweremail_template_form"/>
99
<field name="arch" type="xml">
10-
<field name="ref_ir_value" position="after">
11-
<field name="ref_ir_value_access" colspan="2"/>
12-
<button name="create_access_reference" colspan="1" string="Create Direct Access" type="object"/>
13-
<field name="ref_ir_act_window_access" colspan="2"/>
14-
</field>
10+
<page string="Wizard send email" position="after">
11+
<page string="Template emails">
12+
<field name="ref_ir_value_access" colspan="4"/>
13+
<field name="ref_ir_act_window_access" colspan="4"/>
14+
<group>
15+
<label string="" colspan="3"/>
16+
<button name="create_access_reference" colspan="1" string="Create template emails link" type="object" icon="plus" primary="1"/>
17+
</group>
18+
</page>
19+
</page>
1520
</field>
16-
</record>
17-
</data>
21+
</record>
22+
</data>
1823
</openerp>

0 commit comments

Comments
 (0)