Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-review_all_search-point_of_sale-mdi
into lp:~openerp-dev/openobject-addons/trunk-review_all_search.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-review_all_search-point_of_sale-mdi/+merge/110951
Hello Sir,
Improved all search view according to the new search widget in the web client,
following this rules:
1. Only one char field per search view, and it is in first position (this field
makes a multiple search on several fields with filter_domain).
2. Date field in the second position.
3 . Group all the filters (move the filters like 'my leads' with the others),
and placed it just after the search on dates.
4. Search on m2o fields are placed in 4th position, then comes the 'Group By'.
5. Placed the filters that do not filter but only show/hide columns in a group,
called 'Display', which is placed after the group 'Group By'.
Thanks,
Divyesh
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-review_all_search-point_of_sale-mdi/+merge/110951
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/trunk-review_all_search-point_of_sale-mdi
into lp:~openerp-dev/openobject-addons/trunk-review_all_search.
=== modified file 'point_of_sale/account_statement_view.xml'
--- point_of_sale/account_statement_view.xml 2012-05-04 11:57:48 +0000
+++ point_of_sale/account_statement_view.xml 2012-06-19 05:34:35 +0000
@@ -27,10 +27,11 @@
<field name="arch" type="xml">
<search string="Search Cash Statements">
<group>
+ <field name="name" filter_domain="[('name','ilike',self)]" string="Cash Statement"/>
+ <field name="date"/>
+ <separator orientation="vertical"/>
<filter string="Open" domain="[('state','=','open')]" icon="terp-document-new" name="open"/>
<separator orientation="vertical"/>
- <field name="date"/>
- <field name="name"/>
<field name="journal_id"/>
</group>
<newline/>
@@ -52,11 +53,12 @@
<field name="arch" type="xml">
<search string="Search Cash Statements">
<group>
+ <field name="name" filter_domain="[('name','ilike',self)]" string="Cash Statement"/>
+ <field name="date"/>
+ <separator orientation="vertical"/>
<filter string="Open" domain="[('state','=','open')]" icon="terp-document-new" name="open"/>
<filter string="Closed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
<separator orientation="vertical"/>
- <field name="date"/>
- <field name="name"/>
<field name="journal_id"/>
</group>
<newline/>
=== modified file 'point_of_sale/point_of_sale_view.xml'
--- point_of_sale/point_of_sale_view.xml 2012-06-19 05:01:00 +0000
+++ point_of_sale/point_of_sale_view.xml 2012-06-19 05:34:35 +0000
@@ -138,15 +138,16 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Sales Order">
+ <field name="name" filter_domain="[('name','ilike',self)]" string="Sales Order"/>
+ <field name="date_order"/>
+ <separator orientation="vertical"/>
<filter icon="terp-document-new" string="New" domain="[('state','=','draft')]"/>
<filter icon="gtk-apply" string="Done" domain="[('state','in',('paid','invoiced','done'))]"/>
<separator orientation="vertical"/>
<filter icon="terp-check" string="Invoiced" domain="[('state','=','invoiced')]"/>
<filter icon="gtk-convert" string="Posted" domain="[('state','=','done')]"/>
<separator orientation="vertical"/>
- <field name="name"/>
<field name="user_id"/>
- <field name="date_order"/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
=== modified file 'point_of_sale/report/pos_order_report_view.xml'
--- point_of_sale/report/pos_order_report_view.xml 2012-05-28 06:42:41 +0000
+++ point_of_sale/report/pos_order_report_view.xml 2012-06-19 05:34:35 +0000
@@ -35,21 +35,21 @@
<field name="arch" type="xml">
<search string="Point of Sale Analysis">
<group>
+ <field name="date"/>
+ <separator orientation="vertical"/>
<filter icon="terp-dolar"
string="Invoiced"
domain="[('state','=',('invoiced'))]"/>
<filter icon="terp-dolar"
string="Not Invoiced"
domain="[('state','=',('paid'))]"/>
- <separator orientation="vertical"/>
- <field name="partner_id"/>
- <field name="user_id" widget="selection">
<filter icon="terp-personal"
string="My Sales"
help="My Sales"
domain="[('user_id','=',uid)]"/>
- </field>
- <field name="date"/>
+ <separator orientation="vertical"/>
+ <field name="partner_id"/>
+ <field name="user_id" widget="selection"/>
</group>
<newline/>
<group expand="1" string="Group By...">
=== modified file 'point_of_sale/report/report_cash_register_view.xml'
--- point_of_sale/report/report_cash_register_view.xml 2012-05-28 07:19:18 +0000
+++ point_of_sale/report/report_cash_register_view.xml 2012-06-19 05:34:35 +0000
@@ -21,40 +21,40 @@
</record>
<record id="view_report_cash_register_search" model="ir.ui.view">
- <field name="name">report.cash.register.search</field>
- <field name="model">report.cash.register</field>
- <field name="type">search</field>
- <field name="arch" type="xml">
- <search string="Point of Sale Cash Register Analysis">
- <group>
- <filter icon="terp-document-new"
- string="Draft"
- domain="[('state','=',('draft'))]"/>
- <filter icon="terp-camera_test"
- string="Confirm"
- domain="[('state','=',('confirm'))]"/>
+ <field name="name">report.cash.register.search</field>
+ <field name="model">report.cash.register</field>
+ <field name="type">search</field>
+ <field name="arch" type="xml">
+ <search string="Point of Sale Cash Register Analysis">
+ <group>
+ <field name="date"/>
<separator orientation="vertical"/>
- <field name="user_id" widget="selection">
+ <filter icon="terp-document-new"
+ string="Draft"
+ domain="[('state','=',('draft'))]"/>
+ <filter icon="terp-camera_test"
+ string="Confirm"
+ domain="[('state','=',('confirm'))]"/>
<filter icon="terp-personal"
string="My Sales"
help="My Sales"
domain="[('user_id','=',uid)]"/>
- </field>
- <field name="date"/>
+ <separator orientation="vertical"/>
+ <field name="user_id" widget="selection"/>
</group>
<newline/>
- <group expand="1" string="Group By...">
- <filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
- <filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
+ <group expand="1" string="Group By...">
+ <filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
+ <filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
<separator orientation="vertical"/>
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
- <separator orientation="vertical"/>
+ <separator orientation="vertical"/>
<filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Day from Creation date of cash register"/>
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Month from Creation date of cash register"/>
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Year from Creation date of cash register"/>
- </group>
- </search>
- </field>
+ </group>
+ </search>
+ </field>
</record>
<record id="action_report_cash_register_all" model="ir.actions.act_window">
_______________________________________________
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