2008-07-01 15:58:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2008-09-10 17:56:00 +00:00
<openerp >
2008-06-29 08:26:07 +00:00
<data >
2010-06-16 13:39:24 +00:00
<menuitem icon= "terp-partner" id= "base.menu_base_partner" name= "Sales" sequence= "0" groups= "sale.group_sale_user" />
2010-02-16 06:50:41 +00:00
<menuitem id= "base.menu_sales" name= "Sales" parent= "base.menu_base_partner" sequence= "1" />
2010-01-09 06:21:05 +00:00
2010-06-16 13:34:52 +00:00
<menuitem id= "base.menu_product" name= "Products" parent= "base.menu_base_partner" sequence= "9" />
2010-02-16 06:50:41 +00:00
<menuitem action= "product.product_normal_action" id= "product.menu_products" parent= "base.menu_product" sequence= "1" />
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_shop_form" model= "ir.ui.view" >
<field name= "name" > sale.shop</field>
<field name= "model" > sale.shop</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Sale Shop" >
<field name= "name" select= "1" />
2009-10-22 13:40:16 +00:00
<field name= "warehouse_id" required= "1" select= "1" widget= "selection" />
2010-06-09 13:22:53 +00:00
<field name= "company_id" widget= 'selection' />
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "Accounting" />
<field name= "payment_default_id" />
2010-04-09 08:22:51 +00:00
<field domain= "[('type','=','sale')]" name= "pricelist_id" select= "1" />
2008-07-01 15:58:58 +00:00
<field name= "project_id" select= "1" />
2008-06-29 08:26:07 +00:00
</form>
</field>
2008-06-20 11:49:23 +00:00
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_shop_tree" model= "ir.ui.view" >
<field name= "name" > sale.shop</field>
<field name= "model" > sale.shop</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Sale Shop" >
<field name= "name" />
2010-03-17 14:24:01 +00:00
<field name= "warehouse_id" />
2010-04-09 08:22:51 +00:00
<field name= "pricelist_id" />
2008-07-01 15:58:58 +00:00
<field name= "project_id" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_shop_form" model= "ir.actions.act_window" >
<field name= "name" > Shop</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.shop</field>
<field name= "view_type" > form</field>
2008-09-23 20:56:51 +00:00
<field name= "view_mode" > tree,form</field>
2008-07-01 15:58:58 +00:00
<field name= "view_id" ref= "view_shop_tree" />
2008-06-29 08:26:07 +00:00
</record>
2010-05-27 09:26:52 +00:00
2010-04-16 09:16:25 +00:00
<menuitem action= "action_shop_form" id= "menu_action_shop_form"
2010-05-27 09:26:52 +00:00
parent="product.prod_config_main" sequence="0"
2010-04-16 09:16:25 +00:00
groups="base.group_extended"/>
2008-09-29 08:49:12 +00:00
2008-09-16 10:37:53 +00:00
<record id= "view_sale_order_calendar" model= "ir.ui.view" >
2008-09-09 12:24:44 +00:00
<field name= "name" > sale.order.calendar</field>
<field name= "model" > sale.order</field>
<field name= "type" > calendar</field>
<field name= "arch" type= "xml" >
<calendar string= "Sales orders" color= "state" date_start= "date_order" >
<field name= "partner_id" />
<field name= "amount_total" />
</calendar>
</field>
</record>
2008-09-16 10:37:53 +00:00
<record model= "ir.ui.view" id= "view_sale_order_graph" >
<field name= "name" > sale.order.graph</field>
<field name= "model" > sale.order</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Sales orders" type= "bar" >
<field name= "partner_id" />
<field name= "amount_total" operator= "+" />
</graph>
</field>
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_order_tree" model= "ir.ui.view" >
<field name= "name" > sale.order.tree</field>
<field name= "model" > sale.order</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Sales orders" >
2010-04-16 09:16:25 +00:00
<field name= "date_order" />
<field name= "name" />
2008-07-01 15:58:58 +00:00
<field name= "partner_id" />
<field name= "partner_shipping_id" />
2010-03-17 14:24:01 +00:00
<field name= "user_id" />
2008-08-24 23:23:45 +00:00
<field name= "picked_rate" widget= "progressbar" />
<field name= "invoiced_rate" widget= "progressbar" />
2010-02-09 07:34:15 +00:00
<field name= "amount_untaxed" sum= "Total Untaxed amount" />
<field name= "amount_total" sum= "Total amount" />
2008-07-01 15:58:58 +00:00
<field name= "state" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-07 09:41:01 +00:00
2010-06-12 22:33:23 +00:00
<act_window name= "Partial Invoice"
res_model="sale.advance.payment.inv"
src_model="sale.order"
view_mode="form"
target="new"
key2="client_action_multi"
2010-06-14 04:45:10 +00:00
id="action_view_sale_advance_payment_inv"/>
2010-06-12 22:33:23 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_order_form" model= "ir.ui.view" >
<field name= "name" > sale.order.form</field>
<field name= "model" > sale.order</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Sales order" >
2008-09-16 10:37:53 +00:00
<group col= "6" colspan= "4" >
2010-04-29 08:08:26 +00:00
<field name= "name" />
<field name= "date_order" />
2010-06-21 21:20:55 +00:00
<field name= "shipped" />
<field name= "client_order_ref" />
<field name= "shop_id" on_change= "onchange_shop_id(shop_id)" widget= "selection" />
2010-04-15 08:55:49 +00:00
<field name= "invoiced" />
2008-09-16 10:37:53 +00:00
</group>
2010-06-03 09:47:02 +00:00
<notebook colspan= "5" >
2008-07-01 15:58:58 +00:00
<page string= "Sale Order" >
2010-04-29 08:08:26 +00:00
<field name= "partner_id" on_change= "onchange_partner_id(partner_id)" required= "1" />
2008-07-01 15:58:58 +00:00
<field domain= "[('partner_id','=',partner_id)]" name= "partner_order_id" />
<field domain= "[('partner_id','=',partner_id)]" name= "partner_invoice_id" />
<field domain= "[('partner_id','=',partner_id)]" name= "partner_shipping_id" />
2010-06-13 21:16:36 +00:00
<field domain= "[('type','=','sale')]" name= "pricelist_id" groups= "base.group_extended" />
2010-04-23 07:24:58 +00:00
<field name= "project_id"
2010-04-15 08:55:49 +00:00
context="{'partner_id':partner_id, 'contact_id':partner_order_id, 'pricelist_id':pricelist_id, 'default_name':name}"
groups="base.group_extended"/>
2008-06-29 08:26:07 +00:00
<newline />
2009-09-16 14:56:33 +00:00
<field colspan= "4" mode= "tree,form,graph" name= "order_line" nolabel= "1" widget= "one2many_list" >
2008-07-01 15:58:58 +00:00
<form string= "Sale Order Lines" >
2008-06-29 08:26:07 +00:00
<notebook >
2008-07-01 15:58:58 +00:00
<page string= "Order Line" >
2008-09-07 23:24:39 +00:00
<field colspan= "4"
context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
2008-09-29 08:49:12 +00:00
name="product_id"
2009-01-20 06:04:07 +00:00
on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order, product_packaging, parent.fiscal_position)"
2010-04-29 08:08:26 +00:00
/>
2008-09-07 23:24:39 +00:00
<field
2008-09-29 08:49:12 +00:00
context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
name="product_uom_qty"
2009-04-06 09:31:07 +00:00
on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order, product_packaging, parent.fiscal_position, True)"
2010-04-29 08:08:26 +00:00
/>
2010-06-08 12:52:08 +00:00
<field groups= "product.group_uos" name= "product_uos_qty" />
2008-09-29 08:49:12 +00:00
<field name= "product_uom"
2010-06-05 22:45:14 +00:00
on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"/>
2008-09-07 23:24:39 +00:00
<field
2008-09-29 08:49:12 +00:00
name="product_packaging"
context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
2009-01-20 06:04:07 +00:00
on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order, product_packaging, parent.fiscal_position)"
2008-09-07 23:24:39 +00:00
domain="[('product_id','=',product_id)]"
groups="base.group_extended"/>
2010-01-12 05:32:48 +00:00
2009-12-23 16:15:54 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2010-04-15 08:55:49 +00:00
<field colspan= "4" name= "name" />
<field name= "price_unit" />
2008-07-01 15:58:58 +00:00
<field name= "discount" />
2010-04-15 08:55:49 +00:00
<field name= "type" groups= "base.group_extended" />
<field name= "delay" groups= "base.group_extended" />
2008-06-29 08:26:07 +00:00
<newline />
2009-01-22 23:15:05 +00:00
<field colspan= "4" name= "tax_id" domain= "[('parent_id','=',False),('type_tax_use','<>','purchase')]" />
2010-04-18 19:11:09 +00:00
<group colspan= "4" col= "5" groups= "base.group_extended" >
<separator colspan= "5" string= "States" />
<field name= "state" />
2010-04-15 08:55:49 +00:00
<field name= "invoiced" />
2010-03-10 08:56:56 +00:00
<button colspan= "1"
2010-03-16 18:02:06 +00:00
name="%(action_view_sale_order_line_make_invoice)d"
states="confirmed"
string="Make Invoice"
type="action"
icon="gtk-print" />
2008-06-29 08:26:07 +00:00
</group>
</page>
2008-07-01 15:58:58 +00:00
<page groups= "base.group_extended" string= "Extra Info" >
2009-07-16 14:42:31 +00:00
<field name= "th_weight" />
2010-04-15 08:55:49 +00:00
<field name= "address_allotment_id" />
2010-04-29 13:30:07 +00:00
<!-- <separator colspan="4" string="Properties"/> -->
<!-- <field colspan="4" name="property_ids" nolabel="1"/> -->
2008-06-29 08:26:07 +00:00
</page>
2008-07-01 15:58:58 +00:00
<page string= "Notes" >
<field colspan= "4" name= "notes" nolabel= "1" />
2008-06-29 08:26:07 +00:00
</page>
2008-09-16 10:37:53 +00:00
<page string= "History" groups= "base.group_extended" >
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "Invoice Lines" />
<field colspan= "4" name= "invoice_lines" nolabel= "1" />
<separator colspan= "4" string= "Stock Moves" />
2008-09-16 10:37:53 +00:00
<field colspan= "4" name= "move_ids" nolabel= "1" widget= "many2many" />
2008-06-29 08:26:07 +00:00
</page>
</notebook>
</form>
2008-07-01 15:58:58 +00:00
<tree string= "Sales order lines" >
<field colspan= "4" name= "name" />
<field name= "product_uom_qty" string= "Qty" />
<field name= "product_uom" string= "UoM" />
<field name= "discount" />
<field name= "price_unit" />
<field name= "price_subtotal" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
<newline />
2010-06-12 18:36:08 +00:00
<group col= "13" colspan= "10" >
2008-07-01 15:58:58 +00:00
<field name= "amount_untaxed" sum= "Untaxed amount" />
<field name= "amount_tax" />
2010-05-11 13:42:34 +00:00
<field name= "amount_total" />
2010-06-14 10:28:26 +00:00
<button name= "button_dummy" states= "draft" string= "" type= "object" icon= "gtk-execute" />
2010-06-12 18:36:08 +00:00
<button name= "%(action_view_sale_advance_payment_inv)d" string= "Deposit" type= "action" icon= "gtk-execute" />
2008-06-29 08:26:07 +00:00
</group>
2008-07-01 15:58:58 +00:00
<group col= "13" colspan= "4" >
2010-04-15 08:55:49 +00:00
<field name= "state" />
2009-09-24 10:46:21 +00:00
<button name= "order_confirm" states= "draft" string= "Confirm Order" icon= "gtk-apply" />
<button name= "invoice_recreate" states= "invoice_except" string= "Recreate Invoice" icon= "gtk-print" />
<button name= "invoice_corrected" states= "invoice_except" string= "Invoice Corrected" icon= "gtk-apply" />
2010-04-09 07:14:08 +00:00
<button name= "ship_recreate" states= "shipping_except" string= "Recreate Procurement" icon= "gtk-ok" />
<button name= "ship_corrected" states= "shipping_except" string= "Procurement Corrected" icon= "gtk-apply" />
2009-09-24 10:46:21 +00:00
<button name= "manual_invoice" states= "manual" string= "Create Invoice" icon= "gtk-print" />
2009-01-28 15:14:06 +00:00
<button name= "ship_cancel" states= "shipping_except" string= "Cancel Order" icon= "gtk-cancel" />
<button name= "action_cancel_draft" states= "cancel" string= "Set to Draft" type= "object" icon= "gtk-convert" />
<button name= "action_cancel" states= "manual,progress" string= "Cancel Order" type= "object" icon= "gtk-cancel" />
<button name= "cancel" states= "draft" string= "Cancel Order" icon= "gtk-cancel" />
<button name= "invoice_cancel" states= "invoice_except" string= "Cancel Order" icon= "gtk-cancel" />
2008-06-29 08:26:07 +00:00
</group>
</page>
2008-07-01 15:58:58 +00:00
<page string= "Other data" >
2010-04-18 19:11:09 +00:00
<group colspan= "2" col= "2" groups= "base.group_extended" name= "logistic" >
2010-03-03 13:58:10 +00:00
<separator string= "Logistic" colspan= "2" />
2010-04-15 09:38:45 +00:00
<field name= "incoterm" />
<field name= "picking_policy" required= "True" />
2010-03-03 13:58:10 +00:00
<field name= "order_policy" on_change= "shipping_policy_change(order_policy)" />
2010-04-15 09:38:45 +00:00
<field name= "invoice_quantity" attrs= "{'readonly':[('order_policy','=','prepaid'),('order_policy','=','picking')]}" />
2010-03-03 13:58:10 +00:00
</group>
<group colspan= "2" col= "2" >
<separator string= "References" colspan= "2" />
<field name= "user_id" />
<field groups= "base.group_extended" name= "origin" />
</group>
2010-04-15 08:55:49 +00:00
<group colspan= "2" col= "2" groups= "base.group_extended" >
2010-03-03 13:58:10 +00:00
<separator string= "Conditions" colspan= "2" />
<field name= "payment_term" widget= "selection" />
2010-04-15 08:55:49 +00:00
<field name= "fiscal_position" widget= "selection" />
2010-05-13 13:29:23 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
2010-03-03 13:58:10 +00:00
</group>
2010-04-15 08:55:49 +00:00
<group colspan= "2" col= "2" groups= "base.group_extended" >
2010-03-03 13:58:10 +00:00
<separator string= "Dates" colspan= "2" />
2010-03-18 12:01:47 +00:00
<field name= "create_date" widget= "datetime" />
2010-03-03 13:58:10 +00:00
<field name= "date_confirm" />
</group>
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "Notes" />
<field colspan= "4" name= "note" nolabel= "1" />
2008-06-29 08:26:07 +00:00
</page>
2010-04-15 08:55:49 +00:00
<page string= "History" groups= "base.group_extended" >
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "Related invoices" />
2010-05-12 11:50:22 +00:00
<field colspan= "4" name= "invoice_ids" nolabel= "1" context= "{'form_view_ref':'account.invoice_form'}" />
2008-07-01 15:58:58 +00:00
<field colspan= "4" name= "picking_ids" nolabel= "1" />
2008-06-29 08:26:07 +00:00
</page>
</notebook>
</form>
</field>
</record>
2009-11-24 10:48:58 +00:00
2009-09-24 10:46:21 +00:00
<record id= "view_sales_order_filter" model= "ir.ui.view" >
<field name= "name" > sale.order.list.select</field>
<field name= "model" > sale.order</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Sales Order" >
2010-06-02 05:37:16 +00:00
<filter icon= "terp-document-new" string= "Quotations" domain= "[('state','=','draft')]" />
2010-06-21 21:20:55 +00:00
<filter icon= "terp-check" string= "Sales" domain= "[('state','in',('manual','progress'))]" />
<separator orientation= "vertical" />
<filter icon= "terp-gtk-go-back-rtl" string= "To Invoice" domain= "[('state','=','manual')]" />
2010-02-19 17:34:07 +00:00
<separator orientation= "vertical" />
<field name= "name" select= "1" />
<field name= "partner_id" select= "1" />
2010-06-12 17:49:33 +00:00
<field name= "user_id" select= "1" />
2010-02-19 17:34:07 +00:00
<field name= "date_order" select= "1" string= "Order date" />
<newline />
2010-06-02 07:00:38 +00:00
<group expand= "0" string= "Group By..." colspan= "11" col= "11" groups= "base.group_extended" >
2010-06-02 05:37:16 +00:00
<filter string= "Customer" icon= "terp-personal" domain= "[]" context= "{'group_by':'partner_id'}" />
<filter string= "Salesman" icon= "terp-personal" domain= "[]" context= "{'group_by':'user_id'}" />
2010-05-19 15:59:23 +00:00
<separator orientation= "vertical" />
2010-06-02 05:37:16 +00:00
<filter string= "Order Date" icon= "terp-go-month" domain= "[]" context= "{'group_by':'date_order'}" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-02-19 17:34:07 +00:00
</group>
2009-09-24 10:46:21 +00:00
</search>
</field>
</record>
2009-11-24 10:48:58 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_order_form" model= "ir.actions.act_window" >
2008-07-01 19:20:40 +00:00
<field name= "name" > Sales Orders</field>
2008-07-01 15:58:58 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order</field>
<field name= "view_type" > form</field>
2008-09-23 20:56:51 +00:00
<field name= "view_mode" > tree,form,calendar,graph</field>
2009-11-24 10:48:58 +00:00
<field name= "search_view_id" ref= "view_sales_order_filter" />
2008-06-29 08:26:07 +00:00
</record>
2010-01-17 05:57:34 +00:00
<menuitem action= "action_order_form" id= "menu_sale_order" parent= "base.menu_sales" sequence= "3" />
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_order_tree2" model= "ir.actions.act_window" >
<field name= "name" > Sales in Exception</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order</field>
<field name= "view_type" > form</field>
2008-09-09 12:24:44 +00:00
<field name= "view_mode" > tree,form,calendar,graph</field>
2009-01-16 19:31:34 +00:00
<field name= "domain" > [('state','in',('shipping_except','invoice_except'))]</field>
2009-09-24 10:46:21 +00:00
<field name= "filter" eval= "True" />
2009-11-24 10:48:58 +00:00
<field name= "search_view_id" ref= "view_sales_order_filter" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_order_tree4" model= "ir.actions.act_window" >
<field name= "name" > Sales Order in Progress</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order</field>
<field name= "view_type" > form</field>
2008-09-09 12:24:44 +00:00
<field name= "view_mode" > tree,form,calendar,graph</field>
2008-07-01 15:58:58 +00:00
<field name= "domain" > [('state','in',('progress','waiting_date','manual'))]</field>
2010-01-09 06:21:05 +00:00
<field name= "search_view_id" ref= "view_sales_order_filter" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_order_tree5" model= "ir.actions.act_window" >
<field name= "name" > All Quotations</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order</field>
<field name= "view_type" > form</field>
2008-09-09 12:24:44 +00:00
<field name= "view_mode" > tree,form,calendar,graph</field>
2008-07-01 15:58:58 +00:00
<field name= "domain" > [('state','=','draft')]</field>
2010-01-09 06:21:05 +00:00
<field name= "search_view_id" ref= "view_sales_order_filter" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2010-02-16 06:50:41 +00:00
<record id= "action_order_tree" model= "ir.actions.act_window" >
2009-10-22 14:01:58 +00:00
<field name= "name" > Old Quotations</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form,calendar,graph</field>
<field name= "domain" > [('state','=','draft'),('date_order','< ',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
<field name= "filter" eval= "True" />
2009-11-24 10:48:58 +00:00
<field name= "search_view_id" ref= "view_sales_order_filter" />
2009-10-22 14:01:58 +00:00
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_order_line_graph" model= "ir.ui.view" >
<field name= "name" > sale.order.line.graph</field>
<field name= "model" > sale.order.line</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Sales order lines" >
<field name= "product_id" />
2008-11-22 16:14:53 +00:00
<field name= "price_subtotal" operator= "+" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_order_line_tree" model= "ir.ui.view" >
<field name= "name" > sale.order.line.tree</field>
<field name= "model" > sale.order.line</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Sales order lines" >
<field name= "order_id" />
2008-10-24 13:02:17 +00:00
<field name= "order_partner_id" />
2008-07-01 15:58:58 +00:00
<field name= "product_id" />
<field name= "product_uom_qty" string= "Qty" />
<field name= "product_uom" string= "UoM" />
2010-04-18 15:32:44 +00:00
<field name= "salesman_id" />
2008-07-01 15:58:58 +00:00
<field name= "price_subtotal" />
2009-07-16 14:42:31 +00:00
<field name= "th_weight" />
2008-10-24 13:02:17 +00:00
<field name= "state" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_order_line_form2" model= "ir.ui.view" >
<field name= "name" > sale.order.line.form2</field>
<field name= "model" > sale.order.line</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Sales Order Lines" >
2008-06-29 08:26:07 +00:00
<notebook >
2008-07-01 15:58:58 +00:00
<page string= "Order Lines" >
2010-04-15 08:55:49 +00:00
<separator colspan= "4" string= "General Information" />
2010-04-29 08:08:26 +00:00
<field name= "order_id" />
<field name= "order_partner_id" readonly= "1" invisible= "1" />
2010-04-15 08:55:49 +00:00
<field name= "product_uom_qty" readonly= "1" />
2010-06-08 12:52:08 +00:00
<field groups= "product.group_uos" name= "product_uos_qty" />
2009-10-08 10:27:57 +00:00
<field name= "product_uom" />
2010-04-29 08:08:26 +00:00
<field name= "product_id" readonly= "1" />
2010-04-15 08:55:49 +00:00
<field name= "invoiced" />
2009-12-23 16:15:54 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "Manual Designation" />
2010-04-15 08:55:49 +00:00
<field colspan= "4" name= "name" />
<field name= "price_unit" />
2008-07-01 15:58:58 +00:00
<field name= "discount" />
2010-04-15 08:55:49 +00:00
<field name= "type" groups= "base.group_extended" />
<field name= "delay" groups= "base.group_extended" />
2008-07-01 15:58:58 +00:00
<field name= "price_subtotal" />
2009-07-16 14:42:31 +00:00
<field name= "th_weight" />
2010-05-25 10:38:59 +00:00
<separator colspan= "4" string= "Taxes" />
<field colspan= "4" name= "tax_id" domain= "[('parent_id','=',False),('type_tax_use','<>','purchase')]" nolabel= "1" />
2008-07-01 15:58:58 +00:00
<separator colspan= "4" string= "States" />
2010-04-15 08:55:49 +00:00
<field name= "state" />
2010-05-14 11:33:09 +00:00
<button colspan= "1"
name="%(action_view_sale_order_line_make_invoice)d"
string="Make Invoice"
type="action"
icon="gtk-print" />
2008-07-01 15:58:58 +00:00
<group col= "2" colspan= "2" >
2010-03-10 08:56:56 +00:00
<button name= "button_done"
2010-04-15 08:55:49 +00:00
states="confirmed,exception"
string="Done" type="object"
icon="gtk-jump-to" />
2010-03-10 08:56:56 +00:00
<button name= "button_cancel"
2010-04-15 08:55:49 +00:00
states="confirmed,exception"
string="Cancel" type="object"
icon="gtk-cancel" />
2008-06-29 08:26:07 +00:00
</group>
</page>
2010-04-29 13:30:07 +00:00
<!-- <page string="Properties" groups="base.group_extended"> -->
<!-- <field name="property_ids" nolabel="1"/> -->
<!-- </page> -->
2010-04-15 08:55:49 +00:00
<page string= "Invoice Lines" groups= "base.group_extended" >
2008-07-01 15:58:58 +00:00
<field colspan= "4" name= "invoice_lines" nolabel= "1" />
2008-06-29 08:26:07 +00:00
</page>
2010-05-25 10:38:59 +00:00
<page string= "Notes" >
<field colspan= "4" name= "notes" nolabel= "1" />
</page>
2008-06-29 08:26:07 +00:00
</notebook>
</form>
</field>
</record>
2008-07-07 09:41:01 +00:00
2009-11-24 10:48:58 +00:00
<record id= "view_sales_order_line_filter" model= "ir.ui.view" >
2009-10-22 14:01:58 +00:00
<field name= "name" > sale.order.line.select</field>
<field name= "model" > sale.order.line</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Sales Order" >
2010-06-02 05:37:16 +00:00
<filter icon= "terp-gtk-go-back-rtl" string= "To Invoice" domain= "[('invoiced','<>', 1),('state','=','done')]" separator= "1" />
2010-02-19 17:34:07 +00:00
<separator orientation= "vertical" />
2010-04-29 08:08:26 +00:00
<field name= "order_id" />
<field name= "order_partner_id" />
<field name= "product_id" />
2010-06-12 17:49:33 +00:00
<field name= "salesman_id" >
2010-06-02 05:37:16 +00:00
<filter icon= "terp-dolar" domain= "[('salesman_id','=',uid)]" help= "My Sale Order Lines" />
<filter icon= "terp-personal+" domain= "[('salesman_id','child_of',[uid])]" help= "My Departments Sale Order Lines" />
2010-02-19 17:34:07 +00:00
</field>
<newline />
2010-03-01 21:28:50 +00:00
<group expand= "context.get('report',False)" string= "Group By..." colspan= "9" col= "8" >
2010-06-02 05:37:16 +00:00
<filter string= "Product" icon= "terp-accessories-archiver" domain= "[]" context= "{'group_by':'product_id'}" />
2010-02-16 09:54:45 +00:00
<filter string= "Order" icon= "terp-sale" domain= "[]" context= "{'group_by':'order_id'}" />
2010-06-02 05:37:16 +00:00
<filter string= "Salesman" icon= "terp-personal" domain= "[]" context= "{'group_by':'salesman_id'}" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2009-11-24 10:48:58 +00:00
</group>
</search>
</field>
</record>
2008-07-07 09:41:01 +00:00
2010-03-03 10:21:22 +00:00
<record id= "view_sales_order_uninvoiced_line_filter" model= "ir.ui.view" >
<field name= "name" > sale.order.uninvoiced.line</field>
<field name= "model" > sale.order.line</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Uninvoiced Lines" >
2010-06-02 05:37:16 +00:00
<filter icon= "terp-accessories-archiver" string= "Shipped"
2010-03-17 14:24:01 +00:00
domain="[('state','=','done')]"
2010-04-18 15:32:44 +00:00
name="unshipped"
2010-05-25 10:38:59 +00:00
/>
2010-06-02 05:37:16 +00:00
<filter icon= "terp-dolar_ok!" string= "Uninvoiced" name= "uninvoiced"
2010-05-25 10:38:59 +00:00
domain="[('invoiced','< > ', 1),('state','< > ','draft'),('state','< > ','cancel')]"
/>
2010-06-02 05:37:16 +00:00
<filter icon= "terp-dolar" string= "Sale Order"
2010-05-25 10:38:59 +00:00
domain="[('state','=','confirmed')]"
name="sale order"
/>
2010-03-17 14:24:01 +00:00
<separator orientation= "vertical" />
2010-04-29 08:08:26 +00:00
<field name= "order_id" />
<field name= "order_partner_id" />
<field name= "product_id" />
<field name= "state" />
2010-03-03 10:21:22 +00:00
<newline />
2010-06-02 07:00:38 +00:00
<group expand= "0" string= "Group By..." colspan= "9" col= "8" >
2010-06-02 05:37:16 +00:00
<filter string= "Product" icon= "terp-accessories-archiver" domain= "[]" context= "{'group_by':'product_id'}" />
<filter string= "Order" icon= "terp-gtk-jump-to-rtl" domain= "[]" context= "{'group_by':'order_id'}" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-03-03 10:21:22 +00:00
</group>
</search>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "action_order_line_tree2" model= "ir.actions.act_window" >
2010-04-18 15:32:44 +00:00
<field name= "name" > Lines to Invoice</field>
2008-07-01 15:58:58 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order.line</field>
<field name= "view_type" > form</field>
2008-09-09 12:24:44 +00:00
<field name= "view_mode" > tree,form,graph</field>
2010-03-03 10:21:22 +00:00
<field name= "search_view_id" ref= "view_sales_order_uninvoiced_line_filter" />
2009-11-24 10:48:58 +00:00
<field name= "filter" eval= "True" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_order_line_tree3" model= "ir.actions.act_window" >
<field name= "name" > Uninvoiced and Delivered Lines</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.order.line</field>
<field name= "view_type" > form</field>
2008-09-09 12:24:44 +00:00
<field name= "view_mode" > tree,form,graph</field>
2008-07-01 15:58:58 +00:00
<field name= "domain" > [('invoiced','< > ', 1),('state','=','done')]</field>
2009-11-24 10:48:58 +00:00
<field name= "filter" eval= "True" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<act_window context= "{'partner_id': active_id}" domain= "[('partner_id', '=', active_id)]" id= "act_res_partner_2_sale_order" name= "Sales" res_model= "sale.order" src_model= "res.partner" />
2008-07-07 09:41:01 +00:00
2010-05-05 14:14:09 +00:00
<act_window domain= "[('product_id','=',active_id)]" id= "action_order_line_product_tree" name= "Product sales" res_model= "sale.order.line" src_model= "product.product" groups= "base.group_extended" />
2008-07-07 09:41:01 +00:00
2010-06-16 13:34:52 +00:00
<menuitem id= "menu_invoiced" name= "Billing" parent= "base.menu_base_partner" sequence= "5" />
2010-02-16 06:50:41 +00:00
<menuitem action= "action_order_line_tree2" id= "menu_invoicing_sales_order_lines" parent= "menu_invoiced" sequence= "2" />
2008-06-29 08:26:07 +00:00
<!-- configartion view -->
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_config_picking_policy" model= "ir.ui.view" >
<field name= "name" > Configure Picking Policy for Sale Order </field>
<field name= "model" > sale.config.picking_policy</field>
<field name= "type" > form</field>
2009-12-15 15:55:52 +00:00
<field name= "inherit_id" ref= "base.res_config_view_base" />
2008-07-01 15:58:58 +00:00
<field name= "arch" type= "xml" >
2009-12-15 15:55:52 +00:00
<data >
2010-01-22 15:34:37 +00:00
<form position= "attributes" >
<attribute name= "string" > Sales Configuration</attribute>
</form>
2010-04-30 09:11:25 +00:00
<separator string= "title" position= "attributes" >
2010-06-12 17:49:33 +00:00
<attribute name= "string"
2010-04-30 09:11:25 +00:00
>Configure Sale Order Logistic</attribute>
2010-06-12 17:49:33 +00:00
</separator>
<xpath expr= "//label[@string='description']" position= "attributes" >
<attribute name= "string" > Setup your sales workflow and default values.</attribute>
</xpath>
2010-04-30 09:11:25 +00:00
<xpath expr= '//separator[@string="vsep"]' position= 'attributes' >
2010-06-12 17:49:33 +00:00
<attribute name= 'rowspan' > 15</attribute>
<attribute name= 'string' > </attribute>
</xpath>
2009-12-15 15:55:52 +00:00
<group string= "res_config_contents" position= "replace" >
2010-04-18 19:11:09 +00:00
<field name= "picking_policy" groups= "base.group_extended" />
2009-12-15 15:55:52 +00:00
<newline />
<field name= "order_policy" />
<newline />
<field name= "step" />
</group>
2009-12-21 15:29:25 +00:00
<xpath expr= '//button[@name="action_skip"]' position= 'replace' />
2009-12-15 15:55:52 +00:00
</data>
2008-06-29 08:26:07 +00:00
</field>
</record>
2008-07-07 09:41:01 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_config_picking_policy" model= "ir.actions.act_window" >
<field name= "name" > Configure Picking Policy for Sale Order</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > sale.config.picking_policy</field>
2009-12-15 15:55:52 +00:00
<field name= "view_id" ref= "view_config_picking_policy" />
2008-07-01 15:58:58 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > form</field>
<field name= "target" > new</field>
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-06-29 08:26:07 +00:00
<!-- register configuration wizard -->
2008-09-29 08:49:12 +00:00
<record id= "config_wizard_step_sale_picking_policy" model= "ir.actions.todo" >
2008-07-01 15:58:58 +00:00
<field name= "action_id" ref= "action_config_picking_policy" />
2010-04-28 07:11:26 +00:00
<field name= "groups_id" eval= "[(6,0,[ref('base.group_extended')])]" />
2008-06-29 08:26:07 +00:00
</record>
2008-07-07 09:41:01 +00:00
2008-06-29 08:26:07 +00:00
</data>
2008-09-10 17:56:00 +00:00
</openerp>