[REF]: Refactored some lines from previous commit.
[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="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="lot_type"/>
282                 <field name="state" select="1"/>
283                 <button name="button_bought" string="Sold" states="draft" type="object" icon="gtk-jump-to"/>
284                 <button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/>
285                 <button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/>
286                 <button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/>
287             </tree>
288         </field>
289     </record>
290
291     <record model="ir.ui.view" id="auction_lot_detailed">
292         <field name="name">Auction lots</field>
293         <field name="model">auction.lots</field>
294         <field name="type">form</field>
295         <field name="priority" eval="8"/>
296         <field name="arch" type="xml">
297             <form string="Objects">
298               <group colspan="4" col="8">
299                 <field name="name" colspan="4"/>
300                 <field name="obj_num"/>
301                 <newline/>
302                 <field name="auction_id"/>
303                 <field name="lot_type"/>
304                 <field name="lot_local"/>
305               </group>
306               <notebook colspan="4">
307                   <page string="Catalog">
308                       <separator string="Inventory" colspan="2"/>
309                       <group colspan="4" col="6">
310                           <group colspan="2" col="4">
311                             <field name="product_id" colspan="4"/>
312                             <field name="lot_num" select="1" />
313                             <field name="bord_vnd_id"/>
314                           </group>
315                           <group colspan="2" col="1">
316                             <field name="image" widget='image' nolabel="1"/>
317                           </group>
318                       </group>
319                       <group colspan="4" col="6">
320                         <group colspan="2" col="2">
321                             <separator string="Authors" colspan="4"/>
322                             <field name="artist_id"/>
323                             <field name="artist2_id"/>
324                             <field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/>
325                         </group>
326                         <group colspan="2" col="2">
327                             <separator string="Price" colspan="4"/>
328                             <field name="lot_est1"/>
329                             <field name="lot_est2"/>
330                             <field name="obj_price"/>
331                             <field name="seller_price"/>
332                             <field name="buyer_price"/>
333                             <field name="obj_comm"/>
334                         </group>
335                         <group colspan="2" col="2">
336                             <separator string="Statistical" colspan="4"/>
337                             <field name="gross_revenue"/>
338                             <field name="net_revenue"/>
339                             <field name="gross_margin"/>
340                             <field name="net_margin"/>
341                             <field name="costs"/>
342                         </group>
343                       </group>
344                       <group colspan="4" col="4">
345                         <group colspan="2" col="4">
346                             <separator string="Buyer Information" colspan="4"/>
347                             <field name="ach_uid"/>
348                             <field name="is_ok"/>
349                             <field name="ach_login" />
350                             <field name="paid_ach"/>
351                             <field name="ach_inv_id"/>
352                             <field name="ach_emp"/>
353                         </group>
354                         <group colspan="2" col="4">
355                             <separator string="Seller Information" colspan="4"/>
356                             <field name="seller_id"/>
357                             <newline/>
358                             <field name="vnd_lim"/>
359                             <field name="vnd_lim_net"/>
360                             <field name="sel_inv_id"/>
361                             <field name="paid_vnd"/>
362                         </group>
363                     </group>
364                        <group colspan="4" col="4">
365                         <separator string="" colspan="4"/>
366                         <field name="state" colspan="1"/>
367                         <group col="8" colspan="2">
368                             <button name="button_bought" string="Sold" states="draft" type="object" icon="gtk-jump-to"/>
369                             <button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/>
370                             <button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/>
371                             <button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/>
372                         </group>
373                       </group>
374                    </page>
375                    <page string="Bids">
376                        <field name="bid_lines" colspan="4" nolabel="1" editable="top">
377                             <tree string="Bids Details"  editable="top">
378                                 <field name="bid_id"/>
379                                 <field name="price"/>
380                                 <field name="call"/>
381                             </tree>
382                             <form string="Bids Details" >
383                                 <field name="bid_id"/>
384                                 <field name="lot_id" domain="[('auction_id','=',parent['auction_id'])]" on_change="onchange_name(lot_id)"/>
385                                 <field name="price"/>
386                                 <field name="call"/>
387                             </form>
388                         </field>
389                     </page>
390                     <page string="History" groups="base.group_extended">
391                             <group colspan="2" col="2">
392                                 <field name="statement_id" domain="[('state','=','draft')]" colspan="4" nolabel="1"
393                                     height="575" width="285" widget="one2many_list">
394                                     <tree string="Buyer's Payment History">
395                                         <field name="statement_id"/>
396                                         <field name="amount"/>
397                                         <field name="date"/>
398                                     </tree>
399                                     <form string="Buyer's Payment History">
400                                         <field name="name"/>
401                                         <field name="sequence"/>
402                                         <field name="date"/>
403                                         <field name="partner_id"/>
404                                         <field name="account_id"/>
405                                         <field name="type"/>
406                                         <field name="statement_id"/>
407                                         <field name="amount"/>
408                                     </form>
409                                 </field>
410                             </group>
411                             <group colspan="2" col="2">
412                                <field name="history_ids" colspan="4" readonly="1" nolabel="1" height="575">
413                                   <tree string="History">
414                                      <field name="name"/>
415                                      <field name="lot_id"/>
416                                      <field name="auction_id"/>
417                                      <field name="price"/>
418                                   </tree>
419                                </field>
420                             </group>
421                     </page>
422                     <page string="Notes">
423                         <field name="obj_desc" colspan="4" nolabel="1"/>
424                     </page>
425                 </notebook>
426            </form>
427         </field>
428     </record>
429
430     <record id="view_auction_lots_filter" model="ir.ui.view">
431          <field name="name">Auction Lots search</field>
432          <field name="model">auction.lots</field>
433          <field name="type">search</field>
434          <field name="arch" type="xml">
435              <search string="Search Auction Lots">
436                  <filter icon="terp-document-new"
437                      string="Draft"  help="New Object"
438                      name="draft"
439                      domain="[('state','=', 'draft')]"/>
440                  <filter icon="terp-dolar"
441                      string="Sold"  help="Buy object"
442                      domain="[('state','=','sold')]"/>
443                  <separator orientation="vertical"/>
444                  <field name="name"/>
445                  <field name="ach_uid"/>
446                  <field name="bord_vnd_id"/>
447                  <field name="state"/>
448                  <newline/>
449                  <group expand="0" string="Group By..." colspan="16">
450                      <filter string="Buyer"
451                          icon="terp-personal"
452                          help="Buyer" domain="[]"
453                          context="{'group_by':'ach_uid'}"/>
454                      <separator orientation="vertical" />
455                      <filter string="Auction"
456                          icon="terp-purchase"
457                          help="Auction" domain="[]"
458                          context="{'group_by':'auction_id'}"/>
459                      <filter string="Inventory"
460                          icon="terp-purchase"
461                          help="Depositer Inventory" domain="[]"
462                          context="{'group_by':'bord_vnd_id'}"/>
463                      <separator orientation="vertical" />
464                      <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
465                      <filter string="Type"
466                          icon="terp-stock_symbol-selection"
467                          help="Object Category" domain="[]"
468                          context="{'group_by':'lot_type'}"/>
469                  </group>
470              </search>
471         </field>
472     </record>
473
474   <!-- Graph view for Auction Lots -->
475
476     <record model="ir.ui.view" id="auction_lot_graph">
477         <field name="name">Auction lots</field>
478         <field name="model">auction.lots</field>
479         <field name="type">graph</field>
480         <field name="arch" type="xml">
481             <graph string="Lots" type="bar">
482                 <field name="lot_type"/>
483                 <field name="lot_est1" operator="+"/>
484                 <field name="lot_est2" operator="+"/>
485                 <field name="obj_price" operator="+"/>
486             </graph>
487         </field>
488     </record>
489
490     <record model="ir.actions.act_window" id="action_all_objects">
491         <field name="name">Objects</field>
492         <field name="res_model">auction.lots</field>
493         <field name="view_type">form</field>
494         <field name="view_mode">tree,form,graph</field>
495         <field name="search_view_id" ref="view_auction_lots_filter"/>
496         <field name="context">{"search_default_draft": "1"}</field>
497     </record>
498
499     <!-- Action for Bids -->
500
501     <act_window name="Open Bids"
502         domain="[('lot_id', '=', active_id)]"
503         res_model="auction.bid_line"
504         src_model="auction.lots"
505         id="act_auction_lot_open_bid"/>
506
507     <menuitem name="Objects" action="action_all_objects" parent="auction_date_menu" id="auction_all_objects_menu"/>
508
509     <record model="ir.ui.view" id="view_deposit_border_form">
510         <field name="name">auction.deposit.form</field>
511         <field name="model">auction.deposit</field>
512         <field name="type">form</field>
513         <field name="arch" type="xml">
514             <form string="Deposit Border Form">
515                 <group colspan="4" col="6">
516                    <field name="name" string="Reference"/>
517                    <field name="date_dep"/>
518                    <field name="partner_id"/>
519                    <newline/>
520                    <field name="method"/>
521                    <field name="tax_id" domain="[('domain','=','auction'),('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
522                    <field name="transfer"/>
523                 </group>
524                <notebook colspan="4">
525                 <page string="General Information">
526                  <field name="lot_id" colspan="4" mode="tree,graph" nolabel="1">
527                       <tree string="Objects">
528                          <field name="lot_num"/>
529                          <field name="obj_num"/>
530                          <field name="auction_id"/>
531                          <field name="name"/>
532                          <field name="obj_price"/>
533                          <field name="vnd_lim"/>
534                          <field name="lot_est1"/>
535                          <field name="lot_est2"/>
536                       </tree>
537                       <form string="Objects">
538                           <notebook colspan="4">
539                               <page string="Description">
540                                 <field name="auction_id" colspan="4"/>
541                                 <field name="lot_num"/>
542                                 <field name="obj_num"/>
543                                 <newline/>
544                                 <field name="name"/>
545                                 <field name="lot_type" select="1"/>
546                                 <field name="name2"/>
547                                 <newline/>
548                                 <field name="artist_id"/>
549                                 <field name="artist2_id"/>
550                                 <separator string="Objects Description" colspan="4"/>
551                                 <field name="obj_desc" colspan="4" nolabel="1"/>
552                                 <field name="vnd_lim"/>
553                                 <field name="vnd_lim_net"/>
554                                 <field name="lot_est1"/>
555                                 <field name="lot_est2"/>
556                                 <field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/>
557                                 <field name="product_id" domain="[('sale_ok','=',True)]"/>
558                                 <field name="state" readonly="1" colspan="4"/>
559                               </page>
560                               <page string="Photos">
561                                   <field name="image" colspan="4" widget="image"/>
562                               </page>
563                           </notebook>
564                       </form>
565                  </field>
566                 </page>
567               <page string="Extra Costs">
568                  <field name="specific_cost_ids" widget="one2many_list" nolabel="1" colspan="4">
569                     <tree string="Deposit Costs" editable="top">
570                        <field name="name"/>
571                        <field name="amount"/>
572                        <field name="account" domain="[('type','=','income')]"/>
573                     </tree>
574                     <form string="Deposit Costs">
575                        <field name="name"/>
576                        <field name="amount"/>
577                        <field name="account"/>
578                     </form>
579                  </field>
580                 </page>
581                </notebook>
582             </form>
583         </field>
584     </record>
585
586     <record model="ir.ui.view" id="view_deposit_border_tree2">
587         <field name="name">Deposit border</field>
588         <field name="model">auction.deposit</field>
589         <field name="type">tree</field>
590         <field name="arch" type="xml">
591             <tree string="">
592                 <field name="name"/>
593                 <field name="partner_id"/>
594                 <field name="date_dep"/>
595                 <field name="method"/>
596                 <field name="tax_id"/>
597                 <field name="info"/>
598             </tree>
599         </field>
600     </record>
601
602     <record id="view_deposit_border_filter" model="ir.ui.view">
603          <field name="name">Deposit border</field>
604          <field name="model">auction.deposit</field>
605          <field name="type">search</field>
606          <field name="arch" type="xml">
607              <search string="Search Auction deposit">
608                  <field name="name"/>
609                  <field name="partner_id"/>
610                  <field name="method"/>
611                  <field name="date_dep"/>
612                  <newline/>
613                  <group expand="0" string="Group By..." colspan="16">
614                      <filter string="Seller"
615                          icon="terp-personal"
616                          help="Seller" domain="[]"
617                          context="{'group_by':'partner_id'}"/>
618                      <separator orientation="vertical" />
619                      <filter string="Withdrawned method"
620                          icon="terp-purchase"
621                          help="Withdrawned method" domain="[]"
622                          context="{'group_by':'method'}"/>
623                     <separator orientation="vertical" />
624                     <filter string="Deposit Date"
625                          icon="terp-go-month"
626                          help="Deposit Date" domain="[]"
627                          context="{'group_by':'date_dep'}"/>
628                  </group>
629              </search>
630         </field>
631     </record>
632
633     <!-- Auction Deposit Calendar View -->
634
635     <record model="ir.ui.view" id="auction_deposit_calendar_view">
636         <field name="name">Deposit Border Calendar</field>
637         <field name="model">auction.deposit</field>
638         <field name="type">calendar</field>
639         <field name="arch" type="xml">
640             <calendar string="Deposit Border"
641                 date_start="date_dep" color="create_uid">
642                 <field name="partner_id" />
643                 <field name="date_dep"/>
644             </calendar>
645         </field>
646     </record>
647
648     <record model="ir.actions.act_window" id="action_deposit_border">
649         <field name="name">Deposit border</field>
650         <field name="res_model">auction.deposit</field>
651         <field name="view_type">form</field>
652         <field name="view_mode">tree,form,calendar</field>
653         <field name="view_id" ref="view_deposit_border_tree2"/>
654         <field name="search_view_id" ref="view_deposit_border_filter"/>
655     </record>
656
657     <menuitem name="Sellers" id="auction_seller_menu" parent="auction_menu_root" sequence="3"/>
658     <menuitem name="Deposit border" parent="auction_seller_menu" action="action_deposit_border" id="menu_auction_deposit_border"/>
659
660     <!-- Bids Lines View -->
661
662     <record model="ir.ui.view" id="view_bids_tree">
663         <field name="name">auction.bid_line.tree1</field>
664         <field name="model">auction.bid_line</field>
665         <field name="type">tree</field>
666         <field name="arch" type="xml">
667             <tree string="Bids">
668                 <field name="bid_id"/>
669                 <field name="price"/>
670                 <field name="call"/>
671                 <field name="auction"/>
672             </tree>
673         </field>
674     </record>
675
676     <record model="ir.ui.view" id="view_bids_form">
677         <field name="name">auction.bid_line.form1</field>
678         <field name="model">auction.bid_line</field>
679         <field name="type">form</field>
680         <field name="arch" type="xml">
681             <form string="Bids">
682                 <field name="bid_id" select="1"/>
683                 <field name="lot_id" domain="[('auction_id','=',parent['auction_id'])]" on_change="onchange_name(lot_id)" colspan="4"/>
684                 <field name="call" colspan="4" select="1"/>
685                 <field name="price"/>
686             </form>
687         </field>
688     </record>
689
690 <!-- BidS View -->
691
692     <record model="ir.ui.view" id="v19">
693         <field name="name">auction.bid.form</field>
694         <field name="model">auction.bid</field>
695         <field name="arch" type="xml">
696             <form string="Bids">
697                 <group colspan="4" col="6">
698                     <field name="name"/>
699                     <field name="auction_id"/>
700                     <field name="contact_tel"/>
701                     <newline/>
702                     <field name="partner_id" on_change="onchange_contact(partner_id)" colspan="4"/>
703                 </group>
704                 <field name="bid_lines" colspan="4" nolabel="1">
705                     <tree string="Bids Lines" editable="bottom">
706                         <field name="lot_id" domain="[('auction_id','=',parent.auction_id)]"/>
707                         <field name="price"/>
708                         <field name="call"/>
709                     </tree>
710                     <form string="Bids Lines" editable="top">
711                         <field name="lot_id" domain="[('auction_id','=',parent.auction_id)]"/>
712                         <field name="price"/>
713                         <field name="call"/>
714                     </form>
715                 </field>
716             </form>
717         </field>
718     </record>
719
720     <record model="ir.ui.view" id="view_auction_bid_tree">
721         <field name="name">auction.bid.tree</field>
722         <field name="model">auction.bid</field>
723         <field name="type">tree</field>
724         <field name="arch" type="xml">
725             <tree string="Bids">
726                 <field name="name"/>
727                 <field name="auction_id"/>
728                 <field name="partner_id"/>
729                 <field name="contact_tel"/>
730             </tree>
731         </field>
732     </record>
733
734
735     <record id="view_auction_bid_filter" model="ir.ui.view">
736          <field name="name">Auction Bid</field>
737          <field name="model">auction.bid</field>
738          <field name="type">search</field>
739          <field name="arch" type="xml">
740              <search string="Search Auction Bid">
741                  <field name="name"/>
742                  <field name="auction_id"/>
743                  <field name="partner_id"/>
744                  <field name="contact_tel"/>
745                  <newline/>
746                  <group expand="0" string="Group By..." colspan="16">
747                      <filter string="Buyer"
748                          icon="terp-personal"
749                          help="Buyer" domain="[]"
750                          context="{'group_by':'partner_id'}"/>
751                      <separator orientation="vertical" />
752                      <filter string="Auction"
753                          icon="terp-purchase"
754                          help="Auction" domain="[]"
755                          context="{'group_by':'auction_id'}"/>
756                  </group>
757              </search>
758         </field>
759     </record>
760
761     <record model="ir.actions.act_window" id="action_bid_open">
762         <field name="res_model">auction.bid</field>
763         <field name="view_mode">tree,form</field>
764     </record>
765
766     <menuitem name="Buyers" id="auction_buyers_menu" parent="auction_menu_root" sequence="4"/>
767     <menuitem name="Bids" parent="auction_buyers_menu" action="action_bid_open" id="menu_action_bid_open"/>
768
769     <menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6" groups="group_auction_manager"/>
770
771     <act_window name="Deposit slip"
772         context="{'search_default_partner_id': [active_id]}"
773         res_model="auction.deposit"
774         src_model="res.partner"
775         id="act_auction_lot_open_deposit"/>
776
777 </data>
778 </openerp>
779