Merge lp:~openerp-dev/openobject-addons/trunk-oerp-migration-project_pad_button-fka into lp:openobject-addons

Proposed by Foram Katharotiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-oerp-migration-project_pad_button-fka
Merge into: lp:openobject-addons
Diff against target: 36 lines (+19/-0)
2 files modified
pad_project/project_task.py (+8/-0)
pad_project/project_task.xml (+11/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-oerp-migration-project_pad_button-fka
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+140827@code.launchpad.net

Description of the change

Hello,

 - add pad button on task kanban view.

Thanks,
FKA

To post a comment you must log in.
8410. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

8411. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

Unmerged revisions

8411. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

8410. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

8409. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

8408. By Foram Katharotiya (OpenERP)

[IMP] add pad button in task kanban

8407. By Foram Katharotiya (OpenERP)

[MERGE] with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pad_project/project_task.py'
2--- pad_project/project_task.py 2012-12-06 14:56:32 +0000
3+++ pad_project/project_task.py 2012-12-26 04:56:22 +0000
4@@ -8,3 +8,11 @@
5 _columns = {
6 'description_pad': fields.char('Description PAD', pad_content_field='description')
7 }
8+ def pad_get(self, cr, uid, ids, context=None):
9+ """Get pad action
10+ """
11+ pad = self.pool.get("pad.common").pad_generate_url(cr, uid, context)
12+ return {
13+ 'type': 'ir.actions.act_url',
14+ 'url': pad['url']
15+ }
16
17=== modified file 'pad_project/project_task.xml'
18--- pad_project/project_task.xml 2012-11-29 22:26:45 +0000
19+++ pad_project/project_task.xml 2012-12-26 04:56:22 +0000
20@@ -10,5 +10,16 @@
21 </field>
22 </field>
23 </record>
24+ <record id="view_task_kanban_with_pad" model="ir.ui.view">
25+ <field name="name">project.task.kanban.pad</field>
26+ <field name="model">project.task</field>
27+ <field name="type">kanban</field>
28+ <field name="inherit_id" ref="project.view_task_kanban"/>
29+ <field name="arch" type="xml">
30+ <span groups="project.group_time_work_estimation_tasks" position="after">
31+ <a name="pad_get" string="Pad" type="object" class="oe_kanban_button" style="margin-left: 5px;"><b>PAD</b></a>
32+ </span>
33+ </field>
34+ </record>
35 </data>
36 </openerp>

Subscribers

People subscribed via source and target branches

to all changes: