1 <?xml version="1.0" encoding="utf-8"?>
7 This menu item's purpose is to overwrite another one defined in
8 the base module in order to set new groups.
10 <menuitem name="Sales"
11 id="base.menu_base_partner"
12 groups="base.group_sale_salesman,base.group_sale_manager"/>
14 <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>
17 <record id="view_shop_form" model="ir.ui.view">
18 <field name="name">sale.shop</field>
19 <field name="model">sale.shop</field>
20 <field name="arch" type="xml">
21 <form string="Sales Shop" version="7.0">
22 <label for="name" class="oe_edit_only"/>
23 <h1><field name="name"/></h1>
26 <field name="payment_default_id"/>
27 <field domain="[('type','=','sale')]" name="pricelist_id" groups="product.group_sale_pricelist"/>
30 <field name="project_id" groups="analytic.group_analytic_accounting"/>
31 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
38 <record id="view_shop_tree" model="ir.ui.view">
39 <field name="name">sale.shop</field>
40 <field name="model">sale.shop</field>
41 <field name="arch" type="xml">
42 <tree string="Sales Shop">
44 <field name="pricelist_id" groups="product.group_sale_pricelist"/>
45 <field name="project_id" groups="analytic.group_analytic_accounting"/>
50 <record id="action_shop_form" model="ir.actions.act_window">
51 <field name="name">Shop</field>
52 <field name="type">ir.actions.act_window</field>
53 <field name="res_model">sale.shop</field>
54 <field name="view_type">form</field>
55 <field name="view_mode">tree,form</field>
56 <field name="view_id" ref="view_shop_tree"/>
57 <field name="help" type="html">
58 <p class="oe_view_nocontent_create">
59 Click to define a new sale shop.
61 Each quotation or sale order must be linked to a shop. The
62 shop also defines the warehouse from which the products will be
63 delivered for each particular sales.
69 <!-- Sale order Read/Unread actions -->
70 <record id="actions_server_sale_order_unread" model="ir.actions.server">
71 <field name="name">Mark unread</field>
72 <field name="condition">True</field>
73 <field name="type">ir.actions.server</field>
74 <field name="model_id" ref="model_sale_order"/>
75 <field name="state">code</field>
76 <field name="code">self.message_mark_as_unread(cr, uid, context.get('active_ids'), context=context)</field>
78 <record id="action_sale_order_unread" model="ir.values">
79 <field name="name">action_sale_order_unread</field>
80 <field name="action_id" ref="actions_server_sale_order_unread"/>
81 <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_sale_order_unread'))" />
82 <field name="key">action</field>
83 <field name="model_id" ref="model_sale_order" />
84 <field name="model">sale.order</field>
85 <field name="key2">client_action_multi</field>
88 <record id="actions_server_sale_order_read" model="ir.actions.server">
89 <field name="name">Mark read</field>
90 <field name="condition">True</field>
91 <field name="type">ir.actions.server</field>
92 <field name="model_id" ref="model_sale_order"/>
93 <field name="state">code</field>
94 <field name="code">self.message_mark_as_read(cr, uid, context.get('active_ids'), context=context)</field>
96 <record id="action_sale_order_read" model="ir.values">
97 <field name="name">action_sale_order_read</field>
98 <field name="action_id" ref="actions_server_sale_order_read"/>
99 <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_sale_order_read'))" />
100 <field name="key">action</field>
101 <field name="model_id" ref="model_sale_order" />
102 <field name="model">sale.order</field>
103 <field name="key2">client_action_multi</field>
106 <record id="view_sale_order_calendar" model="ir.ui.view">
107 <field name="name">sale.order.calendar</field>
108 <field name="model">sale.order</field>
109 <field name="arch" type="xml">
110 <calendar string="Sales Orders" color="state" date_start="date_order">
111 <field name="partner_id"/>
112 <field name="amount_total"/>
116 <record model="ir.ui.view" id="view_sale_order_graph">
117 <field name="name">sale.order.graph</field>
118 <field name="model">sale.order</field>
119 <field name="arch" type="xml">
120 <graph string="Sales Orders" type="bar">
121 <field name="partner_id"/>
122 <field name="amount_total" operator="+"/>
127 <record id="view_order_tree" model="ir.ui.view">
128 <field name="name">sale.order.tree</field>
129 <field name="model">sale.order</field>
130 <field name="priority">2</field>
131 <field name="arch" type="xml">
132 <tree string="Sales Orders" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')">
133 <field name="message_unread" invisible="1"/>
134 <field name="name" string="Order Number"/>
135 <field name="date_order"/>
136 <field name="partner_id"/>
137 <field name="user_id"/>
138 <field name="amount_total" sum="Total Tax Included"/>
139 <field name="state"/>
144 <record id="view_quotation_tree" model="ir.ui.view">
145 <field name="name">sale.order.tree</field>
146 <field name="model">sale.order</field>
147 <field name="priority">4</field>
148 <field name="arch" type="xml">
149 <tree string="Quotation" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')">
150 <field name="message_unread" invisible="1"/>
151 <field name="name" string="Quotation Number"/>
152 <field name="date_order"/>
153 <field name="partner_id"/>
154 <field name="user_id"/>
155 <field name="amount_total" sum="Total Tax Included"/>
156 <field name="state"/>
161 <record id="view_order_form" model="ir.ui.view">
162 <field name="name">sale.order.form</field>
163 <field name="model">sale.order</field>
164 <field name="arch" type="xml">
165 <form string="Sales Order" version="7.0">
167 <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice" groups="base.group_user"/>
168 <button name="invoice_corrected" states="invoice_except" string="Ignore Exception" groups="base.group_user"/>
169 <button name="action_quotation_send" string="Send by Mail" type="object" states="draft" class="oe_highlight" groups="base.group_user"/>
170 <button name="action_quotation_send" string="Send by Mail" type="object" states="sent" groups="base.group_user"/>
171 <button name="print_quotation" string="Print" type="object" states="draft" class="oe_highlight" groups="base.group_user"/>
172 <button name="print_quotation" string="Print" type="object" states="sent" groups="base.group_user"/>
173 <button name="action_button_confirm" states="draft" string="Confirm" type="object" groups="base.group_user"/>
174 <button name="action_button_confirm" states="sent" string="Confirm" class="oe_highlight" type="object" groups="base.group_user"/>
175 <button name="action_view_invoice" string="View Invoice" type="object" class="oe_highlight"
176 attrs="{'invisible': [('invoice_exists', '=', False)]}" groups="base.group_user"/>
177 <button name="%(action_view_sale_advance_payment_inv)d" string="Create Invoice"
178 type="action" states="manual" class="oe_highlight" groups="base.group_user"/>
179 <button name="cancel" states="draft,sent" string="Cancel" groups="base.group_user"/>
180 <button name="action_cancel" states="manual,progress" string="Cancel" type="object" groups="base.group_user"/>
181 <button name="invoice_cancel" states="invoice_except" string="Cancel" groups="base.group_user"/>
182 <field name="state" widget="statusbar" statusbar_visible="draft,sent,invoiced,done" statusbar_colors='{"invoice_except":"red","waiting_date":"blue"}'/>
186 <label string="Quotation " attrs="{'invisible': [('state','not in',('draft','sent'))]}"/>
187 <label string="Sale Order " attrs="{'invisible': [('state','in',('draft','sent'))]}"/>
188 <field name="name" class="oe_inline" readonly="1"/>
192 <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}'/>
193 <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>
194 <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>
195 <field name="project_id" context="{'partner_id':partner_id, 'pricelist_id':pricelist_id, 'default_name':name}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/>
198 <field name="date_order"/>
199 <field name="shop_id" groups="base.group_no_one" on_change="onchange_shop_id(shop_id, context)" widget="selection"/>
200 <field name="client_order_ref"/>
201 <field domain="[('type','=','sale')]" name="pricelist_id" groups="product.group_sale_pricelist" on_change="onchange_pricelist_id(pricelist_id,order_line)"/>
202 <field name="currency_id" invisible="1"/>
206 <page string="Order Lines">
207 <field name="order_line">
208 <form string="Sales Order Lines" version="7.0">
210 <button name="%(action_view_sale_order_line_make_invoice)d" states="confirmed" string="Invoice" type="action" icon="terp-document-new"/>
211 <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done" statusbar_colors='{"exception":"red","cancel":"red"}'/>
215 <field name="state" invisible="1" />
216 <field name="product_id"
217 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
218 groups="base.group_user"
219 on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
220 <label for="product_uom_qty"/>
223 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
224 name="product_uom_qty" class="oe_inline"
225 on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/>
226 <field name="product_uom" groups="product.group_uom" class="oe_inline oe_no_button"
228 on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, context)"/>
230 <label for="product_uos_qty" groups="product.group_uos"/>
231 <div groups="product.group_uos">
232 <field name="product_uos_qty" class="oe_inline"/>
233 <field name="product_uos" options='{"no_open": True}' class="oe_inline"/>
235 <field name="price_unit"/>
236 <label for="discount" groups="sale.group_discount_per_so_line"/>
237 <div groups="sale.group_discount_per_so_line">
238 <field name="discount" class="oe_inline"/> %%
242 <field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
244 <field name="th_weight"/>
245 <!-- we should put a config wizard for these two fields -->
246 <field name="address_allotment_id"/>
251 <div groups="base.group_no_one">
252 <label for="invoice_lines"/>
253 <field name="invoice_lines"/>
256 <tree string="Sales Order Lines" editable="bottom">
257 <field name="sequence" widget="handle"/>
258 <field name="state" invisible="1"/>
259 <field name="th_weight" invisible="1"/>
260 <field name="product_id"
261 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
262 groups="base.group_user"
263 on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
265 <field name="product_uom_qty"
266 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
267 on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/>
268 <field name="product_uom"
269 on_change="product_uom_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, False, parent.date_order, context)"
270 groups="product.group_uom" options='{"no_open": True}'/>
271 <field name="product_uos_qty" groups="product.group_uos" invisible="1"/>
272 <field name="product_uos" string="UoS" groups="product.group_uos" invisible="1"/>
273 <field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
274 <field name="price_unit"/>
275 <field name="discount" groups="sale.group_discount_per_so_line"/>
276 <field name="price_subtotal"/>
279 <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
280 <field name="amount_untaxed" widget='monetary' options="{'currency_field': 'currency_id'}"/>
281 <field name="amount_tax" widget='monetary' options="{'currency_field': 'currency_id'}"/>
282 <div class="oe_subtotal_footer_separator oe_inline">
283 <label for="amount_total" />
284 <button name="button_dummy"
285 states="draft" string="(update)" type="object" class="oe_edit_only oe_link"/>
287 <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
289 <div class="oe_clear"/>
290 <field name="note" class="oe_inline" placeholder="Terms and conditions..."/>
292 <page string="Other Information" groups="base.group_user">
294 <group name="sales_person" groups="base.group_user">
295 <field name="user_id"/>
296 <field groups="base.group_no_one" name="origin"/>
298 <group name="sale_pay">
299 <field name="payment_term" widget="selection"/>
300 <field name="fiscal_position" widget="selection"/>
301 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
304 <field name="invoiced"/>
305 <field name="invoice_exists" invisible="1"/>
309 <page string="History">
310 <separator string="Invoices"/>
311 <field name="invoice_ids" context="{'form_view_ref':'account.invoice_form'}">
312 <tree string="Invoices" colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel'">
313 <field name="date_invoice"/>
314 <field name="number"/>
315 <field name="partner_id" string="Customer"/>
316 <field name="user_id"/>
317 <field name="date_due"/>
318 <field name="amount_total"/>
319 <field name="state"/>
325 <div class="oe_chatter">
326 <field name="message_ids" widget="mail_thread"/>
327 <field name="message_follower_ids" widget="mail_followers"/>
333 <!-- inherited view to make the order lines list in the form non-editable
334 for the members of some usability groups -->
335 <record id="view_order_form_editable_list" model="ir.ui.view">
336 <field name="name">sale.order.form.editable.list</field>
337 <field name="model">sale.order</field>
338 <field name="inherit_id" ref="sale.view_order_form"/>
339 <field name="groups_id" eval="[(6, 0, [ref('product.group_uos'), ref('product.group_stock_packaging'), ref('sale.group_mrp_properties')])]"/>
340 <field name="arch" type="xml">
341 <xpath expr="//field[@name='order_line']/tree" position="attributes">
342 <attribute name="editable"/>
347 <record id="view_sales_order_filter" model="ir.ui.view">
348 <field name="name">sale.order.list.select</field>
349 <field name="model">sale.order</field>
350 <field name="arch" type="xml">
351 <search string="Search Sales Order">
352 <field name="name" string="Sales Order" filter_domain="['|',('name','ilike',self),('client_order_ref','ilike',self)]"/>
353 <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
355 <filter icon="terp-document-new" string="Quotations" name="draft" domain="[('state','in',('draft','sent'))]" help="Sales Order that haven't yet been confirmed"/>
356 <filter icon="terp-check" string="Sales" name="sales" domain="[('state','in',('manual','progress'))]"/>
357 <filter icon="terp-dolar_ok!" string="To Invoice" domain="[('state','=','manual')]" help="Sales Order ready to be invoiced"/>
358 <filter icon="terp-dolar_ok!" string="Done" domain="[('state','=','done')]" help="Sales Order done"/>
360 <filter string="My Sale Orders" domain="[('user_id','=',uid)]" help="My Sale Orders" icon="terp-personal" name="my_sale_orders_filter"/>
361 <field name="partner_id"/>
362 <field name="user_id"/>
363 <group expand="0" string="Group By...">
364 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
365 <filter string="Salesperson" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
366 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
367 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
373 <record id="action_order_form" model="ir.actions.act_window">
374 <field name="name">Sale Orders</field>
375 <field name="type">ir.actions.act_window</field>
376 <field name="res_model">sale.order</field>
377 <field name="view_type">form</field>
378 <field name="view_mode">tree,form,calendar,graph</field>
379 <field name="search_view_id" ref="view_sales_order_filter"/>
380 <field name="context">{'show_address': 1}</field>
381 <field name="domain">[('state','not in',('draft','sent','cancel'))]</field>
382 <field name="help" type="html">
383 <p class="oe_view_nocontent_create">
384 Click to create a quotation that can be converted into a sale
387 OpenERP will help you efficiently handle the complete sales flow:
388 quotation, sale order, delivery, invoicing and payment.
392 <menuitem action="action_order_form" id="menu_sale_order" parent="base.menu_sales" sequence="5" groups="base.group_sale_salesman,base.group_sale_manager"/>
394 <record id="action_order_tree2" model="ir.actions.act_window">
395 <field name="name">Sales in Exception</field>
396 <field name="type">ir.actions.act_window</field>
397 <field name="res_model">sale.order</field>
398 <field name="view_type">form</field>
399 <field name="view_mode">tree,form,calendar,graph</field>
400 <field name="domain">[('state','in',('shipping_except','invoice_except'))]</field>
401 <field name="filter" eval="True"/>
402 <field name="search_view_id" ref="view_sales_order_filter"/>
405 <record id="action_order_tree4" model="ir.actions.act_window">
406 <field name="name">Sales Order in Progress</field>
407 <field name="type">ir.actions.act_window</field>
408 <field name="res_model">sale.order</field>
409 <field name="view_type">form</field>
410 <field name="view_mode">tree,form,calendar,graph</field>
411 <field name="domain">[('state','in',('progress','waiting_date','manual'))]</field>
412 <field name="search_view_id" ref="view_sales_order_filter"/>
416 <record id="action_order_tree5" model="ir.actions.act_window">
417 <field name="name">Quotations</field>
418 <field name="type">ir.actions.act_window</field>
419 <field name="res_model">sale.order</field>
420 <field name="view_type">form</field>
421 <field name="view_id" ref="view_quotation_tree"/>
422 <field name="view_mode">tree,form,calendar,graph</field>
423 <field name="context">{'show_address': 1}</field>
424 <field name="domain">[('state','in',('draft','sent','cancel'))]</field>
425 <field name="search_view_id" ref="view_sales_order_filter"/>
426 <field name="help" type="html">
427 <p class="oe_view_nocontent_create">
428 Click to create a quotation, the first step of a new sale.
430 OpenERP will help you handle efficiently the complete sale flow:
431 from the quotation to the sale order, the
432 delivery, the invoicing and the payment collection.
434 The social feature helps you organize discussions on each sale
435 order, and allow your customers to keep track of the evolution
441 <menuitem id="menu_sale_quotations"
442 action="action_order_tree5" parent="base.menu_sales"
445 <record id="action_order_tree" model="ir.actions.act_window">
446 <field name="name">Old Quotations</field>
447 <field name="type">ir.actions.act_window</field>
448 <field name="res_model">sale.order</field>
449 <field name="view_type">form</field>
450 <field name="view_mode">tree,form,calendar,graph</field>
451 <field name="domain">[('state','=','draft'),('date_order','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
452 <field name="filter" eval="True"/>
453 <field name="search_view_id" ref="view_sales_order_filter"/>
457 <record id="view_order_line_tree" model="ir.ui.view">
458 <field name="name">sale.order.line.tree</field>
459 <field name="model">sale.order.line</field>
460 <field name="arch" type="xml">
461 <tree string="Sales Order Lines">
462 <field name="order_id"/>
463 <field name="order_partner_id"/>
465 <field name="product_uom_qty" string="Qty"/>
466 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
467 <field name="salesman_id"/>
468 <field name="price_subtotal" sum="Total"/>
469 <field name="state"/>
470 <field name="invoiced"/>
474 <record id="view_order_line_form2" model="ir.ui.view">
475 <field name="name">sale.order.line.form2</field>
476 <field name="model">sale.order.line</field>
477 <field name="arch" type="xml">
478 <form string="Sales Order Lines" version="7.0">
480 <button name="button_cancel" string="Cancel" type="object" states="confirmed,exception" groups="base.group_user"/>
481 <button name="%(action_view_sale_order_line_make_invoice)d" string="Create Invoice" type="action" attrs="{'invisible': ['|',('invoiced', '=', 1), ('state', 'not in', ('confirmed', 'draft'))]}" class="oe_highlight" groups="base.group_user"/>
482 <button name="button_done" string="Done" type="object" attrs="{'invisible': ['|',('invoiced', '=', 0), ('state', 'not in', ('confirmed', 'exception'))]}" class="oe_highlight" groups="base.group_user"/>
483 <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done" statusbar_colors='{"exception":"red","cancel":"red"}'/>
486 <label for="order_id" class="oe_edit_only"/>
487 <h1><field name="order_id" domain="[('state','!=','done')]"/></h1>
488 <label for="order_partner_id" class="oe_edit_only"/>
489 <h2><field name="order_partner_id"/></h2>
492 <field name="product_id"/>
493 <label for="product_uom_qty"/>
495 <field name="product_uom_qty" readonly="1" class="oe_inline"/>
496 <field name="product_uom" groups="product.group_uom" class="oe_inline"/>
500 <field name="price_unit"/>
501 <field name="discount" groups="sale.group_discount_per_so_line"/>
502 <field name="price_subtotal"/>
503 <field name="invoiced"/>
504 <field name="company_id" groups="base.group_multi_company" readonly="1"/>
514 <record id="view_sales_order_line_filter" model="ir.ui.view">
515 <field name="name">sale.order.line.select</field>
516 <field name="model">sale.order.line</field>
517 <field name="arch" type="xml">
518 <search string="Search Sales Order">
519 <filter icon="terp-dolar_ok!" string="To Invoice" domain="[('invoiced','<>', 1),('state','=','done')]" help="Sale Order Lines ready to be invoiced"/>
521 <filter string="My Sales Order Lines" icon="terp-personnal" domain="[('salesman_id','=',uid)]" help="Sales Order Lines related to a Sales Order of mine"/>
522 <field name="order_id"/>
523 <field name="order_partner_id"/>
524 <field name="product_id"/>
525 <field name="salesman_id"/>
526 <group expand="0" string="Group By...">
527 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
528 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'order_id'}"/>
529 <filter string="Salesperson" icon="terp-personal" domain="[]" context="{'group_by':'salesman_id'}"/>
530 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
536 <record id="view_sales_order_uninvoiced_line_filter" model="ir.ui.view">
537 <field name="name">sale.order.uninvoiced.line</field>
538 <field name="model">sale.order.line</field>
539 <field name="arch" type="xml">
540 <search string="Search Uninvoiced Lines">
541 <filter icon="terp-gtk-go-back-rtl" string="To Do" domain="[('state','=','confirmed')]" name="sale order" help="Confirmed sale order lines, not yet delivered"/>
542 <filter icon="terp-dialog-close" string="Done" domain="[('state','=','done')]" name="sale_order_done" help="Sale order lines done"/>
543 <filter icon="terp-accessories-archiver" string="Shipped" domain="[('state','=','done')]" name="unshipped" help="Sale Order Lines that are in 'done' state"/>
545 <filter icon="terp-dolar_ok!" string="Uninvoiced" name="uninvoiced" domain="[('invoiced','<>', 1),('state','<>','draft'),('state','<>','cancel')]" help="Sale Order Lines that are confirmed, done or in exception state and haven't yet been invoiced"/>
547 <filter string="My Sales Order Lines" icon="terp-personal" domain="[('salesman_id','=',uid)]" help="My Sales Order Lines"/>
548 <field name="order_id"/>
549 <field name="order_partner_id"/>
550 <field name="product_id"/>
551 <field name="salesman_id"/>
552 <group expand="0" string="Group By...">
553 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'order_id'}" help="Order reference"/>
554 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
555 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
561 <record id="action_order_line_tree2" model="ir.actions.act_window">
562 <field name="name">Order Lines to Invoice</field>
563 <field name="type">ir.actions.act_window</field>
564 <field name="res_model">sale.order.line</field>
565 <field name="view_type">form</field>
566 <field name="view_mode">tree,form</field>
567 <field name="search_view_id" ref="view_sales_order_uninvoiced_line_filter"/>
568 <field name="context">{"search_default_uninvoiced":1}</field>
569 <field name="filter" eval="True"/>
570 <field name="help" type="html">
572 Here is a list of each sales order line to be invoiced. You can
573 invoice sales orders partially, by lines of sales order. You do
574 not need this list if you invoice from the delivery orders or
575 if you invoice sales totally.
580 <record id="action_order_line_tree3" model="ir.actions.act_window">
581 <field name="name">Uninvoiced and Delivered Lines</field>
582 <field name="type">ir.actions.act_window</field>
583 <field name="res_model">sale.order.line</field>
584 <field name="view_type">form</field>
585 <field name="view_mode">tree,form</field>
586 <field name="domain">[('invoiced','<>', 1),('state','=','done')]</field>
587 <field name="filter" eval="True"/>
591 context="{'search_default_product_id': active_id, 'default_product_id': active_id}"
592 id="action_order_line_product_tree"
593 name="Sales Order Lines"
594 res_model="sale.order.line"
595 src_model="product.product"
596 groups="base.group_sale_salesman"/>
598 <menuitem id="base.menu_invoiced" name="Invoicing" parent="base.menu_base_partner" sequence="5"/>
599 <menuitem id="menu_invoicing_sales_order_lines" parent="base.menu_invoiced" action="action_order_line_tree2" sequence="10" groups="sale.group_invoice_so_lines"/>