[fix] problem in function field not returning correctly all fields
[odoo/odoo.git] / addons / auction / auction_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3 <data>
4     <menuitem name="Auction" id="auction_menu_root" icon="terp-purchase" sequence="26"
5                 groups="group_auction_manager,group_auction_user"/>
6     <menuitem name="Configuration" parent="auction_menu_root" id="auction_config_menu" sequence="7" groups="group_auction_manager"/>
7     <menuitem name="Tools Bar Codes" id="auction_outils_menu" parent="auction_menu_root" sequence="5" />
8     <menuitem name="Deliveries Management" action="action_auction_taken" id="menu_wizard_emporte" parent="auction_outils_menu"/>
9
10    <!--  Auction Management/Configuration/artist  -->
11
12     <record model="ir.ui.view" id="view_auction_artist_tree">
13         <field name="name">auction.artists.tree</field>
14         <field name="model">auction.artists</field>
15         <field name="type">tree</field>
16         <field name="arch" type="xml">
17             <tree string="Artists">
18                 <field name="name"/>
19                 <field name="birth_death_dates"/>
20             </tree>
21         </field>
22     </record>
23     <record model="ir.ui.view" id="view_auction_artist_form">
24         <field name="name">auction.artists.form</field>
25         <field name="model">auction.artists</field>
26         <field name="type">form</field>
27         <field name="arch" type="xml">
28             <form string="Artists">
29                 <separator string="Author/Artist" colspan="4"/>
30                 <group colspan="4" col="6">
31                     <field name="name" colspan="4" string="Name" select="1"/>
32                     <newline/>
33                     <field name="pseudo"/>
34                     <field name="birth_death_dates"/>
35                 </group>
36                 <separator string="Biography" colspan="4"/>
37                 <field name="biography" nolabel="1" colspan="4"/>
38             </form>
39         </field>
40     </record>
41     <record model="ir.actions.act_window" id="action_auction_artist">
42         <field name="name">Auction Artists</field>
43         <field name="res_model">auction.artists</field>
44         <field name="view_type">form</field>
45         <field name="view_id" ref="view_auction_artist_tree"/>
46     </record>
47     <menuitem name="Artists" parent="auction_config_menu" action="action_auction_artist" id="menu_auction_artist"/>
48
49
50   <!--  Auction Management/Configuration/objectcategories  -->
51
52     <record model="ir.ui.view" id="view_auction_object_categories_tree">
53         <field name="name">auction.lot.category.tree</field>
54         <field name="model">auction.lot.category</field>
55         <field name="type">tree</field>
56         <field name="arch" type="xml">
57            <tree string="Object Categories">
58                <field name="name"/>
59            </tree>
60         </field>
61     </record>
62
63     <record model="ir.ui.view" id="view_auction_object_categories_form">
64         <field name="name">auction.lot.category.form</field>
65         <field name="model">auction.lot.category</field>
66         <field name="type">form</field>
67         <field name="arch" type="xml">
68            <form string="Object Categories">
69                <field name="name" colspan="4" select="1"/>
70                <newline/>
71                <field name="aie_categ" colspan="4"/>
72                <field name="priority"/>
73                <newline/>
74                <field name="active"/>
75            </form>
76         </field>
77     </record>
78
79     <record model="ir.actions.act_window" id="action_auction_object_categories">
80         <field name="name">Auction object Categories</field>
81         <field name="res_model">auction.lot.category</field>
82         <field name="view_type">form</field>
83         <field name="view_id" ref="view_auction_object_categories_tree"/>
84     </record>
85
86     <menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories"
87                 id="menu_auction_object_cat" groups="group_auction_manager"/>
88
89    <!--  Auction Management/Auction Dates/New Auction Dates  -->
90
91     <record model="ir.ui.view" id="view_auction_dates_tree">
92         <field name="name">Auction dates</field>
93         <field name="model">auction.dates</field>
94         <field name="type">tree</field>
95         <field name="arch" type="xml">
96             <tree string="Auction Dates">
97                <field name="auction1" string="Beginning of the auction"/>
98                <field name="auction2" string="End of auction"/>
99                <field name="name" string="Names"/>
100                <field name="state"/>
101             </tree>
102         </field>
103     </record>
104
105     <record model="ir.ui.view" id="view_auction_dates_form">
106         <field name="name">Auction dates</field>
107         <field name="model">auction.dates</field>
108         <field name="type">form</field>
109         <field name="arch" type="xml">
110             <form string="Auctions">
111                 <field name="name" colspan="2" select="1"/>
112                 <notebook colspan="4">
113                     <page string="Auction Dates">
114                         <group colspan="4" col="4">
115                             <group colspan="2" col="2">
116                                 <separator string="Exposition Dates" colspan="4"/>
117                                 <field name="expo1"/>
118                                 <field name="expo2"/>
119                             </group>
120                             <group colspan="2" col="2">
121                                 <separator string="Auction Dates" colspan="4"/>
122                                 <field name="auction1" select="1"/>
123                                 <field name="auction2" select="1"/>
124                             </group>
125                         </group>
126                         <separator string="" colspan="4"/>
127                         <field name="state"/>
128                         <button name="close" states="draft" string="Create Invoices" type="object" colspan="2" icon="terp-gtk-go-back-rtl"/>
129                     </page>
130                     <page string="Accounting" >
131                         <group colspan="4" col="4">
132                             <group colspan="2" col="2">
133                                 <separator string="Accounting" colspan="4"/>
134                                 <field name="acc_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
135                                 <field name="acc_income" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
136                             </group>
137                             <group colspan="2" col="2">
138                                 <separator string="Analytic" colspan="4"/>
139                                 <field name="journal_id"/>
140                                 <field name="journal_seller_id"/>
141                                 <field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
142                             </group>
143                         </group>
144                     </page>
145                     <page string="Commissions">
146                         <group col="4" colspan="4" expand="1">
147                             <group col="2" colspan="4">
148                                <separator string="Buyer Commissions" colspan="4"/>
149                                 <field name="buyer_costs" domain="[('parent_id','=',False),('domain','=','auction'),('type_tax_use','&lt;&gt;','sale')]" nolabel="1" colspan="4"/>
150                              </group>
151                              <group col="2" colspan="4">
152                                  <separator string="Seller Commissions" colspan="4"/>
153                                  <field name="seller_costs" domain="[('parent_id','=',False),('domain','=','auction'),('type_tax_use','&lt;&gt;','purchase')]" nolabel="1" colspan="4"/>
154                              </group>
155                         </group>
156                     </page>
157                     <page string="History">
158                         <group colspan="4" col="4">
159                             <group colspan="2" col="2">
160                                 <separator string="Buyer Invoices" colspan="2"/>
161                                 <field name="buyer_invoice_history" nolabel="1" widget="one2many_list"
162                                         height="400">
163                                     <tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel'" string="Invoice">
164                                         <field name="date_invoice"/>
165                                         <field name="number"/>
166                                         <field name="partner_id" groups="base.group_user"/>
167                                         <field name="name"/>
168                                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
169                                         <field name="user_id"/>
170                                         <field name="date_due"/>
171                                         <field name="origin"/>
172                                         <field name="state"/>
173                                     </tree>
174                                 </field>
175                             </group>
176                             <group colspan="2" col="2">
177                                 <separator string="Seller Invoices" colspan="2"/>
178                                 <field name="seller_invoice_history" nolabel="1" widget="one2many_list"
179                                         height="400">
180                                     <tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel'" string="Invoice">
181                                         <field name="date_invoice"/>
182                                         <field name="number"/>
183                                         <field name="partner_id" groups="base.group_user"/>
184                                         <field name="name"/>
185                                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
186                                         <field name="user_id"/>
187                                         <field name="date_due"/>
188                                         <field name="origin"/>
189                                         <field name="state"/>
190                                     </tree>
191                                 </field>
192                             </group>
193                         </group>
194                     </page>
195                 </notebook>
196             </form>
197         </field>
198     </record>
199
200     <!-- Auction Dates Search view -->
201
202     <record id="view_auction_dates_filter" model="ir.ui.view">
203         <field name="name">Auction Dates search</field>
204         <field name="model">auction.dates</field>
205         <field name="type">search</field>
206         <field name="arch" type="xml">
207             <search string="Search Next Auction Dates">
208                 <filter icon="terp-document-new"
209                     string="Draft"  help="Draft Auction"
210                     name="draft"
211                     domain="[('state','=', 'draft')]"/>
212                 <filter icon="terp-check"
213                     string="Invoiced"  help="Invoiced Auction"
214                     domain="[('state','=','closed')]"/>
215                 <separator orientation="vertical"/>
216                 <field name="name" string="Auction"/>
217                 <field name="state"/>
218                 <field name="auction1" string="First Auction Date"/>
219                 <field name="auction2" string="Last Auction Date"/>
220                 <newline/>
221                 <group expand="0" string="Group By...">
222                     <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
223                     <separator orientation="vertical" />
224                     <filter string="Auction Date"
225                         icon="terp-go-month"
226                         help="Auction Date" domain="[]"
227                         context="{'group_by':'auction1'}" />
228                 </group>
229             </search>
230         </field>
231     </record>
232
233     <!-- Auction Dates Calendar View -->
234
235     <record model="ir.ui.view" id="auction_dates_calendar_view">
236         <field name="name">Auction Dates Calendar</field>
237         <field name="model">auction.dates</field>
238         <field name="type">calendar</field>
239         <field name="priority" eval="2"/>
240         <field name="arch" type="xml">
241             <calendar string="Next Auction"
242                 date_start="auction1" color="">
243                 <field name="name" />
244                 <field name="auction1"/>
245             </calendar>
246         </field>
247     </record>
248
249     <record model="ir.actions.act_window" id="action_auction_dates_next">
250         <field name="name">Auctions</field>
251         <field name="res_model">auction.dates</field>
252         <field name="view_type">form</field>
253         <field name="view_mode">tree,form,calendar</field>
254         <field name="search_view_id" ref="view_auction_dates_filter"/>
255         <field name="context">{"search_default_draft": "1"}</field>
256     </record>
257
258     <act_window name="Open lots"
259         context="{'search_default_auction_id': [active_id], 'default_auction_id': active_id}"
260         res_model="auction.lots"
261         src_model="auction.dates"
262         id="act_auction_lot_line_open"/>
263
264
265     <menuitem name="Auctions" parent="auction_menu_root" id="auction_date_menu" sequence="1"/>
266     <menuitem name="Auctions" parent="auction_date_menu" id="menu_auction_dates_next1" action="action_auction_dates_next"/>
267
268
269     <record model="ir.ui.view" id="view_auction_lot_tree">
270         <field name="name">Auction lots</field>
271         <field name="model">auction.lots</field>
272         <field name="type">tree</field>
273         <field name="priority" eval="1"/>
274         <field name="arch" type="xml">
275             <tree colors="blue:state in ('unsold','draft');black:state in ('sold','taken_away');gray:state == 'paid' " string="Objects">
276                 <field name="obj_num" string="Ref" select="1"/>
277                 <field name="name" select="1"/>
278                 <field name="ach_uid"/>
279                 <field name="obj_price" sum="Total Adj."/>
280                 <field name="bord_vnd_id"/>
281                 <field name="lot_num"/>
282                 <field name="auction_id"/>
283                 <field name="lot_type"/>
284                 <field name="state" select="1"/>
285                 <button name="button_bought" string="Sold" states="draft" type="object" icon="gtk-jump-to"/>
286                 <button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/>
287                 <button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/>
288                 <button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/>
289             </tree>
290         </field>
291     </record>
292
293     <record model="ir.ui.view" id="auction_lot_detailed">
294         <field name="name">Auction lots</field>
295         <field name="model">auction.lots</field>
296         <field name="type">form</field>
297         <field name="priority" eval="8"/>
298         <field name="arch" type="xml">
299             <form string="Objects">
300               <group colspan="4" col="8">
301                 <field name="name" colspan="4"/>
302                 <field name="obj_num"/>
303                 <newline/>
304                 <field name="auction_id"/>
305                 <field name="lot_type"/>
306                 <field name="lot_local"/>
307               </group>
308               <notebook colspan="4">
309                   <page string="Catalog">
310                       <separator string="Inventory" colspan="2"/>
311                       <group colspan="4" col="6">
312                           <group colspan="2" col="4">
313                             <field name="product_id" colspan="4"/>
314                             <field name="lot_num" select="1" />
315                             <field name="bord_vnd_id"/>
316                           </group>
317                           <group colspan="2" col="1">
318                             <field name="image" widget='image' nolabel="1"/>
319                           </group>
320                       </group>
321                       <group colspan="4" col="6">
322                         <group colspan="2" col="2">
323                             <separator string="Authors" colspan="4"/>
324                             <field name="artist_id"/>
325                             <field name="artist2_id"/>
326                             <field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/>
327                         </group>
328                         <group colspan="2" col="2">
329                             <separator string="Price" colspan="4"/>
330                             <field name="lot_est1"/>
331                             <field name="lot_est2"/>
332                             <field name="obj_price"/>
333                             <field name="seller_price"/>
334                             <field name="buyer_price"/>
335                             <field name="obj_comm"/>
336                         </group>
337                         <group colspan="2" col="2">
338                             <separator string="Statistical" colspan="4"/>
339                             <field name="gross_revenue"/>
340                             <field name="net_revenue"/>
341                             <field name="gross_margin"/>
342                             <field name="net_margin"/>
343                             <field name="costs"/>
344                         </group>
345                       </group>
346                       <group colspan="4" col="4">
347                         <group colspan="2" col="4">
348                             <separator string="Buyer Information" colspan="4"/>
349                             <field name="ach_uid"/>
350                             <field name="is_ok"/>
351                             <field name="ach_login" />
352                             <field name="paid_ach"/>
353                             <field name="ach_inv_id"/>
354                             <field name="ach_emp"/>
355                         </group>
356                         <group colspan="2" col="4">
357                             <separator string="Seller Information" colspan="4"/>
358                             <field name="seller_id"/>
359                             <newline/>
360                             <field name="vnd_lim"/>
361                             <field name="vnd_lim_net"/>
362                             <field name="sel_inv_id"/>
363                             <field name="paid_vnd"/>
364                         </group>
365                     </group>
366                        <group colspan="4" col="4">
367                         <separator string="" colspan="4"/>
368                         <field name="state" colspan="1"/>
369                         <group col="8" colspan="2">
370                             <button name="button_bought" string="Sold" states="draft" type="object" icon="gtk-jump-to"/>
371                             <button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/>
372                             <button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/>
373                             <button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/>
374                         </group>
375                       </group>
376                    </page>
377                    <page string="Bids">
378                        <field name="bid_lines" colspan="4" nolabel="1">
379                             <tree string="Bids Details"  editable="top">
380                                 <field name="bid_id"/>
381                                 <field name="price"/>
382                                 <field name="call"/>
383                             </tree>
384                             <form string="Bids Details" >
385                                 <field name="bid_id"/>
386                                 <field name="lot_id" domain="[('auction_id','=',parent['auction_id'])]" on_change="onchange_name(lot_id)"/>
387                                 <field name="price"/>
388                                 <field name="call"/>
389                             </form>
390                         </field>
391                     </page>
392                     <page string="History" groups="base.group_extended">
393                             <group colspan="2" col="2">
394                                 <field name="statement_id" domain="[('state','=','draft')]" colspan="4" nolabel="1"
395                                     height="575" width="285" widget="one2many_list">
396                                     <tree string="Buyer's Payment History">
397                                         <field name="statement_id"/>
398                                         <field name="amount"/>
399                                         <field name="date"/>
400                                     </tree>
401                                     <form string="Buyer's Payment History">
402                                         <field name="name"/>
403                                         <field name="sequence"/>
404                                         <field name="date"/>
405                                         <field name="partner_id"/>
406                                         <field name="account_id"/>
407                                         <field name="type"/>
408                                         <field name="statement_id"/>
409                                         <field name="amount"/>
410                                     </form>
411                                 </field>
412                             </group>
413                             <group colspan="2" col="2">
414                                <field name="history_ids" colspan="4" readonly="1" nolabel="1" height="575">
415                                   <tree string="History">
416                                      <field name="name"/>
417                                      <field name="lot_id"/>
418                                      <field name="auction_id"/>
419                                      <field name="price"/>
420                                   </tree>
421                                </field>
422                             </group>
423                     </page>
424                     <page string="Notes">
425                         <field name="obj_desc" colspan="4" nolabel="1"/>
426                     </page>
427                 </notebook>
428            </form>
429         </field>
430     </record>
431
432     <record id="view_auction_lots_filter" model="ir.ui.view">
433          <field name="name">Auction Lots search</field>
434          <field name="model">auction.lots</field>
435          <field name="type">search</field>
436          <field name="arch" type="xml">
437              <search string="Search Auction Lots">
438                  <filter icon="terp-document-new"
439                      string="Draft"  help="New Object"
440                      name="draft"
441                      domain="[('state','=', 'draft')]"/>
442                  <filter icon="terp-dolar"
443                      string="Sold"  help="Buy object"
444                      domain="[('state','=','sold')]"/>
445                  <separator orientation="vertical"/>
446                  <field name="name"/>
447                  <field name="ach_uid"/>
448                  <field name="bord_vnd_id"/>
449                  <field name="state"/>
450                  <newline/>
451                  <group expand="0" string="Group By...">
452                      <filter string="Buyer"
453                          icon="terp-personal"
454                          help="Buyer" domain="[]"
455                          context="{'group_by':'ach_uid'}"/>
456                      <separator orientation="vertical" />
457                      <filter string="Auction"
458                          icon="terp-purchase"
459                          help="Auction" domain="[]"
460                          context="{'group_by':'auction_id'}"/>
461                      <filter string="Inventory"
462                          icon="terp-purchase"
463                          help="Depositer Inventory" domain="[]"
464                          context="{'group_by':'bord_vnd_id'}"/>
465                      <separator orientation="vertical" />
466                      <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
467                      <filter string="Type"
468                          icon="terp-stock_symbol-selection"
469                          help="Object Category" domain="[]"
470                          context="{'group_by':'lot_type'}"/>
471                  </group>
472              </search>
473         </field>
474     </record>
475
476   <!-- Graph view for Auction Lots -->
477
478     <record model="ir.ui.view" id="auction_lot_graph">
479         <field name="name">Auction lots</field>
480         <field name="model">auction.lots</field>
481         <field name="type">graph</field>
482         <field name="arch" type="xml">
483             <graph string="Lots" type="bar">
484                 <field name="lot_type"/>
485                 <field name="lot_est1" operator="+"/>
486                 <field name="lot_est2" operator="+"/>
487                 <field name="obj_price" operator="+"/>
488             </graph>
489         </field>
490     </record>
491
492     <record model="ir.actions.act_window" id="action_all_objects">
493         <field name="name">Objects</field>
494         <field name="res_model">auction.lots</field>
495         <field name="view_type">form</field>
496         <field name="view_mode">tree,form,graph</field>
497         <field name="search_view_id" ref="view_auction_lots_filter"/>
498         <field name="context">{"search_default_draft": "1"}</field>
499     </record>
500
501     <!-- Action for Bids -->
502
503     <act_window name="Open Bids"
504         context="{'search_default_lot_id': [active_id], 'default_lot_id': active_id}"
505         res_model="auction.bid_line"
506         src_model="auction.lots"
507         id="act_auction_lot_open_bid"/>
508
509     <menuitem name="Objects" action="action_all_objects" parent="auction_date_menu" id="auction_all_objects_menu"/>
510
511     <record model="ir.ui.view" id="view_deposit_border_form">
512         <field name="name">auction.deposit.form</field>
513         <field name="model">auction.deposit</field>
514         <field name="type">form</field>
515         <field name="arch" type="xml">
516             <form string="Deposit Border Form">
517                 <group colspan="4" col="6">
518                    <field name="name" string="Reference"/>
519                    <field name="date_dep"/>
520                    <field name="partner_id"/>
521                    <newline/>
522                    <field name="method"/>
523                    <field name="tax_id" domain="[('domain','=','auction'),('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
524                    <field name="transfer"/>
525                 </group>
526                <notebook colspan="4">
527                 <page string="General Information">
528                  <field name="lot_id" colspan="4" mode="tree,graph" nolabel="1">
529                       <tree string="Objects">
530                          <field name="lot_num"/>
531                          <field name="obj_num"/>
532                          <field name="auction_id"/>
533                          <field name="name"/>
534                          <field name="obj_price"/>
535                          <field name="vnd_lim"/>
536                          <field name="lot_est1"/>
537                          <field name="lot_est2"/>
538                       </tree>
539                       <form string="Objects">
540                           <notebook colspan="4">
541                               <page string="Description">
542                                 <field name="auction_id" colspan="4"/>
543                                 <field name="lot_num"/>
544                                 <field name="obj_num"/>
545                                 <newline/>
546                                 <field name="name"/>
547                                 <field name="lot_type" select="1"/>
548                                 <field name="name2"/>
549                                 <newline/>
550                                 <field name="artist_id"/>
551                                 <field name="artist2_id"/>
552                                 <separator string="Objects Description" colspan="4"/>
553                                 <field name="obj_desc" colspan="4" nolabel="1"/>
554                                 <field name="vnd_lim"/>
555                                 <field name="vnd_lim_net"/>
556                                 <field name="lot_est1"/>
557                                 <field name="lot_est2"/>
558                                 <field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/>
559                                 <field name="product_id" domain="[('sale_ok','=',True)]"/>
560                                 <field name="state" readonly="1" colspan="4"/>
561                               </page>
562                               <page string="Photos">
563                                   <field name="image" colspan="4" widget="image"/>
564                               </page>
565                           </notebook>
566                       </form>
567                  </field>
568                 </page>
569               <page string="Extra Costs">
570                  <field name="specific_cost_ids" widget="one2many_list" nolabel="1" colspan="4">
571                     <tree string="Deposit Costs" editable="top">
572                        <field name="name"/>
573                        <field name="amount"/>
574                        <field name="account" domain="[('type','=','income')]"/>
575                     </tree>
576                     <form string="Deposit Costs">
577                        <field name="name"/>
578                        <field name="amount"/>
579                        <field name="account"/>
580                     </form>
581                  </field>
582                 </page>
583                </notebook>
584             </form>
585         </field>
586     </record>
587
588     <record model="ir.ui.view" id="view_deposit_border_tree2">
589         <field name="name">Deposit border</field>
590         <field name="model">auction.deposit</field>
591         <field name="type">tree</field>
592         <field name="arch" type="xml">
593             <tree string="">
594                 <field name="name"/>
595                 <field name="partner_id"/>
596                 <field name="date_dep"/>
597                 <field name="method"/>
598                 <field name="tax_id"/>
599                 <field name="info"/>
600             </tree>
601         </field>
602     </record>
603
604     <record id="view_deposit_border_filter" model="ir.ui.view">
605          <field name="name">Deposit border</field>
606          <field name="model">auction.deposit</field>
607          <field name="type">search</field>
608          <field name="arch" type="xml">
609              <search string="Search Auction deposit">
610                  <field name="name"/>
611                  <field name="partner_id"/>
612                  <field name="method"/>
613                  <field name="date_dep"/>
614                  <newline/>
615                  <group expand="0" string="Group By...">
616                      <filter string="Seller"
617                          icon="terp-personal"
618                          help="Seller" domain="[]"
619                          context="{'group_by':'partner_id'}"/>
620                      <separator orientation="vertical" />
621                      <filter string="Withdrawned method"
622                          icon="terp-purchase"
623                          help="Withdrawned method" domain="[]"
624                          context="{'group_by':'method'}"/>
625                     <separator orientation="vertical" />
626                     <filter string="Deposit Date"
627                          icon="terp-go-month"
628                          help="Deposit Date" domain="[]"
629                          context="{'group_by':'date_dep'}"/>
630                  </group>
631              </search>
632         </field>
633     </record>
634
635     <!-- Auction Deposit Calendar View -->
636
637     <record model="ir.ui.view" id="auction_deposit_calendar_view">
638         <field name="name">Deposit Border Calendar</field>
639         <field name="model">auction.deposit</field>
640         <field name="type">calendar</field>
641         <field name="arch" type="xml">
642             <calendar string="Deposit Border"
643                 date_start="date_dep" color="create_uid">
644                 <field name="partner_id" />
645                 <field name="date_dep"/>
646             </calendar>
647         </field>
648     </record>
649
650     <record model="ir.actions.act_window" id="action_deposit_border">
651         <field name="name">Deposit border</field>
652         <field name="res_model">auction.deposit</field>
653         <field name="view_type">form</field>
654         <field name="view_mode">tree,form,calendar</field>
655         <field name="view_id" ref="view_deposit_border_tree2"/>
656         <field name="search_view_id" ref="view_deposit_border_filter"/>
657     </record>
658
659     <menuitem name="Sellers" id="auction_seller_menu" parent="auction_menu_root" sequence="3"/>
660     <menuitem name="Deposit border" parent="auction_seller_menu" action="action_deposit_border" id="menu_auction_deposit_border"/>
661
662     <!-- Bids Lines View -->
663
664     <record model="ir.ui.view" id="view_bids_tree">
665         <field name="name">auction.bid_line.tree1</field>
666         <field name="model">auction.bid_line</field>
667         <field name="type">tree</field>
668         <field name="arch" type="xml">
669             <tree string="Bids">
670                 <field name="bid_id"/>
671                 <field name="price"/>
672                 <field name="call"/>
673                 <field name="auction"/>
674             </tree>
675         </field>
676     </record>
677
678     <record model="ir.ui.view" id="view_bids_form">
679         <field name="name">auction.bid_line.form1</field>
680         <field name="model">auction.bid_line</field>
681         <field name="type">form</field>
682         <field name="arch" type="xml">
683             <form string="Bids">
684                 <field name="bid_id" select="1"/>
685                 <field name="lot_id" domain="[('auction_id','=',parent['auction_id'])]" on_change="onchange_name(lot_id)" colspan="4"/>
686                 <field name="call" colspan="4" select="1"/>
687                 <field name="price"/>
688             </form>
689         </field>
690     </record>
691
692 <!-- BidS View -->
693
694     <record model="ir.ui.view" id="v19">
695         <field name="name">auction.bid.form</field>
696         <field name="model">auction.bid</field>
697         <field name="arch" type="xml">
698             <form string="Bids">
699                 <group colspan="4" col="6">
700                     <field name="name"/>
701                     <field name="auction_id"/>
702                     <field name="contact_tel"/>
703                     <newline/>
704                     <field name="partner_id" on_change="onchange_contact(partner_id)" colspan="4"/>
705                 </group>
706                 <field name="bid_lines" colspan="4" nolabel="1">
707                     <tree string="Bids Lines" editable="bottom">
708                         <field name="lot_id" domain="[('auction_id','=',parent.auction_id)]"/>
709                         <field name="price"/>
710                         <field name="call"/>
711                     </tree>
712                     <form string="Bids Lines">
713                         <field name="lot_id" domain="[('auction_id','=',parent.auction_id)]"/>
714                         <field name="price"/>
715                         <field name="call"/>
716                     </form>
717                 </field>
718             </form>
719         </field>
720     </record>
721
722     <record model="ir.ui.view" id="view_auction_bid_tree">
723         <field name="name">auction.bid.tree</field>
724         <field name="model">auction.bid</field>
725         <field name="type">tree</field>
726         <field name="arch" type="xml">
727             <tree string="Bids">
728                 <field name="name"/>
729                 <field name="auction_id"/>
730                 <field name="partner_id"/>
731                 <field name="contact_tel"/>
732             </tree>
733         </field>
734     </record>
735
736
737     <record id="view_auction_bid_filter" model="ir.ui.view">
738          <field name="name">Auction Bid</field>
739          <field name="model">auction.bid</field>
740          <field name="type">search</field>
741          <field name="arch" type="xml">
742              <search string="Search Auction Bid">
743                  <field name="name"/>
744                  <field name="auction_id"/>
745                  <field name="partner_id"/>
746                  <field name="contact_tel"/>
747                  <newline/>
748                  <group expand="0" string="Group By...">
749                      <filter string="Buyer"
750                          icon="terp-personal"
751                          help="Buyer" domain="[]"
752                          context="{'group_by':'partner_id'}"/>
753                      <separator orientation="vertical" />
754                      <filter string="Auction"
755                          icon="terp-purchase"
756                          help="Auction" domain="[]"
757                          context="{'group_by':'auction_id'}"/>
758                  </group>
759              </search>
760         </field>
761     </record>
762
763     <record model="ir.actions.act_window" id="action_bid_open">
764         <field name="name">Open Bids</field>
765         <field name="res_model">auction.bid</field>
766         <field name="view_mode">tree,form</field>
767     </record>
768
769     <menuitem name="Buyers" id="auction_buyers_menu" parent="auction_menu_root" sequence="4"/>
770     <menuitem name="Bids" parent="auction_buyers_menu" action="action_bid_open" id="menu_action_bid_open"/>
771
772     <menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6" groups="group_auction_manager"/>
773
774     <act_window name="Deposit slip"
775         context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
776         res_model="auction.deposit"
777         src_model="res.partner"
778         id="act_auction_lot_open_deposit"/>
779
780 </data>
781 </openerp>
782