2008-08-24 14:45:43 +00:00
|
|
|
<?xml version="1.0"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-12-19 16:39:18 +00:00
|
|
|
<data>
|
2011-12-05 10:53:28 +00:00
|
|
|
<menuitem name="PoS Backend" id="menu_point_root" sequence="21"
|
2010-06-12 16:33:16 +00:00
|
|
|
icon="terp-partner"
|
2011-12-05 10:53:28 +00:00
|
|
|
groups="group_pos_manager"
|
2010-11-26 12:02:38 +00:00
|
|
|
web_icon="images/pos.png"
|
|
|
|
web_icon_hover="images/pos-hover.png"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
<record model="ir.ui.view" id="view_pos_pos_form">
|
|
|
|
<field name="name">pos.order</field>
|
|
|
|
<field name="model">pos.order</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-12-08 12:01:11 +00:00
|
|
|
<form string="PoS Orders">
|
2011-09-25 14:09:30 +00:00
|
|
|
<group col="7" colspan="4">
|
2010-09-17 11:16:27 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="date_order"/>
|
2011-12-14 15:25:33 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_customer':1}"/>
|
2011-09-25 14:09:30 +00:00
|
|
|
<button name="invoice" string="Invoice" icon="gtk-apply" type="workflow" states="paid" attrs="{'invisible': ['|',('partner_id','=',False),('state','<>','paid')]}"/>
|
2010-06-12 16:21:54 +00:00
|
|
|
</group>
|
2010-09-17 09:22:57 +00:00
|
|
|
<notebook colspan="4">
|
2010-09-17 11:16:27 +00:00
|
|
|
<page string="Sale Order">
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="lines" colspan="4" nolabel="1">
|
|
|
|
<tree string="Order lines" editable="bottom">
|
2011-09-25 14:09:30 +00:00
|
|
|
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
|
|
|
|
<field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="price_subtotal"/>
|
|
|
|
<field name="price_subtotal_incl"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</tree>
|
2010-09-17 09:22:57 +00:00
|
|
|
<form string="Order lines">
|
2011-09-25 14:09:30 +00:00
|
|
|
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
|
|
|
|
<field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
|
|
|
|
<field name="price_subtotal" invisible="1"/>
|
|
|
|
<field name="price_subtotal_incl" invisible="1"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="notice"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
<group colspan="4" col="7">
|
|
|
|
<field name="amount_tax"/>
|
|
|
|
<field name="amount_total"/>
|
2011-09-25 14:09:30 +00:00
|
|
|
<button name="button_dummy" string="Update" icon="gtk-execute" states="draft" />
|
|
|
|
<button name="%(action_pos_discount)d" string="Discount" icon="gtk-remove" type="action" states="draft" />
|
2008-12-19 16:39:18 +00:00
|
|
|
</group>
|
|
|
|
|
2010-09-11 07:42:18 +00:00
|
|
|
<separator colspan="4"/>
|
2010-11-15 13:59:05 +00:00
|
|
|
<group colspan="4" col="8">
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/>
|
2011-09-25 14:09:30 +00:00
|
|
|
<button name="%(action_pos_payment)d" string="Payment" icon="gtk-apply" type="action" states="draft"/>
|
|
|
|
<button name="refund" string="Return Products" type="object" icon="gtk-ok"
|
|
|
|
attrs="{'invisible':[('state','=','draft')]}"/>
|
2010-09-20 07:10:38 +00:00
|
|
|
<button name="%(action_report_pos_receipt)d" string="Reprint" icon="gtk-print" type="action" states="paid,done,invoiced"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
2010-09-17 11:16:27 +00:00
|
|
|
<page string="Payment">
|
|
|
|
<field name="statement_ids" colspan="4" nolabel="1">
|
|
|
|
<tree editable="bottom" string="Statement lines">
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="statement_id" />
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="amount"/>
|
2010-09-17 11:16:27 +00:00
|
|
|
</tree>
|
|
|
|
<form string="Statement lines">
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="statement_id" domain="[('company_id','=',parent.company_id),('state','=','open')]"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</page>
|
2011-09-25 14:09:30 +00:00
|
|
|
<page string="Extra Info" groups="base.group_extended">
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="General Information" colspan="2"/>
|
2010-05-13 13:29:23 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2011-09-25 14:09:30 +00:00
|
|
|
<field name="shop_id" widget="selection"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="pricelist_id" domain="[('type','=','sale')]"/>
|
|
|
|
<field name="picking_id" readonly="1" groups="base.group_extended"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
2011-09-25 14:09:30 +00:00
|
|
|
<group colspan="2" col="3">
|
|
|
|
<separator string="Accounting Information" colspan="3"/>
|
|
|
|
<field name="sale_journal" domain="[('type','=','sale')]"/>
|
|
|
|
<button name="done" string="Post Entries" icon="gtk-apply" type="workflow" states="paid"/>
|
|
|
|
<field name="invoice_id" colspan="2" readonly="1"
|
|
|
|
attrs="{'invisible':[('state','<>','invoiced')]}"/>
|
|
|
|
<button name="%(pos_invoice_report)d" string="Re-Print"
|
|
|
|
icon="gtk-print" type="action" attrs="{'invisible':[('state','<>','invoiced')]}"/>
|
|
|
|
<field name="account_move" colspan="3" readonly="1"
|
|
|
|
attrs="{'invisible':[('state','<>','done')]}"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
2008-12-19 16:39:18 +00:00
|
|
|
</page>
|
2010-01-18 08:38:26 +00:00
|
|
|
<page string="Notes" >
|
2010-06-12 16:21:54 +00:00
|
|
|
<field colspan="4" name="note" nolabel="1"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_pos_form">
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="name">PoS Orders</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order</field>
|
|
|
|
<field name="view_type">form</field>
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="view_id" eval="False"/>
|
2011-07-26 10:59:01 +00:00
|
|
|
<field name="domain">[]</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_pos_order_tree">
|
|
|
|
<field name="name">Sales</field>
|
|
|
|
<field name="model">pos.order</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-09-17 11:16:27 +00:00
|
|
|
<tree string="POS Orders" colors="blue:state == 'draft';gray:state in ('done','cancel');black:state not in('done','cancel')">
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="name"/>
|
2010-09-17 09:22:57 +00:00
|
|
|
<field name="partner_id"/>
|
2010-05-13 09:04:47 +00:00
|
|
|
<field name="date_order"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="invoice_id"/>
|
|
|
|
<field name="amount_total" sum="Amount total"/>
|
2010-05-13 13:29:23 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2010-09-17 09:22:57 +00:00
|
|
|
<field name="state"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-15 13:03:34 +00:00
|
|
|
<record id="view_pos_order_filter" model="ir.ui.view">
|
|
|
|
<field name="name">pos.order.list.select</field>
|
|
|
|
<field name="model">pos.order</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Sales Order">
|
2011-09-25 14:09:30 +00:00
|
|
|
<filter icon="terp-document-new" string="New" domain="[('state','=','draft')]"/>
|
2011-09-25 21:00:20 +00:00
|
|
|
<filter icon="gtk-apply" string="Done" domain="[('state','in',('paid','invoiced','done'))]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-check" string="Invoiced" domain="[('state','=','invoiced')]"/>
|
|
|
|
<filter icon="gtk-convert" string="Posted" domain="[('state','=','done')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-go-month" string="Today" domain="[('date_order','>=',datetime.date.today().strftime('%%Y-%%m-%%d 00:00:00')),('date_order','<=',datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59'))]"/>
|
|
|
|
<filter icon="gtk-go-forward" string="Yesterday" domain="[('date_order','<',datetime.date.today().strftime('%%Y-%%m-%%d 00:00:00')),('date_order','>=',(datetime.date.today() - relativedelta(days=1)).strftime('%%Y-%%m-%%d 00:00:00'))]"/>
|
2010-04-15 13:03:34 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-09-17 09:22:57 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id"/>
|
2010-04-15 13:03:34 +00:00
|
|
|
<newline/>
|
2011-03-15 14:08:59 +00:00
|
|
|
<group expand="0" string="Group By..." groups="base.group_extended">
|
2010-06-01 05:30:23 +00:00
|
|
|
<filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
|
2010-09-17 09:22:57 +00:00
|
|
|
<filter string="Salesman" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
|
|
|
|
<separator string="" orientation="vertical"/>
|
2010-06-01 05:30:23 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
2010-09-17 09:22:57 +00:00
|
|
|
<separator string="" orientation="vertical"/>
|
2010-06-01 05:30:23 +00:00
|
|
|
<filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
|
2010-04-15 13:03:34 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2011-10-18 14:33:52 +00:00
|
|
|
<menuitem name="Daily Operations" id="menu_point_of_sale" parent="menu_point_root" sequence="10" />
|
2011-12-08 12:01:11 +00:00
|
|
|
<menuitem parent="menu_point_of_sale" id="menu_point_ofsale" action="action_pos_pos_form" sequence="1" groups="group_pos_manager,group_pos_user"/>
|
2010-06-22 10:12:39 +00:00
|
|
|
<menuitem name="Products" id="menu_point_of_sale_product" parent="menu_point_root" sequence="15" />
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2011-12-08 12:01:11 +00:00
|
|
|
<menuitem action="product.product_normal_action" id="menu_pos_products" parent="menu_point_of_sale_product" sequence="2"/>
|
2009-11-25 09:58:41 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
<record model="ir.ui.view" id="view_pos_order_line">
|
|
|
|
<field name="name">Sale lines</field>
|
|
|
|
<field name="model">pos.order.line</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS Order lines">
|
|
|
|
<field name="product_id" readonly="1"/>
|
|
|
|
<field name="qty" readonly="1" sum="Total qty"/>
|
|
|
|
<field name="discount" readonly="1"/>
|
|
|
|
<field name="price_unit" readonly="1"/>
|
|
|
|
<field name="price_subtotal" readonly="1" sum="Sum of subtotals"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="price_subtotal_incl" readonly="1" sum="Sum of subtotals"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="create_date" readonly="1"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_pos_order_line_form">
|
|
|
|
<field name="name">Sale line</field>
|
|
|
|
<field name="model">pos.order.line</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS Order line">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="product_id" />
|
|
|
|
<field name="qty" />
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="discount" />
|
|
|
|
<field name="price_unit" />
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="create_date" />
|
2008-12-19 16:39:18 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_line">
|
|
|
|
<field name="name">Sale line</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order.line</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="view_pos_order_line"/>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_line_form">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sale line</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order.line</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form,tree</field>
|
|
|
|
<field name="view_id" ref="view_pos_order_line_form"/>
|
|
|
|
</record>
|
2008-12-19 16:39:18 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_line_day">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sale line</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order.line</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="view_pos_order_line"/>
|
2011-07-26 10:59:01 +00:00
|
|
|
<field name="domain">[('create_date', '>=', time.strftime('%Y-%m-%d 00:00:00')),('create_date', '<=', time.strftime('%Y-%m-%d 23:59:59'))]</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
<!-- report -->
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_pos_trans_user_form">
|
|
|
|
<field name="name">report.trans.pos.user.form</field>
|
|
|
|
<field name="model">report.transaction.pos</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS ">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="jl_id"/>
|
|
|
|
<field name="date_create" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="no_trans"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="invoice_id"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_trans_pos_user_tree">
|
|
|
|
<field name="name">Sales by user</field>
|
|
|
|
<field name="model">report.transaction.pos</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS">
|
2009-01-21 01:45:50 +00:00
|
|
|
<field name="date_create" widget="date" />
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="journal_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="jl_id"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="no_trans" sum="Total Transaction"/>
|
|
|
|
<field name="amount" sum="Amount total"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="product_nb" />
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="invoice_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="disc"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_transaction_pos_calendar">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="name">report.transaction.pos.calendar</field>
|
|
|
|
<field name="model">report.transaction.pos</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="user_id" date_start="date_create" string="POS Report">
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_transaction_pos_graph">
|
|
|
|
<field name="name">report.transaction.pos.graph</field>
|
|
|
|
<field name="model">report.transaction.pos</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph type="bar" string="POS Report">
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="amount"/>
|
|
|
|
<field group="True" name="journal_id"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_trans_pos_tree_today">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales by day</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="res_model">report.transaction.pos</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="domain">[('date_create','=',time.strftime('%Y-%m-%d'))]</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_trans_pos_tree_month">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales by month</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="res_model">report.transaction.pos</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="domain">[('date_create','like',time.strftime('%Y-%m'))]</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_trans_pos_tree">
|
|
|
|
<field name="name">Sales by user</field>
|
|
|
|
<field name="res_model">report.transaction.pos</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="view_id" ref="view_trans_pos_user_tree"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_form">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">report.sales.by.user.pos.form</field>
|
|
|
|
<field name="model">report.sales.by.user.pos</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS ">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="user_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_tree">
|
|
|
|
<field name="name">report.sales.by.user.pos.tree</field>
|
|
|
|
<field name="model">report.sales.by.user.pos</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="user_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_calendar">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="name">report.sales.by.user.pos.calendar</field>
|
|
|
|
<field name="model">report.sales.by.user.pos</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="user_id" date_start="date_order" string="POS Report">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="amount" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_graph">
|
|
|
|
<field name="name">report.sales.by.user.pos.graph</field>
|
|
|
|
<field name="model">report.sales.by.user.pos</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph type="bar" string="Sales by User">
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="amount"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_report_sales_by_user_pos_today">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales by User</field>
|
|
|
|
<field name="res_model">report.sales.by.user.pos</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="domain">[('date_order','=',time.strftime('%Y-%m-%d'))]</field>
|
2010-04-16 09:16:25 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<!-- Sales of user by month -->
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_month_form">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">report.sales.by.user.pos.month.form</field>
|
|
|
|
<field name="model">report.sales.by.user.pos.month</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS ">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="user_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_month_tree">
|
|
|
|
<field name="name">report.sales.by.user.pos.month.tree</field>
|
|
|
|
<field name="model">report.sales.by.user.pos.month</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="user_id"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_month_calendar">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="name">report.sales.by.user.pos.month.calendar</field>
|
|
|
|
<field name="model">report.sales.by.user.pos.month</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="user_id" date_start="date_order" string="POS Report">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="amount" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_user_pos_month_graph">
|
|
|
|
<field name="name">report.sales.by.user.pos.month.graph</field>
|
|
|
|
<field name="model">report.sales.by.user.pos.month</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph type="bar" string="Sales by User">
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="amount"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_report_sales_by_user_pos_month">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales by User Monthly</field>
|
|
|
|
<field name="res_model">report.sales.by.user.pos.month</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="domain">[('date_order','like',time.strftime('%Y-%m'))]</field>
|
2010-04-16 09:16:25 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<!-- Sales by margin -->
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_form">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">report.sales.by.margin.pos.form</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS ">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="product_name"/>
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="net_margin_per_qty"/>
|
|
|
|
<field name="total"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_tree">
|
|
|
|
<field name="name">report.sales.by.margin.pos.tree</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="product_name"/>
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="net_margin_per_qty"/>
|
|
|
|
<field name="total"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2008-12-19 16:39:18 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_calendar">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="name">report.sales.by.margin.pos.calendar</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="user_id" date_start="date_order" string="Sales by User Margin">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="product_name"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="total" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_graph">
|
|
|
|
<field name="name">report.sales.by.margin.pos.graph</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph type="bar" string="Sales by User Margin" orientation="horizontal">
|
|
|
|
<field name="product_name" />
|
|
|
|
<field name="total" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_report_sales_by_margin_pos_today">
|
|
|
|
<field name="name">Sales by User Daily margin</field>
|
|
|
|
<field name="res_model">report.sales.by.margin.pos</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="domain">[('date_order','=',time.strftime('%Y-%m-%d'))]</field>
|
2010-04-16 09:16:25 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_month_form">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">report.sales.by.margin.pos.month.form</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos.month</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="POS ">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="product_name"/>
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="net_margin_per_qty"/>
|
|
|
|
<field name="total"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_month_tree">
|
|
|
|
<field name="name">report.sales.by.margin.pos.month.tree</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos.month</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="product_name"/>
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="date_order" widget="date"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<field name="net_margin_per_qty"/>
|
|
|
|
<field name="total"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_month_calendar">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="name">report.sales.by.margin.pos.month.calendar</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos.month</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="user_id" date_start="date_order" string="Sales by User Margin">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="product_name"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="total" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_report_sales_by_margin_pos_month_graph">
|
|
|
|
<field name="name">report.sales.by.margin.pos.month.graph</field>
|
|
|
|
<field name="model">report.sales.by.margin.pos.month</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph type="bar" string="Sales by User Margin" orientation="horizontal">
|
|
|
|
<field name="product_name" />
|
|
|
|
<field name="total" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_report_sales_by_margin_pos_month">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales by User Monthly margin</field>
|
|
|
|
<field name="res_model">report.sales.by.margin.pos.month</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,calendar,form,graph</field>
|
|
|
|
<field name="domain">[('date_order','like',time.strftime('%Y-%m'))]</field>
|
2010-04-16 09:16:25 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2011-12-08 12:01:11 +00:00
|
|
|
<record id="product_normal_form_pos_view" model="ir.ui.view">
|
|
|
|
<field name="name">product.normal.pos.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="categ_id" position="after">
|
|
|
|
<field name="pos_categ_id"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
<record id="product_normal_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">product.normal.form.inherit</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
2011-04-07 07:19:56 +00:00
|
|
|
<field name="company_id" position="after">
|
|
|
|
<separator string="Point of Sale" colspan="2"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="income_pdt"/>
|
|
|
|
<field name="expense_pdt"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2011-07-18 16:17:46 +00:00
|
|
|
<!-- Categories tree view -->
|
|
|
|
<record id="pos_category_tree_view" model="ir.ui.view">
|
|
|
|
<field name="name">pos.category.tree</field>
|
|
|
|
<field name="model">pos.category</field>
|
|
|
|
<field name="type">tree</field>
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="field_parent" eval="False"/>
|
2011-07-18 16:17:46 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-12-08 12:01:11 +00:00
|
|
|
<tree string="PoS Categories">
|
2011-07-18 16:17:46 +00:00
|
|
|
<field name="name"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="pos_category_action" model="ir.actions.act_window">
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="name">PoS Categories</field>
|
2011-07-18 16:17:46 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.category</field>
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="view_id" eval="False"/>
|
2011-07-18 16:17:46 +00:00
|
|
|
</record>
|
|
|
|
<menuitem action="pos_category_action" id="menu_pos_category" parent="menu_point_of_sale_product" sequence="0" />
|
|
|
|
<!-- END -->
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Configuration" parent="menu_point_root"
|
2010-10-16 16:47:09 +00:00
|
|
|
id="menu_point_config_product" sequence="25" groups="group_pos_manager"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_product_input">
|
2011-09-25 21:45:32 +00:00
|
|
|
<field name="name">Products 'Take Money Out'</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">product.product</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2011-10-11 11:05:22 +00:00
|
|
|
<field name="domain">[('expense_pdt','=',True)]</field>
|
2011-11-24 12:14:33 +00:00
|
|
|
<field name="context">{'default_expense_pdt': True}</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
2011-09-25 21:45:32 +00:00
|
|
|
<menuitem
|
|
|
|
parent="menu_point_config_product"
|
|
|
|
action="action_product_input"
|
|
|
|
id="products_for_input_operations"
|
|
|
|
groups="group_pos_manager"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_product_output">
|
2011-09-25 21:45:32 +00:00
|
|
|
<field name="name">Products 'Put Money In'</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">product.product</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2011-10-11 11:05:22 +00:00
|
|
|
<field name="domain">[('income_pdt','=',True)]</field>
|
2011-11-24 12:14:33 +00:00
|
|
|
<field name="context">{'default_income_pdt': True}</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
2011-09-25 21:45:32 +00:00
|
|
|
<menuitem
|
|
|
|
parent="menu_point_config_product"
|
|
|
|
action="action_product_output"
|
|
|
|
id="products_for_output_operations"
|
|
|
|
groups="group_pos_manager"/>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
<menuitem
|
2011-09-25 21:08:44 +00:00
|
|
|
parent="menu_point_of_sale"
|
2010-03-15 05:52:08 +00:00
|
|
|
action="action_box_entries"
|
2010-06-25 05:27:59 +00:00
|
|
|
id="menu_wizard_enter_jrnl" sequence="2" />
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
<menuitem
|
2011-09-25 21:08:44 +00:00
|
|
|
parent="menu_point_of_sale"
|
2010-03-15 06:30:32 +00:00
|
|
|
action="action_box_out"
|
2010-01-18 08:38:26 +00:00
|
|
|
id="menu_wizard_enter_jrnl2" sequence="3" />
|
|
|
|
|
2011-09-25 21:45:32 +00:00
|
|
|
<record id="action_account_journal_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">Payment Methods</field>
|
|
|
|
<field name="res_model">account.journal</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2011-12-08 12:01:11 +00:00
|
|
|
<field name="context" eval="{'default_journal_user': 1, 'default_view_id': ref('account.account_journal_bank_view'), 'default_type': 'cash'}"/>
|
2011-09-25 21:45:32 +00:00
|
|
|
<field name="domain">[('journal_user','=', 1)]</field>
|
|
|
|
<field name="help">Payment methods are defined by accounting journals having the field Payment Method checked.</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem action="action_account_journal_form"
|
|
|
|
id="menu_action_account_journal_form_open"
|
|
|
|
parent="menu_point_config_product"
|
|
|
|
sequence="20"/>
|
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
<record model="ir.ui.view" id="view_pos_order_tree_all_sales_lines">
|
|
|
|
<field name="name">POS Sales Lines</field>
|
|
|
|
<field name="model">pos.order.line</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS Orders lines">
|
2011-08-24 14:03:09 +00:00
|
|
|
<field name="order_id" />
|
|
|
|
<field name="create_date" />
|
|
|
|
<field name="product_id" />
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="qty" />
|
|
|
|
<field name="price_unit" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_all_sales_lines">
|
|
|
|
<field name="name">All sales lines</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order.line</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="view_pos_order_tree_all_sales_lines" />
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Miscelleanous Operations/Reporting -->
|
2010-10-16 16:47:09 +00:00
|
|
|
<menuitem name="Reporting" parent="menu_point_root" id="menu_point_rep" sequence="20" groups="group_pos_manager"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<!-- Invoice -->
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2011-09-25 21:00:20 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_sale_all">
|
|
|
|
<field name="name">All Sales Orders</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[]</field>
|
|
|
|
</record>
|
2011-09-25 21:45:32 +00:00
|
|
|
<menuitem parent="menu_point_rep" id="menu_point_ofsale_all" action="action_pos_sale_all" sequence="1"/>
|
2011-09-25 21:00:20 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_invoice">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Invoices</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="domain">[('origin','like','POS')]</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_details"
|
2010-08-09 11:07:08 +00:00
|
|
|
id="menu_pos_details" parent="menu_point_rep" sequence="6" />
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2011-10-18 14:33:52 +00:00
|
|
|
<record model="ir.actions.client" id="action_pos_pos">
|
|
|
|
<field name="name">Start Point of Sale</field>
|
|
|
|
<field name="tag">pos.ui</field>
|
|
|
|
</record>
|
2011-12-05 14:00:54 +00:00
|
|
|
|
2011-12-05 11:10:09 +00:00
|
|
|
<record id="menu_point_root_touchscreen" model="ir.ui.menu">
|
|
|
|
<field name="name">Point of Sale</field>
|
|
|
|
<field name="sequence" eval="20"/>
|
|
|
|
<field name="action" ref="action_pos_pos"/>
|
|
|
|
</record>
|
|
|
|
|
2011-12-05 14:00:54 +00:00
|
|
|
<!-- use menuitem to add web_icon and web_icon_hover above -->
|
|
|
|
<menuitem id="menu_point_root_touchscreen"
|
|
|
|
web_icon="images/pos.png" web_icon_hover="images/pos-hover.png"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|