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