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"/>
9 <!-- Auction Management/Configuration/artist -->
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">
18 <field name="birth_death_dates"/>
19 <field name="biography"/>
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"/>
32 <field colspan="4" name="birth_death_dates"/>
34 <field colspan="4" name="biography"/>
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"/>
43 <menuitem name="Define Artists" parent="auction_config_menu" action="action_auction_artist" id="menu_auction_artist"/>
46 <!-- Auction Management/Configuration/objectcategories -->
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">
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"/>
66 <field name="aie_categ" colspan="4"/>
67 <field name="priority"/>
69 <field name="active"/>
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"/>
80 <menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories" id="menu_auction_object_cat"/>
82 <!-- Auction Management/Auction Dates/New Auction Dates -->
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"/>
94 <button string="Create Invoices" help="Create Invoices" name="close" states="draft" type="object" icon="gtk-yes"/>
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"/>
118 <page string="Accounting" >
119 <separator string="Accounting" colspan="4"/>
120 <field name="acc_expense" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
121 <field name="acc_income" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
122 <separator string="Analytic" colspan="4"/>
123 <field name="journal_id"/>
124 <field name="journal_seller_id"/>
125 <field name="account_analytic_id"/>
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','<>','sale')]" nolabel="1" colspan="4"/>
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','<>','purchase')]" nolabel="1" colspan="4"/>
144 <!-- Auction Dates Search view -->
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"
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"/>
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"
170 help="Auction Date" domain="[]"
171 context="{'group_by':'auction1'}" />
177 <!-- Auction Dates Calendar View -->
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"/>
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>
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"/>
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"/>
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"/>
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"/>
265 <group colspan="2" col="1">
266 <field name="image" widget='image' nolabel="1"/>
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','<>','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"/>
288 <field name="ach_inv_id"/>
289 <field name="paid_ach"/>
290 <field name="is_ok"/>
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"/>
299 <form string="Bank Statement">
301 <field name="sequence"/>
303 <field name="partner_id"/>
304 <field name="account_id"/>
306 <field name="statement_id"/>
307 <field name="reconcile_id"/>
308 <field name="amount"/>
309 <field name="reconcile_amount"/>
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"/>
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">
329 <field name="lot_id"/>
330 <field name="auction_id"/>
331 <field name="price"/>
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"/>
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"/>
351 <field name="obj_desc" colspan="4" nolabel="1"/>
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"
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"/>
376 <group expand="0" string="Group By..." colspan="16">
377 <filter string="Buyer"
379 help="Buyer" domain="[]"
380 context="{'group_by':'ach_uid'}"/>
381 <separator orientation="vertical" />
382 <filter string="Auction"
384 help="Auction" domain="[]"
385 context="{'group_by':'auction_id'}"/>
386 <filter string="Inventory"
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'}"/>
401 <!-- Graph view for Auction Lots -->
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="+"/>
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>
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"/>
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"/>
439 <field name="tax_id" domain="[('domain','=','auction'),('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
440 <field name="transfer"/>
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"/>
450 <field name="obj_price"/>
451 <field name="vnd_lim"/>
452 <field name="lot_est1"/>
453 <field name="lot_est2"/>
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"/>
463 <field name="lot_type" select="1"/>
464 <field name="name2"/>
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','<>','sale')]"/>
475 <field name="product_id" domain="[('sale_ok','=',True)]"/>
476 <field name="state" readonly="1" colspan="4"/>
478 <page string="Photos">
479 <field name="image" colspan="4" widget="image"/>
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">
489 <field name="amount"/>
490 <field name="account" domain="[('type','=','income')]"/>
492 <form string="Deposit Costs">
494 <field name="amount"/>
495 <field name="account"/>
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">
511 <field name="partner_id"/>
512 <field name="date_dep"/>
513 <field name="method"/>
514 <field name="tax_id"/>
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">
527 <field name="partner_id"/>
528 <field name="method"/>
529 <field name="date_dep"/>
531 <group expand="0" string="Group By..." colspan="16">
532 <filter string="Seller"
534 help="Seller" domain="[]"
535 context="{'group_by':'partner_id'}"/>
536 <separator orientation="vertical" />
537 <filter string="Withdrawned method"
539 help="Withdrawned method" domain="[]"
540 context="{'group_by':'method'}"/>
541 <separator orientation="vertical" />
542 <filter string="Deposit Date"
544 help="Deposit Date" domain="[]"
545 context="{'group_by':'date_dep'}"/>
551 <!-- Auction Deposit Calendar View -->
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"/>
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"/>
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"/>
578 <!-- Bids Lines View -->
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">
586 <field name="bid_id"/>
587 <field name="price"/>
589 <field name="auction"/>
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">
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"/>
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">
615 <field name="name" select="1"/>
616 <field name="auction_id" select="1"/>
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"/>
626 <form string="Bids Lines" editable="top">
627 <field name="lot_id" domain="[('auction_id','=',parent.auction_id)]"/>
628 <field name="price"/>
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">
643 <field name="auction_id"/>
644 <field name="partner_id"/>
645 <field name="contact_tel"/>
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">
658 <field name="auction_id"/>
659 <field name="partner_id"/>
660 <field name="contact_tel"/>
662 <group expand="0" string="Group By..." colspan="16">
663 <filter string="Buyer"
665 help="Buyer" domain="[]"
666 context="{'group_by':'partner_id'}"/>
667 <separator orientation="vertical" />
668 <filter string="Auction"
670 help="Auction" domain="[]"
671 context="{'group_by':'auction_id'}"/>
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>
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"/>
685 <menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6"/>
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"/>