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