Khushboo Bhatt(openerp) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-polish2_analysis_view_lunch-kbh into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-polish2_analysis_view_lunch-kbh/+merge/82246
==== summury ===
== lunch Analysis Report ===
*changes in lunch_view.xml
- putting separator between year and month button in search view.
- make year,month button Default_search_year:1,Default_search_month:1 in this
file.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-polish2_analysis_view_lunch-kbh/+merge/82246
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-polish2_analysis_view_lunch-kbh.
=== modified file 'lunch/lunch_view.xml'
--- lunch/lunch_view.xml 2011-10-16 01:28:00 +0000
+++ lunch/lunch_view.xml 2011-11-15 06:31:24 +0000
@@ -371,9 +371,11 @@
<field name="arch" type="xml">
<search string="Box Amount by User">
<group>
- <filter icon="terp-go-year" string=" Year "
+ <filter icon="terp-go-year" string=" Year " name="year"
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]"
help="Box amount in current year"/>
+ <separator orientation="vertical"/>
+
<filter icon="terp-go-month" string=" Month "
name="month"
domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
@@ -402,6 +404,7 @@
<field name="res_model">report.lunch.amount</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
+ <field name="context">{'search_default_year': 1,"search_default_month":1}</field>
<field name="search_view_id" ref="view_report_lunch_amount_search"/>
</record>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp