Merge lp:~openerp-dev/openobject-addons/trunk-bug-1188300-psa into lp:openobject-addons

Proposed by Paramjit Singh Sahota(OpenERP) on 2013-06-11
Status: Rejected
Rejected by: Olivier Dony (Odoo) on 2013-06-12
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1188300-psa
Merge into: lp:openobject-addons
Diff against target: 352 lines (+29/-29)
23 files modified
account/account_invoice_view.xml (+1/-1)
account/project/project_view.xml (+1/-1)
account_analytic_analysis/account_analytic_analysis_view.xml (+1/-1)
account_asset/account_asset_view.xml (+1/-1)
account_asset/report/account_asset_report_view.xml (+1/-1)
account_voucher/account_voucher_view.xml (+1/-1)
account_voucher/voucher_payment_receipt_view.xml (+2/-2)
account_voucher/voucher_sales_purchase_view.xml (+2/-2)
crm/crm_lead_view.xml (+2/-2)
crm/crm_phonecall_view.xml (+1/-1)
crm/report/crm_lead_report_view.xml (+1/-1)
crm/report/crm_phonecall_report_view.xml (+1/-1)
crm_claim/crm_claim_view.xml (+1/-1)
crm_claim/report/crm_claim_report_view.xml (+1/-1)
crm_helpdesk/crm_helpdesk_view.xml (+1/-1)
crm_helpdesk/report/crm_helpdesk_report_view.xml (+1/-1)
mrp_repair/mrp_repair_view.xml (+1/-1)
project/project_view.xml (+1/-1)
project/report/project_report_view.xml (+1/-1)
project_issue/project_issue_view.xml (+1/-1)
project_issue/report/project_issue_report_view.xml (+1/-1)
stock/report/report_stock_move_view.xml (+1/-1)
stock/stock_view.xml (+4/-4)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1188300-psa
Reviewer Review Type Date Requested Status
Olivier Dony (Odoo) Disapprove on 2013-06-12
Purnendu Singh (OpenERP) (community) 2013-06-11 Approve on 2013-06-11
Review via email: mp+168634@code.launchpad.net

Description of the change

Hello,

Fixed the generic issue of all modules where filter_domain is passed on partner_id, there the result is displayed when the company is their and in case of contacts the filter_domain was not working.
So, improved the filter_domain to make it available for contacts also.

Thankz YoU.
 -PSA.

To post a comment you must log in.

Seems ok to me

Regards,
Purnendu Singh

review: Approve
Olivier Dony (Odoo) (odo-openerp) wrote :

This patches fixes the wrong place. The domain that is used currently is supposed to match contacts properly, because it finds the partner using name_search(), and name_search() is supposed to support contacts properly.
So there is no need to update all search views, we need to fix the root cause of the problem: name_search() does not work for complete contact names.
The reason is that name_get() of res.partner was adapted in 7.0 to use the new format "Company, Contact" instead of "Contact (Company)", and the name_search() method was not properly adapted to follow this change.

This needs to be fixed in res.partner directly: lp:~openerp-dev/openobject-server/7.0-bug-1188300-odo

review: Disapprove

Unmerged revisions

8758. By Paramjit Singh Sahota(OpenERP) on 2013-06-11

[IMP] Missed 2 occurance for placing filter_domain, so done that.

8757. By Paramjit Singh Sahota(OpenERP) on 2013-06-11

[FIX] Fixed the generic issue of all modules where filter_domain is passed on partner_id, there the result is displayed when the company is their and in case of contacts the filter_domain was not working.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice_view.xml'
2--- account/account_invoice_view.xml 2013-06-04 11:00:41 +0000
3+++ account/account_invoice_view.xml 2013-06-11 10:12:22 +0000
4@@ -455,7 +455,7 @@
5 <filter name="invoices" string="Invoices" domain="[('state','not in',['draft','cancel'])]" help="Proforma/Open/Paid Invoices"/>
6 <filter name="unpaid" string="Unpaid" domain="[('state','=','open')]" help="Unpaid Invoices"/>
7 <separator/>
8- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
9+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
10 <field name="user_id" string="Salesperson"/>
11 <field name="period_id" string="Period"/>
12 <separator/>
13
14=== modified file 'account/project/project_view.xml'
15--- account/project/project_view.xml 2013-06-03 12:18:52 +0000
16+++ account/project/project_view.xml 2013-06-11 10:12:22 +0000
17@@ -31,7 +31,7 @@
18 <search string="Analytic Account">
19 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Analytic Account"/>
20 <field name="date"/>
21- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
22+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
23 <field name="manager_id"/>
24 <field name="parent_id"/>
25 <field name="user_id"/>
26
27=== modified file 'account_analytic_analysis/account_analytic_analysis_view.xml'
28--- account_analytic_analysis/account_analytic_analysis_view.xml 2013-04-29 15:14:10 +0000
29+++ account_analytic_analysis/account_analytic_analysis_view.xml 2013-06-11 10:12:22 +0000
30@@ -213,7 +213,7 @@
31 <search string="Contracts">
32 <field name="name" filter_domain="['|', ('name','ilike',self),('code','ilike',self)]" string="Contract"/>
33 <field name="date"/>
34- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
35+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
36 <field name="manager_id"/>
37 <field name="parent_id"/>
38 <filter name="open" string="In Progress" domain="[('state','in',('open','draft'))]" help="Contracts in progress (open, draft)"/>
39
40=== modified file 'account_asset/account_asset_view.xml'
41--- account_asset/account_asset_view.xml 2013-04-20 02:26:42 +0000
42+++ account_asset/account_asset_view.xml 2013-06-11 10:12:22 +0000
43@@ -223,7 +223,7 @@
44 <filter icon="terp-check" string="Current" domain="[('state','in', ('draft','open'))]" help="Assets in draft and open states"/>
45 <filter icon="terp-dialog-close" string="Closed" domain="[('state','=', 'close')]" help="Assets in closed state"/>
46 <field name="category_id"/>
47- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
48+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
49 </search>
50 </field>
51 </record>
52
53=== modified file 'account_asset/report/account_asset_report_view.xml'
54--- account_asset/report/account_asset_report_view.xml 2013-04-20 02:26:42 +0000
55+++ account_asset/report/account_asset_report_view.xml 2013-06-11 10:12:22 +0000
56@@ -49,7 +49,7 @@
57 <field name="asset_id"/>
58 <field name="asset_category_id"/>
59 <group expand="0" string="Extended Filters...">
60- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
61+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
62 <field name="company_id" groups="base.group_multi_company"/>
63 </group>
64 <group expand="1" string="Group By...">
65
66=== modified file 'account_voucher/account_voucher_view.xml'
67--- account_voucher/account_voucher_view.xml 2013-04-08 00:55:26 +0000
68+++ account_voucher/account_voucher_view.xml 2013-06-11 10:12:22 +0000
69@@ -129,7 +129,7 @@
70 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
71 <separator/>
72 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted'), ('audit','=',False)]" help="To Review"/>
73- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
74+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
75 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" />
76 <field name="period_id"/>
77 <group expand="0" string="Group By...">
78
79=== modified file 'account_voucher/voucher_payment_receipt_view.xml'
80--- account_voucher/voucher_payment_receipt_view.xml 2013-05-14 11:52:13 +0000
81+++ account_voucher/voucher_payment_receipt_view.xml 2013-06-11 10:12:22 +0000
82@@ -11,7 +11,7 @@
83 <field name="date"/>
84 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
85 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
86- <field name="partner_id" string="Customer" filter_domain="[('partner_id','child_of',self)]"/>
87+ <field name="partner_id" string="Customer" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
88 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
89 <field name="period_id"/>
90 <group expand="0" string="Group By...">
91@@ -34,7 +34,7 @@
92 <field name="date"/>
93 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
94 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
95- <field name="partner_id" string="Supplier" filter_domain="[('partner_id','child_of',self)]"/>
96+ <field name="partner_id" string="Supplier" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
97 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
98 <field name="period_id"/>
99 <group expand="0" string="Group By...">
100
101=== modified file 'account_voucher/voucher_sales_purchase_view.xml'
102--- account_voucher/voucher_sales_purchase_view.xml 2013-05-14 11:52:13 +0000
103+++ account_voucher/voucher_sales_purchase_view.xml 2013-06-11 10:12:22 +0000
104@@ -10,7 +10,7 @@
105 <field name="date"/>
106 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
107 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
108- <field name="partner_id" string="Supplier" filter_domain="[('partner_id','child_of',self)]"/>
109+ <field name="partner_id" string="Supplier" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
110 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('purchase','purchase_refund'))]"/>
111 <field name="period_id"/>
112 <group expand="0" string="Group By...">
113@@ -32,7 +32,7 @@
114 <field name="date"/>
115 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
116 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
117- <field name="partner_id" string="Customer" filter_domain="[('partner_id','child_of',self)]"/>
118+ <field name="partner_id" string="Customer" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
119 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('sale','sale_refund'))]"/>
120 <field name="period_id"/>
121 <group expand="0" string="Group By...">
122
123=== modified file 'crm/crm_lead_view.xml'
124--- crm/crm_lead_view.xml 2013-06-04 10:56:48 +0000
125+++ crm/crm_lead_view.xml 2013-06-11 10:12:22 +0000
126@@ -331,7 +331,7 @@
127 <field name="categ_ids" string="Category" filter_domain="[('categ_ids','ilike',self)]"/>
128 <field name="section_id" context="{'invisible_section': False}" groups="base.group_multi_salesteams"/>
129 <field name="user_id"/>
130- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
131+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
132 <field name="create_date"/>
133 <field name="country_id" context="{'invisible_country': False}"/>
134 <separator/>
135@@ -549,7 +549,7 @@
136 <field name="categ_ids" string="Category" filter_domain="[('categ_ids','ilike', self)]"/>
137 <field name="section_id" context="{'invisible_section': False}" groups="base.group_multi_salesteams"/>
138 <field name="user_id"/>
139- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
140+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
141 <separator/>
142 <filter string="New" name="new" domain="[('state','=','draft')]" help="New Opportunities"/>
143 <filter string="In Progress" name="open" domain="[('state','=','open')]" help="Open Opportunities"/>
144
145=== modified file 'crm/crm_phonecall_view.xml'
146--- crm/crm_phonecall_view.xml 2013-04-22 15:34:49 +0000
147+++ crm/crm_phonecall_view.xml 2013-06-11 10:12:22 +0000
148@@ -186,7 +186,7 @@
149 <separator/>
150 <filter string="Phone Calls Assigned to Me or My Team(s)" icon="terp-personal+" domain="['|', ('section_id.user_id','=',uid), ('user_id', '=', uid)]"
151 help="Phone Calls Assigned to the current user or with a team having the current user as team leader"/>
152- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
153+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
154 <field name="user_id"/>
155 <field name="section_id" string="Sales Team"
156 groups="base.group_multi_salesteams"/>
157
158=== modified file 'crm/report/crm_lead_report_view.xml'
159--- crm/report/crm_lead_report_view.xml 2013-05-21 14:27:53 +0000
160+++ crm/report/crm_lead_report_view.xml 2013-06-11 10:12:22 +0000
161@@ -82,7 +82,7 @@
162 groups="base.group_multi_salesteams"/>
163 <field name="user_id" string="Salesperson"/>
164 <group expand="0" string="Extended Filters...">
165- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
166+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
167 <field name="stage_id" domain="[('section_ids', '=', 'section_id')]" />
168 <field name="type_id"/>
169 <field name="channel_id"/>
170
171=== modified file 'crm/report/crm_phonecall_report_view.xml'
172--- crm/report/crm_phonecall_report_view.xml 2013-05-21 14:27:53 +0000
173+++ crm/report/crm_phonecall_report_view.xml 2013-06-11 10:12:22 +0000
174@@ -64,7 +64,7 @@
175 groups="base.group_multi_salesteams"/>
176 <field name="user_id" string="Salesperson"/>
177 <group expand="0" string="Extended Filters...">
178- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
179+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
180 <field name="company_id" groups="base.group_multi_company"/>
181 <field name="creation_date"/>
182 <field name="opening_date"/>
183
184=== modified file 'crm_claim/crm_claim_view.xml'
185--- crm_claim/crm_claim_view.xml 2013-04-22 15:34:49 +0000
186+++ crm_claim/crm_claim_view.xml 2013-06-11 10:12:22 +0000
187@@ -201,7 +201,7 @@
188 <filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]"/>
189 <separator/>
190 <filter string="Unassigned Claims" icon="terp-personal-" domain="[('user_id','=', False)]" help="Unassigned Claims" />
191- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
192+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
193 <field name="user_id"/>
194 <group expand="0" string="Group By...">
195 <filter string="Partner" icon="terp-partner" domain="[]" help="Partner" context="{'group_by':'partner_id'}"/>
196
197=== modified file 'crm_claim/report/crm_claim_report_view.xml'
198--- crm_claim/report/crm_claim_report_view.xml 2013-05-21 14:27:53 +0000
199+++ crm_claim/report/crm_claim_report_view.xml 2013-06-11 10:12:22 +0000
200@@ -65,7 +65,7 @@
201 <field name="section_id" string="Sales Team" context="{'invisible_section': False}"
202 groups="base.group_multi_salesteams"/>
203 <group expand="0" string="Extended Filters...">
204- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
205+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
206 <field name="stage_id" domain="[('section_ids', '=', 'section_id')]"/>
207 <field name="categ_id" domain="[('object_id.model', '=', 'crm.claim')]"/>
208 <field name="priority"/>
209
210=== modified file 'crm_helpdesk/crm_helpdesk_view.xml'
211--- crm_helpdesk/crm_helpdesk_view.xml 2013-05-21 14:27:53 +0000
212+++ crm_helpdesk/crm_helpdesk_view.xml 2013-06-11 10:12:22 +0000
213@@ -152,7 +152,7 @@
214 <separator/>
215 <filter string="Assigned to Me or My Sales Team(s)" icon="terp-personal+" domain="['|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
216 help="Helpdesk requests that are assigned to me or to one of the sale teams I manage" groups="base.group_multi_salesteams"/>
217- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
218+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
219 <field name="user_id"/>
220 <field name="section_id" string="Sales Team" groups="base.group_multi_salesteams"/>
221 <group expand="0" string="Group By...">
222
223=== modified file 'crm_helpdesk/report/crm_helpdesk_report_view.xml'
224--- crm_helpdesk/report/crm_helpdesk_report_view.xml 2013-05-21 14:27:53 +0000
225+++ crm_helpdesk/report/crm_helpdesk_report_view.xml 2013-06-11 10:12:22 +0000
226@@ -62,7 +62,7 @@
227 <field name="user_id" string="Salesperson"/>
228 <field name="section_id" string="Sales Team" context="{'invisible_section': False}" groups="base.group_multi_salesteams"/>
229 <field name="company_id" groups="base.group_multi_company"/>
230- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
231+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
232 <group expand="0" string="Extended Filters..." groups="base.group_no_one">
233 <field name="priority" string="Priority"/>
234 <field name="categ_id"/>
235
236=== modified file 'mrp_repair/mrp_repair_view.xml'
237--- mrp_repair/mrp_repair_view.xml 2013-04-20 02:26:42 +0000
238+++ mrp_repair/mrp_repair_view.xml 2013-06-11 10:12:22 +0000
239@@ -210,7 +210,7 @@
240 <separator/>
241 <filter icon="terp-dolar" string="Invoiced" domain="[('invoiced','=',True)]"/>
242 <field name="product_id"/>
243- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
244+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
245 <group expand="0" string="Group By...">
246 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
247 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
248
249=== modified file 'project/project_view.xml'
250--- project/project_view.xml 2013-05-30 09:22:04 +0000
251+++ project/project_view.xml 2013-06-11 10:12:22 +0000
252@@ -190,7 +190,7 @@
253 <separator/>
254 <filter string="Project(s) Manager" domain="[('user_id','=',uid)]" help="Projects in which I am a manager" icon="terp-personal"/>
255 <field name="user_id" string="Project Manager"/>
256- <field name="partner_id" string="Contact" filter_domain="[('partner_id', 'child_of', self)]"/>
257+ <field name="partner_id" string="Contact" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
258 <group expand="0" string="Group By...">
259 <filter string="Manager" name="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
260 <filter string="Contact" name="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
261
262=== modified file 'project/report/project_report_view.xml'
263--- project/report/project_report_view.xml 2013-04-20 02:26:42 +0000
264+++ project/report/project_report_view.xml 2013-06-11 10:12:22 +0000
265@@ -69,7 +69,7 @@
266 <filter icon="terp-personal-" string="Non Assigned Tasks to users" help="Non Assigned Tasks to users" domain="[('user_id','=',False)]"/>
267 <field name="project_id"/>
268 <field name="user_id"/>
269- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
270+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
271 <group expand="0" string="Extended Filters...">
272 <field name="priority"/>
273 <field name="company_id" groups="base.group_multi_company"/>
274
275=== modified file 'project_issue/project_issue_view.xml'
276--- project_issue/project_issue_view.xml 2013-05-27 11:43:50 +0000
277+++ project_issue/project_issue_view.xml 2013-06-11 10:12:22 +0000
278@@ -159,7 +159,7 @@
279 <field name="user_id"/>
280 <field name="project_id"/>
281 <field name="categ_ids"/>
282- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
283+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
284 <group expand="0" string="Group By..." >
285 <filter string="Responsible" name="group_user_id" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
286 <filter string="Contact" name="group_partner_id" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
287
288=== modified file 'project_issue/report/project_issue_report_view.xml'
289--- project_issue/report/project_issue_report_view.xml 2013-04-22 15:34:49 +0000
290+++ project_issue/report/project_issue_report_view.xml 2013-06-11 10:12:22 +0000
291@@ -55,7 +55,7 @@
292 <filter icon="terp-dialog-close" string="Done" domain="[('state','=','done')]"/>
293 <field name="project_id"/>
294 <field name="user_id"/>
295- <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
296+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
297 <field name="version_id"/>
298 <group expand="1" string="Group By...">
299 <filter string="Assigned to" name="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}" />
300
301=== modified file 'stock/report/report_stock_move_view.xml'
302--- stock/report/report_stock_move_view.xml 2013-04-20 02:26:42 +0000
303+++ stock/report/report_stock_move_view.xml 2013-06-11 10:12:22 +0000
304@@ -149,7 +149,7 @@
305 <field name="location_id" filter_domain="[('location_id', 'child_of', self)]"/>
306 <field name="company_id" groups="base.group_multi_company"/>
307 <group expand="0" string="Extended Filters...">
308- <field name="partner_id" context="{'contact_display':'partner'}" filter_domain="[('partner_id', 'child_of', self)]"/>
309+ <field name="partner_id" context="{'contact_display':'partner'}" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
310 <field name="product_categ_id" />
311 <field name="prodlot_id"/>
312 <field name="state"/>
313
314=== modified file 'stock/stock_view.xml'
315--- stock/stock_view.xml 2013-05-21 12:23:59 +0000
316+++ stock/stock_view.xml 2013-06-11 10:12:22 +0000
317@@ -817,7 +817,7 @@
318 <filter icon="terp-check" name="available" string="Ready" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
319 <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves"/>
320 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
321- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
322+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
323 <field name="product_id"/>
324 <field name="stock_journal_id"/>
325 <group expand="0" string="Group By...">
326@@ -944,7 +944,7 @@
327 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/>
328 <separator/>
329 <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
330- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
331+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
332 <field name="stock_journal_id"/>
333 <field name="company_id" groups="base.group_multi_company"/>
334 <group expand="0" string="Group By...">
335@@ -1070,7 +1070,7 @@
336 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/>
337 <separator/>
338 <filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]"/>
339- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
340+ <field name="partner_id" filter_domain="['|',('partner_id','child_of',self),('partner_id.display_name','ilike', self)]"/>
341 <field name="stock_journal_id"/>
342 <field name="product_id"/>
343 <group expand="0" string="Group By...">
344@@ -1382,7 +1382,7 @@
345 <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders processed Today or planned for Today"/>
346 <field name="product_id"/>
347 <field name="name" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
348- <field name="partner_id" string="Partner" filter_domain="[('picking_id.partner_id','child_of',self)]"/>
349+ <field name="partner_id" string="Partner" filter_domain="['|',('picking_id.partner_id','child_of',self),('picking_id.partner_id.display_name','ilike', self)]"/>
350 <field name="prodlot_id"/>
351 <group expand="0" string="Group By...">
352 <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>

Subscribers

People subscribed via source and target branches

to all changes: