File tree Expand file tree Collapse file tree 2 files changed +37
-9
lines changed
Expand file tree Collapse file tree 2 files changed +37
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments