[IMP]project_issue : xpath and views are modified by board style and column
bzr revid: ssu@ssu-desktop-20111116053149-gs8cg96p3x9bjiyp
This commit is contained in:
@@ -56,14 +56,14 @@ class board_board(osv.osv):
|
||||
#End Loop
|
||||
arch = """<?xml version="1.0"?>
|
||||
<form string="My Board">
|
||||
<hpaned>
|
||||
<child1>
|
||||
<board style="1-1">
|
||||
<column>
|
||||
%s
|
||||
</child1>
|
||||
<child2>
|
||||
</column>
|
||||
<column>
|
||||
%s
|
||||
</child2>
|
||||
</hpaned>
|
||||
</column>
|
||||
</board>
|
||||
</form>""" % ('\n'.join(left), '\n'.join(right))
|
||||
|
||||
return arch
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="My Board">
|
||||
<board style="1-2">
|
||||
<board style="2-1">
|
||||
<column>
|
||||
</column>
|
||||
<column>
|
||||
@@ -38,7 +38,7 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="HR Manager Board">
|
||||
<board style="1-2">
|
||||
<board style="2-1">
|
||||
<column>
|
||||
</column>
|
||||
<column>
|
||||
|
||||
@@ -57,22 +57,16 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="My Board">
|
||||
<hpaned>
|
||||
<child1>
|
||||
<action colspan="4" name="%(action_view_current_project_issue_tree)d" string="Current Issues" width="510"/>
|
||||
<action colspan="4" name="%(action_view_pending_project_issue_tree)d" string="Pending Issues" width="510"/>
|
||||
</child1>
|
||||
<child2>
|
||||
<vpaned>
|
||||
<child1>
|
||||
<action colspan="4" name="%(action_project_issue_graph_state)d" string="Issues By State" />
|
||||
</child1>
|
||||
<child2>
|
||||
<action colspan="4" name="%(action_project_issue_graph_stage)d" string="Issues By Stage" />
|
||||
</child2>
|
||||
</vpaned>
|
||||
</child2>
|
||||
</hpaned>
|
||||
<board style="1-1">
|
||||
<column>
|
||||
<action name="%(action_view_current_project_issue_tree)d" string="Current Issues"/>
|
||||
<action name="%(action_view_pending_project_issue_tree)d" string="Pending Issues"/>
|
||||
</column>
|
||||
<column>
|
||||
<action name="%(action_project_issue_graph_state)d" string="Issues By State" />
|
||||
<action name="%(action_project_issue_graph_stage)d" string="Issues By Stage" />
|
||||
</column>
|
||||
</board>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
@@ -151,11 +145,11 @@
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="project.board_project_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/form/hpaned/child1/action[@string='My Delegated Tasks']" position="after">
|
||||
<action colspan="4" height="100" name="%(action_view_my_project_issue_tree)d" string="My Issues" />
|
||||
<xpath expr="/form/board/column/action[@string='My Delegated Tasks']" position="after">
|
||||
<action name="%(action_view_my_project_issue_tree)d" string="My Issues"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/hpaned/child2/action[@string='My Remaining Hours by Project']" position="after">
|
||||
<action colspan="4" height="100" name="%(action_view_my_open_project_issue_tree)d" string="My Open Issues by Creation Date" />
|
||||
<xpath expr="/form/board/column/action[@string='My Remaining Hours by Project']" position="after">
|
||||
<action name="%(action_view_my_open_project_issue_tree)d" string="My Open Issues by Creation Date"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user