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>
|
2010-06-17 12:16:52 +00:00
|
|
|
<menuitem name="Point of Sale" id="menu_point_root" sequence="21"
|
2010-06-12 16:33:16 +00:00
|
|
|
icon="terp-partner"
|
|
|
|
groups="group_pos_manager,group_pos_user"/>
|
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">
|
|
|
|
<form string="Sales Order POS">
|
2010-05-17 08:44:20 +00:00
|
|
|
<group col="6" colspan="4">
|
2010-06-24 10:41:36 +00:00
|
|
|
<!--field name="user_salesman_id" />
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_pricelist(partner_id)"/>
|
2010-06-24 10:41:36 +00:00
|
|
|
<field name="contract_number" groups="base.group_extended"/> -->
|
2010-05-25 10:38:59 +00:00
|
|
|
|
2010-06-12 16:21:54 +00:00
|
|
|
</group>
|
2010-05-17 08:44:20 +00:00
|
|
|
<notebook colspan="4">
|
2010-05-25 10:38:59 +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">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)" width="275" />
|
2010-07-14 06:42:47 +00:00
|
|
|
<field name="qty"/>
|
|
|
|
<!--<field name="qty" on_change="onchange_qty(qty,price_unit)"/>-->
|
2010-06-24 10:41:36 +00:00
|
|
|
<!--field name="qty_rfd" groups="base.group_extended"/-->
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="discount" on_change="onchange_discount(discount,price_unit)" />
|
2010-07-14 06:42:47 +00:00
|
|
|
<field name="price_ded" on_change="onchange_ded(price_ded, price_subtotal_incl,price_unit)" invisible="1"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="price_unit" readonly="1"/>
|
2010-07-14 06:42:47 +00:00
|
|
|
<field name="notice" on_change="onchange_dis(qty,price_subtotal_incl,discount)"/>
|
2010-06-24 10:41:36 +00:00
|
|
|
<!--field name="serial_number"/-->
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="price_subtotal" />
|
2010-06-24 10:41:36 +00:00
|
|
|
<field name="price_subtotal_incl" sum="Subtotal"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</tree>
|
2010-01-18 08:38:26 +00:00
|
|
|
<form string="Order lines" >
|
|
|
|
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)" width="275"/>
|
2010-07-14 06:42:47 +00:00
|
|
|
<field name="qty"/>
|
2010-05-17 08:44:20 +00:00
|
|
|
<field name="qty_rfd" groups="base.group_extended"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="discount" on_change="onchange_discount(discount,price_unit)" />
|
|
|
|
<field name="price_ded" on_change="onchange_ded(price_ded, price_unit)" />
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="notice"/>
|
|
|
|
<field name="serial_number"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</form>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2008-12-19 16:39:18 +00:00
|
|
|
</field>
|
|
|
|
<group colspan="4" col="7">
|
|
|
|
<field name="amount_tax"/>
|
|
|
|
<field name="amount_total"/>
|
2010-06-24 10:41:36 +00:00
|
|
|
<!--button name="%(action_pos_discount)d" string="D_iscount" type="action" states="draft"/>
|
|
|
|
<button name="dummy_button" string="Compute" type="object" /-->
|
2008-12-19 16:39:18 +00:00
|
|
|
</group>
|
|
|
|
|
2010-07-10 13:29:35 +00:00
|
|
|
<!-- <group colspan="4" col="9" groups="base.group_extended">-->
|
|
|
|
<!-- <separator colspan="4" string="Validation of the Sale"/>-->
|
|
|
|
<!-- <newline/>-->
|
|
|
|
<!-- <field name="state_2" />-->
|
|
|
|
<!-- <button name="button_validate"-->
|
|
|
|
<!-- string="Accept"-->
|
|
|
|
<!-- type="object"-->
|
|
|
|
<!-- icon="gtk-ok"-->
|
|
|
|
<!-- states="paid, draft"-->
|
|
|
|
<!-- attrs="{'invisible':[('state_2','=','accepted')]}"/>-->
|
|
|
|
<!-- </group>-->
|
2008-12-19 16:39:18 +00:00
|
|
|
<separator colspan="4" string="Actions"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<group colspan="4" col="6">
|
2010-07-14 06:42:47 +00:00
|
|
|
<field name="state" />
|
2010-05-06 12:32:24 +00:00
|
|
|
<button name="%(action_pos_payment)d" string="Ma_ke Payment" icon="gtk-ok" type="action" states="draft,advance" />
|
2010-03-19 14:00:47 +00:00
|
|
|
<button name="%(action_report_pos_receipt)d" string="_Reprint" icon="gtk-print" type="action" states="paid,done,invoiced"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<button name="set_to_draft" string="Set to draft" states="paid" icon="gtk-execute" type="object" />
|
2010-04-27 12:18:03 +00:00
|
|
|
<button name="%(action_view_pos_return)d" string="Return Picking" type="action" icon="gtk-ok" states="paid"
|
2010-05-25 10:27:56 +00:00
|
|
|
attrs="{'invisible':[('state','!=','paid'),('state','!=','invoiced')]}" context="{'return':'return'}" />
|
2008-12-19 16:39:18 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
|
2010-05-17 08:44:20 +00:00
|
|
|
<page string="Order and Payment">
|
2010-01-18 08:38:26 +00:00
|
|
|
<group colspan="2" col="2" name="Type">
|
|
|
|
<separator string="Order Information" colspan="4"/>
|
2010-06-25 05:27:59 +00:00
|
|
|
<field name="user_salesman_id" />
|
2010-05-13 13:29:23 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="shop_id" widget="selection" />
|
2010-05-13 09:04:47 +00:00
|
|
|
<field name="name"/>
|
2010-06-24 10:41:36 +00:00
|
|
|
<field name="user_id" string="Salesman"/>
|
|
|
|
<!--field name="sale_manager" /-->
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="price_type" />
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2" name="Type">
|
|
|
|
<separator string="Dates" colspan="4"/>
|
2010-05-13 09:04:47 +00:00
|
|
|
<field name="date_order"/>
|
|
|
|
<field name="date_validation" />
|
|
|
|
<field name="date_payment" groups="base.group_extended"/>
|
2010-05-27 11:36:45 +00:00
|
|
|
<field name="type_rec" colspan="4"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="4">
|
2010-07-10 13:29:35 +00:00
|
|
|
<!-- <separator string="Invoicing" colspan="4"/>-->
|
|
|
|
<field name="partner_id" on_change="onchange_partner_pricelist(partner_id)" invisible="1"/>
|
|
|
|
<field name="sale_journal" domain="[('type','=','sale')]" widget="selection" invisible="1"/>
|
|
|
|
<field name="pricelist_id" domain="[('type','=','sale')]" widget="selection" invisible="1"/>
|
|
|
|
<!-- <field name="invoice_id"/>-->
|
|
|
|
<!-- <group colspan="2" col="4">-->
|
|
|
|
<!-- <button name="invoice" icon="gtk-execute" string="Create _Invoice" states="paid"/>-->
|
|
|
|
<!-- </group>-->
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<field name="statement_ids" colspan="4" nolabel="1">
|
|
|
|
<tree editable="bottom" string="Statement lines">
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="statement_id" />
|
2008-12-19 16:39:18 +00:00
|
|
|
</tree>
|
2010-01-18 08:38:26 +00:00
|
|
|
<form string="Statement lines">
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="statement_id" domain="[('company_id','=',parent.company_id),('state','=','open')]"/>
|
|
|
|
</form>
|
2008-12-19 16:39:18 +00:00
|
|
|
</field>
|
|
|
|
</page>
|
2010-05-27 11:36:45 +00:00
|
|
|
|
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">
|
|
|
|
<field name="name">Point of Sale</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_id" ref="view_pos_pos_form"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="domain">[['date_order','>=',time.strftime('%Y-%m-%d')]]</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">
|
|
|
|
<tree string="POS Orders">
|
|
|
|
<field name="name"/>
|
2010-05-13 09:04:47 +00:00
|
|
|
<field name="date_order"/>
|
2010-04-20 13:50:58 +00:00
|
|
|
<field name="date_validation"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_payment"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="invoice_id"/>
|
2010-05-13 09:04:47 +00:00
|
|
|
<field name="state" />
|
2008-12-19 16:39:18 +00:00
|
|
|
<field name="amount_total" sum="Amount total"/>
|
2010-05-13 13:29:23 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
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">
|
2010-06-01 05:30:23 +00:00
|
|
|
<filter icon="terp-document-new" string="Quotations" domain="[('state','=','draft')]"/>
|
|
|
|
<filter icon="terp-check" string="Running" domain="[('state','in',('payment','advance'))]"/>
|
2010-04-15 13:03:34 +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-04-15 13:03:34 +00:00
|
|
|
<field name="date_order" select="1" string="Order date" />
|
|
|
|
<newline/>
|
2010-06-01 05:30:23 +00:00
|
|
|
<group expand="0" string="Group By..." colspan="11" col="11" groups="base.group_extended">
|
|
|
|
<filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
|
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
|
|
|
<filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
|
|
|
|
<filter string="Salesman" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
|
2010-04-15 13:03:34 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-08-02 06:24:15 +00:00
|
|
|
<menuitem name="Daily Operations" id="menu_point_of_sale" parent="menu_point_root" sequence="1" />
|
2010-02-09 07:21:57 +00:00
|
|
|
<menuitem name="Sales Order" parent="menu_point_of_sale" id="menu_point_ofsale" action="action_pos_pos_form" sequence="1"/>
|
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
|
|
|
|
2010-05-05 10:42:36 +00:00
|
|
|
<menuitem action="product.product_normal_action" id="menu_pos_products" parent="menu_point_of_sale_product" sequence="2" name="Products"/>
|
2009-11-25 09:58:41 +00:00
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
<!-- POS Order view (date_payment) -->
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_pos_form_user">
|
|
|
|
<field name="name">Point of Sale</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">pos.order</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-04-15 13:03:34 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="view_id" ref="view_pos_order_tree"/>
|
2010-07-10 13:29:35 +00:00
|
|
|
<field name="domain">['|',('state','=','advance')]</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
2008-12-19 16:39:18 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_tobinvoiced">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Sales to Invoice</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="view_id" ref="view_pos_order_tree"/>
|
|
|
|
<field name="domain">[('state','!=', 'invoiced')]</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
|
|
|
<menuitem name="Invoicing" id="menu_point_of_sale_invoicing" parent="menu_point_root" sequence="4" />
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales to Invoice" action="action_pos_order_tobinvoiced" id="menu_point_of_sale_tobinvoiced" parent="menu_point_of_sale_invoicing"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_accepted">
|
|
|
|
<field name="name">Accepted Sales</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">[('state','=', 'paid')]</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
2008-12-19 16:39:18 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_tree2">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Point of Sale</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>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="domain">[('date_order','<=', time.strftime('%Y-%m-%d 23:59:59'))]</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
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
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_tree3">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Point of Sale</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>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
2008-12-19 16:39:18 +00:00
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_pos_order_tree_open">
|
|
|
|
<field name="name">Opened Sales</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">form,tree</field>
|
2010-05-13 13:17:19 +00:00
|
|
|
<field name="context">{"search_default_user_id":uid}</field>
|
2010-06-12 16:21:54 +00:00
|
|
|
<field name="search_view_id" ref="view_pos_order_filter"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</record>
|
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">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="product_id" select="1"/>
|
|
|
|
<field name="qty" select="1"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="discount" />
|
|
|
|
<field name="price_unit" />
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="create_date" select="1"/>
|
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"/>
|
2009-01-27 15:34:48 +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 ">
|
|
|
|
<field name="user_id" select="1"/>
|
|
|
|
<field name="journal_id" select="1"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="jl_id" select="1"/>
|
2009-01-21 01:45:50 +00:00
|
|
|
<field name="date_create" select="1" 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 ">
|
|
|
|
<field name="date_order" select="1" 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">
|
|
|
|
<field name="date_order" select="1" 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 ">
|
|
|
|
<field name="date_order" select="1" 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">
|
|
|
|
<field name="date_order" select="1" 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"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_order" select="1" 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"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_order" select="1" 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"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_order" select="1" 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"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_order" select="1" 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>
|
|
|
|
<!-- Sales by margin ends -->
|
|
|
|
<record model="ir.ui.view" id="view_company_form_pos">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">view.company.form.pos</field>
|
|
|
|
<field name="model">res.company</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="base.view_company_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-04-16 09:16:25 +00:00
|
|
|
<notebook position="inside">
|
2010-01-18 08:38:26 +00:00
|
|
|
<page string="Other">
|
|
|
|
<field name="company_discount" colspan="4"/>
|
|
|
|
<field name="max_diff" colspan="4"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2010-04-16 09:16:25 +00:00
|
|
|
</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">
|
|
|
|
<field name="active" position="after">
|
|
|
|
<field name="income_pdt"/>
|
|
|
|
<field name="expense_pdt"/>
|
|
|
|
<field name="am_out"/>
|
|
|
|
<field name="disc_controle"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="product_input_output_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="arch" type="xml">
|
2010-04-16 09:16:25 +00:00
|
|
|
<form string="Product">
|
|
|
|
<group colspan="4" col="6">
|
2010-01-18 08:38:26 +00:00
|
|
|
<group colspan="4" col="2">
|
|
|
|
<separator string="Product Description" colspan="4"/>
|
|
|
|
<field name="name" select="1" />
|
2010-04-18 15:32:44 +00:00
|
|
|
<field groups="base.group_extended" name="variants" />
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="1" col="2">
|
|
|
|
<separator string="Codes" colspan="2"/>
|
|
|
|
<field name="default_code" select="1"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field groups="base.group_extended" name="ean13"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Information">
|
|
|
|
<group colspan="2" col="2" name="Type">
|
|
|
|
<separator string="Product Type" colspan="2"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="categ_id" select="1"/>
|
|
|
|
<field name="property_account_income" select="1" string="Account" required="1"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="type"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2" name="Miscelleanous">
|
|
|
|
<separator string="Miscelleanous" colspan="2"/>
|
|
|
|
<field name="income_pdt"/>
|
|
|
|
<field name="expense_pdt"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="am_out"/>
|
|
|
|
<field name="disc_controle"/>
|
2010-05-25 10:38:59 +00:00
|
|
|
<field name="company_id" groups="base.group_extended,base.group_multi_company"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2" name="Prices">
|
|
|
|
<separator string="Prices" colspan="2"/>
|
|
|
|
<field name="lst_price"/>
|
|
|
|
<field name="standard_price"/>
|
|
|
|
</group>
|
2010-01-18 08:38:26 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Configuration" parent="menu_point_root"
|
2010-07-26 05:15:51 +00:00
|
|
|
id="menu_point_config_product" sequence="25" groups="base.group_system"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_product_input">
|
|
|
|
<field name="name">Products</field>
|
|
|
|
<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>
|
|
|
|
<field name="domain">[('income_pdt','=',True)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window.view" id="action_product_input_tree_tag">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="sequence" eval="1"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="product.product_product_tree_view"/>
|
|
|
|
<field name="act_window_id" ref="action_product_input"/>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
<record model="ir.actions.act_window.view" id="action_product_input_form_tag">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="sequence" eval="2"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="product_input_output_form_view"/>
|
|
|
|
<field name="act_window_id" ref="action_product_input"/>
|
|
|
|
</record>
|
|
|
|
<menuitem name="Products for Input Operations"
|
|
|
|
parent="menu_point_config_product"
|
|
|
|
action="action_product_input"
|
|
|
|
id="products_for_input_operations"/>
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_product_output">
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="name">Products</field>
|
|
|
|
<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>
|
|
|
|
<field name="domain">[('expense_pdt','=',True)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window.view" id="action_product_output_tree_tag">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="sequence" eval="1"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="product.product_product_tree_view"/>
|
|
|
|
<field name="act_window_id" ref="action_product_output"/>
|
|
|
|
</record>
|
2010-01-18 08:38:26 +00:00
|
|
|
<record model="ir.actions.act_window.view" id="action_product_output_form_tag">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="sequence" eval="2"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="product_input_output_form_view"/>
|
|
|
|
<field name="act_window_id" ref="action_product_output"/>
|
|
|
|
</record>
|
|
|
|
<menuitem name="Products for Output Operations"
|
|
|
|
parent="menu_point_config_product"
|
|
|
|
action="action_product_output"
|
|
|
|
id="products_for_output_operations"/>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-06-29 13:30:13 +00:00
|
|
|
<!-- <menuitem name="Register Management" parent="menu_point_root"-->
|
|
|
|
<!-- id="menu_point_config" sequence="4"/>-->
|
2010-01-18 08:38:26 +00:00
|
|
|
<menuitem
|
2010-06-25 05:27:59 +00:00
|
|
|
name="Input Operations" parent="menu_point_of_sale"
|
2010-01-18 08:38:26 +00:00
|
|
|
string="Refloat"
|
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
|
2010-06-25 05:27:59 +00:00
|
|
|
name="Output Operations" parent="menu_point_of_sale"
|
2010-01-18 08:38:26 +00:00
|
|
|
string="Refloat"
|
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" />
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_pos_order_tree_all_sales">
|
|
|
|
<field name="name">POS Sales</field>
|
|
|
|
<field name="model">pos.order</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="POS Orders">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="date_order" select="1"/>
|
|
|
|
<field name="partner_id" />
|
2010-04-20 13:50:58 +00:00
|
|
|
<field name="date_validation"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
<field name="date_payment"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="invoice_id"/>
|
|
|
|
<field name="note" select="1" />
|
|
|
|
<field name="state" select="1"/>
|
|
|
|
<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-01-18 08:38:26 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_pos_all_sales">
|
|
|
|
<field name="name">All sales</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_id" ref="view_pos_order_tree_all_sales" />
|
|
|
|
</record>
|
|
|
|
<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">
|
|
|
|
<field name="order_id" select="1" />
|
|
|
|
<field name="serial_number" select="1" />
|
|
|
|
<field name="create_date" select="1" />
|
|
|
|
<field name="product_id" select="1" />
|
|
|
|
<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-06-22 10:12:39 +00:00
|
|
|
<menuitem name="Reporting" parent="menu_point_root" id="menu_point_rep" sequence="20"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Registers" parent="menu_point_rep" id="menu_point_report_register" sequence="0" />
|
|
|
|
<menuitem name="Sales" parent="menu_point_rep" id="menu_point_report_sale" sequence="1" />
|
|
|
|
|
|
|
|
<menuitem name="Details Of Operations" parent="menu_point_report_sale" id="menu_details_of_oper" sequence="1" groups="base.group_extended"/>
|
|
|
|
<menuitem name="All Sales" parent="menu_details_of_oper"
|
|
|
|
id="menu_action_all_sales_tree3" action="action_pos_order_tree3" sequence="1" groups="base.group_extended"/>
|
|
|
|
<menuitem name="Sales of the day" parent="menu_action_all_sales_tree3"
|
|
|
|
id="menu_action_sale_of_day_tree2" action="action_trans_pos_tree_today"/>
|
|
|
|
<menuitem name="Accepted Sales" parent="menu_action_all_sales_tree3"
|
|
|
|
id="menu_action_sale_of_day_accept" action="action_pos_order_accepted"/>
|
|
|
|
|
|
|
|
<menuitem name="Sales Reports" parent="menu_point_report_sale" id="menu_sales_report" sequence="2"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
<menuitem name="Sales of the day" parent="menu_sales_report"
|
2010-04-16 09:16:25 +00:00
|
|
|
action="action_trans_pos_tree_today" id="menu_trans_pos_tree_today"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales of the month" parent="menu_sales_report"
|
|
|
|
action="action_trans_pos_tree_month" id="menu_trans_pos_tree_month"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="All the sales" parent="menu_sales_report"
|
|
|
|
action="action_trans_pos_tree" id="menu_trans_pos_tree"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales by User" parent="menu_sales_report"
|
|
|
|
action="action_report_sales_by_user_pos_today" id="menu_report_sales_by_user_pos_tree"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales by User Monthly" parent="menu_sales_report"
|
|
|
|
action="action_report_sales_by_user_pos_month" id="menu_report_sales_by_user_pos_month_tree"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales by User Daily Margin" parent="menu_sales_report"
|
|
|
|
action="action_report_sales_by_margin_pos_today" id="menu_report_sales_by_user_margin_daily_pos_tree"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales by User Monthly Margin" parent="menu_sales_report"
|
|
|
|
action="action_report_sales_by_margin_pos_month" id="menu_report_sales_by_user_pos_month_margin_tree"/>
|
|
|
|
<!-- Invoice -->
|
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_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 name="All Invoices" parent="menu_details_of_oper"
|
|
|
|
action="action_pos_invoice" id="menu_pos_invoice_tree"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Payments and Sales" parent="menu_point_report_sale"
|
|
|
|
id="menu_cashboxes_closing_tree" sequence="1"/>
|
|
|
|
<menuitem name="Today" parent="menu_cashboxes_closing_tree"
|
|
|
|
id="menu_cashboxes_by_day" sequence="1"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="All Sales Lines" parent="menu_details_of_oper"
|
|
|
|
id="menu_action_pos_order_line" action="action_pos_order_line" sequence="2"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem name="Sales Lines of the day" parent="menu_action_pos_order_line"
|
|
|
|
id="menu_action_pos_order_line_day" action="action_pos_order_line_day"/>
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_sale_user"
|
|
|
|
id="menu_pos_sales_user" parent="menu_trans_pos_tree" sequence="3" groups="base.group_extended" />
|
2010-01-18 08:38:26 +00:00
|
|
|
|
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_payment_repport_date"
|
|
|
|
id="menu_pos_payment_report_date" parent="menu_trans_pos_tree" sequence="5" groups="base.group_extended"/>
|
2010-05-13 13:17:19 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_payment_report_user"
|
|
|
|
id="menu_pos_payment_report_user" parent="menu_trans_pos_tree_today" sequence="6" groups="base.group_extended"/>
|
|
|
|
<menuitem icon="STOCK_PRINT" action="action_pos_sales_user_today"
|
|
|
|
id="menu_pos_sales_user_today" parent="menu_trans_pos_tree_today" sequence="2" groups="base.group_extended"/>
|
|
|
|
|
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_payment_repport_date"
|
|
|
|
id="menu_pos_payment_report_date" parent="menu_trans_pos_tree" sequence="5" groups="base.group_extended"/>
|
|
|
|
|
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_payment_report_user"
|
|
|
|
id="menu_pos_payment_report_user" parent="menu_trans_pos_tree_today" sequence="6" groups="base.group_extended"/>
|
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_sales_user_today_current_user"
|
|
|
|
id="menu_pos_sales_user_today_current_user" parent="menu_cashboxes_by_day" sequence="7"/>
|
|
|
|
|
|
|
|
<menuitem icon="STOCK_PRINT" action="action_report_pos_details"
|
|
|
|
id="menu_pos_details" parent="menu_cashboxes_by_day" />
|
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>
|