Merge lp:~unifield-team/unifield-web/remove-progressbar into lp:unifield-web

Proposed by Quentin THEURET @Amaris
Status: Merged
Merged at revision: 4633
Proposed branch: lp:~unifield-team/unifield-web/remove-progressbar
Merge into: lp:unifield-web
Diff against target: 25 lines (+5/-0)
2 files modified
addons/openerp/widgets/listgrid.py (+3/-0)
addons/openerp/widgets/templates/listgrid/progressbar.mako (+2/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/remove-progressbar
Reviewer Review Type Date Requested Status
jftempo Pending
Review via email: mp+85347@code.launchpad.net
To post a comment you must log in.
4586. By Quentin THEURET @Amaris

Change the keyword in condition to remove the progressbar

4587. By Quentin THEURET @Amaris

[MERGE] Merge lp:unifield-web

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/widgets/listgrid.py'
2--- addons/openerp/widgets/listgrid.py 2012-02-20 09:55:45 +0000
3+++ addons/openerp/widgets/listgrid.py 2012-03-06 08:57:20 +0000
4@@ -630,6 +630,9 @@
5 if not self.value:
6 return 0.0
7
8+ if self.value == "no-progressbar":
9+ return "no-progressbar"
10+
11 if isinstance(self.value, float):
12 self.value = '%.2f' % (self.value)
13 self.value = float(self.value)
14
15=== modified file 'addons/openerp/widgets/templates/listgrid/progressbar.mako'
16--- addons/openerp/widgets/templates/listgrid/progressbar.mako 2010-12-02 13:30:21 +0000
17+++ addons/openerp/widgets/templates/listgrid/progressbar.mako 2012-03-06 08:57:20 +0000
18@@ -1,4 +1,6 @@
19+% if text != "no-progressbar":
20 <div style="position: relative; border: 1px solid gray; font-size: 11px;">&nbsp;
21 <div style="position: absolute; top:0; left: 0; background: #afafaf; width: ${range}%; height: 100%;"></div>
22 <div style="position: absolute; top:0; left: 0; width: 100%; height: 100%; text-align: center">${text}%</div>
23 </div>
24+% endif
25\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: