Merge lp:~yann-papouin/ocb-addons/6.1-bug-1179398-salereport-year-domain into lp:ocb-addons/6.1

Proposed by Yann Papouin
Status: Merged
Merged at revision: 6788
Proposed branch: lp:~yann-papouin/ocb-addons/6.1-bug-1179398-salereport-year-domain
Merge into: lp:ocb-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
sale/report/sale_report_view.xml (+1/-1)
To merge this branch: bzr merge lp:~yann-papouin/ocb-addons/6.1-bug-1179398-salereport-year-domain
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Christophe CHAUVET code review, not test Approve
Review via email: mp+184757@code.launchpad.net

Description of the change

Automatically derived from https://code.launchpad.net/~yann-papouin/openobject-addons/6.1-bug-1179398-salereport-year-domain for https://code.launchpad.net/~openerp/openobject-addons/6.1. Below is a copy of the original description.

Replace the today static date by a year static date

To post a comment you must log in.
Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi

It seem correct for me, if an user want to filter the date, it can do this with a custom filter

Regards,

review: Approve (code review, not test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/report/sale_report_view.xml'
2--- sale/report/sale_report_view.xml 2011-12-19 16:54:40 +0000
3+++ sale/report/sale_report_view.xml 2013-09-10 11:52:47 +0000
4@@ -52,7 +52,7 @@
5 <search string="Sales Analysis">
6 <group>
7 <filter icon="terp-go-year" string="Year" name="year"
8- domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]"
9+ domain="[('date','&lt;=', time.strftime('%%Y-12-31')),('date','&gt;=',time.strftime('%%Y-01-01'))]"
10 help="Sales order created in current year"/>
11 <separator orientation="vertical"/>
12 <filter icon="terp-go-month" string="Month"

Subscribers

People subscribed via source and target branches