Better demo data for sale dashboard
bzr revid: pinky-51bc415441a4039064e9aa70473597fbfdae32da
This commit is contained in:
parent
7a59f88bb8
commit
3f8a1c3b6f
|
@ -14,19 +14,37 @@
|
|||
<hpaned position="100">
|
||||
<child1>
|
||||
<action
|
||||
string="Your open request quotation"
|
||||
string="Your open quotations"
|
||||
name="%(sale.action_order_tree10)d"
|
||||
colspan="3"
|
||||
height="200"
|
||||
width="510"/>
|
||||
<action string="Top ten sales of the month" name="%(report_sale.action_order_sale_list)d" colspan="3"/>
|
||||
<action string="Sales of the month" name="%(sale.action_order_tree5)d" colspan="3"/>
|
||||
<action string="Top ten sales of the month"
|
||||
name="%(report_sale.action_order_sale_list)d"
|
||||
colspan="3"/>
|
||||
<action
|
||||
string="Cases statistics"
|
||||
name="%(report_crm.action_report_crm_case_user_tree_month_my)d"
|
||||
colspan="3"/>
|
||||
</child1>
|
||||
|
||||
<child2>
|
||||
<action string="Sales by Category of the month" name="%(report_sale.action_order_category_tree_all)d"
|
||||
<button
|
||||
string="Menu"
|
||||
name="%(base.action_menu_admin)d"
|
||||
icon="gtk-ok"
|
||||
type="action"
|
||||
colspan="4"/>
|
||||
|
||||
<action
|
||||
string="Sales of the month"
|
||||
name="%(report_sale.action_order_category_tree_all)d"
|
||||
view_mode="graph,tree" colspan="3"/>
|
||||
<action string="Cases of the month" name="%(report_crm.action_report_crm_case_user_tree_month)d" view_mode="graph,tree" colspan="3"/>
|
||||
<action
|
||||
string="Cases of the month"
|
||||
name="%(report_crm.action_report_crm_case_user_tree_month)d"
|
||||
view_mode="graph,tree"
|
||||
colspan="3"/>
|
||||
</child2>
|
||||
</hpaned>
|
||||
</form>
|
||||
|
@ -41,6 +59,26 @@
|
|||
<field name="view_id" ref="board_sales_manager_form"/>
|
||||
</record>
|
||||
|
||||
<menuitem name="Dashboards/Sales Manager" action="open_board_sales_manager" sequence="1" id="menu_board_sales_manager"/>
|
||||
<menuitem
|
||||
name="Dashboards/Sales Manager"
|
||||
action="open_board_sales_manager"
|
||||
sequence="1"
|
||||
id="menu_board_sales_manager"/>
|
||||
|
||||
//
|
||||
// Administrator shortcut
|
||||
// Demo user startup menu
|
||||
//
|
||||
<record model="ir.ui.view_sc" id="sc_sale_dash">
|
||||
<field name="name">Sales dashboard</field>
|
||||
<field name="user_id" ref="base.user_admin"/>
|
||||
<field name="resource">ir.ui.menu</field>
|
||||
<field name="sequence">1</field>
|
||||
<field name="res_id" ref="menu_board_sales_manager"/>
|
||||
</record>
|
||||
<record model="res.users" id="base.user_demo">
|
||||
<field name="action_id" ref="open_board_sales_manager"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</terp>
|
||||
|
|
|
@ -140,8 +140,8 @@
|
|||
</record>
|
||||
<record id="product_product_mb1" model="product.product">
|
||||
<field name="default_code">MB1</field>
|
||||
<field name="list_price">150.0</field>
|
||||
<field name="standard_price">100.0</field>
|
||||
<field name="list_price">88.0</field>
|
||||
<field name="standard_price">54.0</field>
|
||||
<field name="uom_id" ref="product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product_uom_unit"/>
|
||||
<field name="sale_delay">1.0</field>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version":"1.0",
|
||||
"author":"Tiny",
|
||||
"category":"Profile",
|
||||
"depends":["base", "mrp", "product", "stock", "crm", "sale", "delivery"],
|
||||
"depends":["mrp", "crm", "sale", "delivery", "board_sale"],
|
||||
"demo_xml":[],
|
||||
"update_xml":[],
|
||||
"active":False,
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<record model="sale.order" id="order">
|
||||
<field name="shop_id" ref="shop"/>
|
||||
<field name="pricelist_id" search="[]" model="product.pricelist"/>
|
||||
<field name="user_id" ref="base.user_admin"/>
|
||||
<field name="partner_id" search="[]" model="res.partner"/>
|
||||
<field name="partner_invoice_id" search="[]" model="res.partner.address"/>
|
||||
<field name="partner_shipping_id" search="[]" model="res.partner.address"/>
|
||||
|
@ -27,5 +28,76 @@
|
|||
<field name="price_unit">123</field>
|
||||
<field name="type">make_to_stock</field>
|
||||
</record>
|
||||
|
||||
<record model="sale.order.line" id="line1">
|
||||
<field name="order_id" ref="order"/>
|
||||
<field name="name">[PC1] Basic PC</field>
|
||||
<field name="product_id" ref="product.product_product_pc1"/>
|
||||
<field name="product_uom" ref="product.product_uom_unit"/>
|
||||
<field name="price_unit">450</field>
|
||||
<field name="product_uom_qty">3</field>
|
||||
<field name="product_uos_qty">3</field>
|
||||
<field name="type">make_to_stock</field>
|
||||
</record>
|
||||
<record model="sale.order.line" id="line13">
|
||||
<field name="order_id" ref="order"/>
|
||||
<field name="name">[PC1] Basic PC</field>
|
||||
<field name="product_id" ref="product.product_product_pc1"/>
|
||||
<field name="product_uom" ref="product.product_uom_unit"/>
|
||||
<field name="price_unit">450</field>
|
||||
<field name="product_uom_qty">3</field>
|
||||
<field name="product_uos_qty">3</field>
|
||||
<field name="type">make_to_stock</field>
|
||||
</record>
|
||||
<record model="sale.order.line" id="line12">
|
||||
<field name="order_id" ref="order"/>
|
||||
<field name="name">[MB1] Mainboard ASUStek A7N8X</field>
|
||||
<field name="product_id" ref="product.product_product_mb1"/>
|
||||
<field name="product_uom" ref="product.product_uom_unit"/>
|
||||
<field name="price_unit">88</field>
|
||||
<field name="product_uom_qty">5</field>
|
||||
<field name="product_uos_qty">5</field>
|
||||
<field name="type">make_to_stock</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
Resource: sale.order
|
||||
-->
|
||||
|
||||
<record model="sale.order" id="order2">
|
||||
<field name="shop_id" ref="shop"/>
|
||||
<field name="pricelist_id" search="[]" model="product.pricelist"/>
|
||||
<field name="user_id" ref="base.user_demo"/>
|
||||
<field name="partner_id" ref="base.res_partner_2"/>
|
||||
<field name="partner_invoice_id" ref="base.res_partner_address_9"/>
|
||||
<field name="partner_shipping_id" ref="base.res_partner_address_9"/>
|
||||
<field name="partner_order_id" ref="base.res_partner_address_9"/>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
Resource: sale.order.line
|
||||
-->
|
||||
|
||||
<record model="sale.order.line" id="line3">
|
||||
<field name="order_id" ref="order2"/>
|
||||
<field name="name">[PC2] Computer assembled on demand</field>
|
||||
<field name="product_id" ref="product.product_product_pc2"/>
|
||||
<field name="product_uom" ref="product.product_uom_unit"/>
|
||||
<field name="price_unit">540</field>
|
||||
<field name="type">make_to_order</field>
|
||||
</record>
|
||||
<record model="sale.order.line" id="line4">
|
||||
<field name="order_id" ref="order2"/>
|
||||
<field name="name">[MB1] Mainboard ASUStek (purchased on order)</field>
|
||||
<field name="product_id" ref="product.product_product_mb1"/>
|
||||
<field name="product_uom" ref="product.product_uom_unit"/>
|
||||
<field name="price_unit">88</field>
|
||||
<field name="product_uom_qty">8</field>
|
||||
<field name="product_uos_qty">8</field>
|
||||
<field name="type">make_to_order</field>
|
||||
</record>
|
||||
</data>
|
||||
</terp>
|
||||
|
|
Loading…
Reference in New Issue