6 <menuitem name="Point of Sale"
8 groups="group_pos_manager,group_pos_user"
11 <record model="ir.ui.view" id="view_pos_pos_form">
12 <field name="name">pos.order</field>
13 <field name="model">pos.order</field>
14 <field name="arch" type="xml">
15 <form string="Point of Sale Orders" version="7.0">
17 <button name="%(action_pos_payment)d" string="Payment" class="oe_highlight" type="action" states="draft" context="{'pos_session_id' : session_id}"/>
18 <button name="action_invoice" string="Invoice" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/>
19 <button name="refund" string="Return Products" type="object"
20 attrs="{'invisible':[('state','=','draft')]}"/>
21 <button name="%(action_report_pos_receipt)d" string="Reprint" type="action" states="paid,done,invoiced"/>
22 <field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/>
25 <group col="4" colspan="4">
27 <field name="date_order"/>
28 <field name="session_id" required="1"/>
29 <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" context="{'search_default_customer':1}" attrs="{'readonly': [('state','=','invoiced')]}"/>
31 <notebook colspan="4">
32 <page string="Products">
33 <field name="lines" colspan="4" nolabel="1">
34 <tree string="Order lines" editable="bottom">
35 <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
36 <field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
37 <field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
38 <field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
39 <field name="price_subtotal"/>
40 <field name="price_subtotal_incl"/>
42 <form string="Order lines" version="7.0">
44 <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
45 <field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
46 <field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
47 <field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
48 <field name="price_subtotal" invisible="1"/>
49 <field name="price_subtotal_incl" invisible="1"/>
50 <field name="notice"/>
54 <group class="oe_subtotal_footer oe_right" colspan="2" name="order_total">
55 <field name="amount_tax"/>
56 <div class="oe_subtotal_footer_separator oe_inline">
57 <label for="amount_total" />
58 <button name="button_dummy"
59 states="draft" string="(update)" class="oe_edit_only oe_link"/>
61 <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator"/>
64 <page string="Payments">
65 <field name="statement_ids" colspan="4" nolabel="1">
66 <tree editable="bottom" string="Statement lines">
67 <field name="journal_id"/>
68 <field name="statement_id"/>
69 <field name="amount"/>
71 <form string="Statement lines" version="7.0">
73 <field name="account_id"/>
74 <field name="amount"/>
75 <field name="statement_id" domain="[('company_id','=',parent.company_id),('state','=','open')]"/>
80 <page string="Extra Info">
81 <group string="General Information">
82 <field name="company_id" groups="base.group_multi_company"/>
83 <field name="location_id" widget="selection" groups="stock.group_locations"/>
84 <field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'point_of_sale.group_pos_user']}"/>
85 <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]"/>
86 <field name="picking_id" readonly="1"/>
87 <field name="pos_reference"/>
89 <group string="Accounting Information">
90 <field name="sale_journal" domain="[('type','=','sale')]"/>
91 <field name="invoice_id" readonly="1"
92 attrs="{'invisible':[('state','<>','invoiced')]}"/>
93 <button name="%(pos_invoice_report)d" string="Re-Print"
94 icon="gtk-print" type="action" attrs="{'invisible':[('state','<>','invoiced')]}"/>
95 <field name="account_move" readonly="1"
96 attrs="{'invisible':[('state','<>','done')]}"/>
99 <page string="Notes" >
107 <record model="ir.actions.act_window" id="action_pos_pos_form">
108 <field name="name">Orders</field>
109 <field name="type">ir.actions.act_window</field>
110 <field name="res_model">pos.order</field>
111 <field name="view_type">form</field>
112 <field name="view_mode">tree,form</field>
113 <field name="view_id" eval="False"/>
114 <field name="domain">[]</field>
115 <field name="help" type="html">
116 <p class="oe_view_nocontent_create">
117 Click to create a new order.
119 Use this menu to browse previous orders. To record new
120 orders, you may use the menu <i>Your Session</i> for
121 the touchscreen interface.
125 <record model="ir.ui.view" id="view_pos_order_tree">
126 <field name="name">Orders</field>
127 <field name="model">pos.order</field>
128 <field name="arch" type="xml">
129 <tree string="POS Orders" colors="blue:state == 'draft';gray:state in ('done','cancel');black:state not in('done','cancel')">
131 <field name="pos_reference"/>
132 <field name="partner_id"/>
133 <field name="date_order"/>
134 <field name="user_id"/>
135 <field name="invoice_id"/>
136 <field name="amount_total" sum="Amount total"/>
137 <field name="company_id" groups="base.group_multi_company"/>
138 <field name="state"/>
139 <field name="session_id" />
143 <record id="view_pos_order_filter" model="ir.ui.view">
144 <field name="name">pos.order.list.select</field>
145 <field name="model">pos.order</field>
146 <field name="arch" type="xml">
147 <search string="Search Sales Order">
148 <field name="name" string="Sales Order"/>
149 <field name="date_order"/>
150 <field name="pos_reference"/>
151 <filter icon="terp-document-new" string="New" domain="[('state','=','draft')]"/>
152 <filter icon="gtk-apply" string="Done" domain="[('state','in',('paid','invoiced','done'))]"/>
153 <filter icon="terp-check" string="Invoiced" domain="[('state','=','invoiced')]"/>
154 <filter icon="gtk-convert" string="Posted" domain="[('state','=','done')]"/>
155 <field name="user_id"/>
156 <group expand="0" string="Group By">
157 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
158 <filter string="Salesperson" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
159 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
160 <filter string="Order Month" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
166 <menuitem name="Daily Operations" id="menu_point_of_sale" parent="menu_point_root" sequence="10"/>
167 <menuitem parent="menu_point_of_sale" id="menu_point_ofsale" action="action_pos_pos_form" sequence="2" groups="group_pos_manager,group_pos_user"/>
168 <menuitem name="Products" id="menu_point_of_sale_product" parent="menu_point_root" sequence="15" />
170 <record id="product_normal_action" model="ir.actions.act_window">
171 <field name="name">Products</field>
172 <field name="type">ir.actions.act_window</field>
173 <field name="res_model">product.product</field>
174 <field name="view_type">form</field>
175 <field name="view_mode">tree,form,kanban</field>
176 <field name="context" eval="{}"/>
177 <field name="domain" eval="[('available_in_pos','<>',False)]"/>
178 <field name="view_id" ref="product.product_product_tree_view"/>
179 <field name="search_view_id" ref="product.product_search_form_view"/>
180 <field name="help" type="html">
181 <p class="oe_view_nocontent_create">
182 Click to add a new product.
184 You must define a product for everything you sell through
185 the point of sale interface.
187 Do not forget to set the price and the point of sale category
188 in which it should appear. If a product has no point of sale
189 category, you can not sell it through the point of sale
195 action="product_normal_action"
196 id="menu_pos_products"
197 parent="menu_point_of_sale_product" sequence="2"/>
199 <record model="ir.ui.view" id="view_pos_order_line">
200 <field name="name">Sale lines</field>
201 <field name="model">pos.order.line</field>
202 <field name="arch" type="xml">
203 <tree string="POS Order lines">
204 <field name="product_id" readonly="1"/>
205 <field name="qty" readonly="1" sum="Total qty"/>
206 <field name="discount" readonly="1"/>
207 <field name="price_unit" readonly="1"/>
208 <field name="price_subtotal" readonly="1" sum="Sum of subtotals"/>
209 <field name="price_subtotal_incl" readonly="1" sum="Sum of subtotals"/>
210 <field name="create_date" readonly="1"/>
215 <record model="ir.ui.view" id="view_pos_order_line_form">
216 <field name="name">Sale line</field>
217 <field name="model">pos.order.line</field>
218 <field name="arch" type="xml">
219 <form string="POS Order line" version="7.0">
221 <field name="product_id" />
223 <field name="discount" />
224 <field name="price_unit" />
225 <field name="create_date" />
231 <record model="ir.actions.act_window" id="action_pos_order_line">
232 <field name="name">Sale line</field>
233 <field name="type">ir.actions.act_window</field>
234 <field name="res_model">pos.order.line</field>
235 <field name="view_type">form</field>
236 <field name="view_mode">tree</field>
237 <field name="view_id" ref="view_pos_order_line"/>
240 <record model="ir.actions.act_window" id="action_pos_order_line_form">
241 <field name="name">Sale line</field>
242 <field name="type">ir.actions.act_window</field>
243 <field name="res_model">pos.order.line</field>
244 <field name="view_type">form</field>
245 <field name="view_mode">form,tree</field>
246 <field name="view_id" ref="view_pos_order_line_form"/>
249 <record model="ir.actions.act_window" id="action_pos_order_line_day">
250 <field name="name">Sale line</field>
251 <field name="type">ir.actions.act_window</field>
252 <field name="res_model">pos.order.line</field>
253 <field name="view_type">form</field>
254 <field name="view_mode">tree</field>
255 <field name="view_id" ref="view_pos_order_line"/>
256 <field name="domain">[('create_date', '>=', time.strftime('%Y-%m-%d 00:00:00')),('create_date', '<=', time.strftime('%Y-%m-%d 23:59:59'))]</field>
263 <record model="ir.ui.view" id="view_pos_trans_user_form">
264 <field name="name">report.trans.pos.user.form</field>
265 <field name="model">report.transaction.pos</field>
266 <field name="arch" type="xml">
267 <form string="POS " version="7.0">
269 <field name="user_id"/>
270 <field name="journal_id"/>
271 <field name="jl_id"/>
272 <field name="date_create" widget="date"/>
273 <field name="no_trans"/>
274 <field name="amount"/>
275 <field name="invoice_id"/>
282 <record model="ir.ui.view" id="view_trans_pos_user_tree">
283 <field name="name">Sales by user</field>
284 <field name="model">report.transaction.pos</field>
285 <field name="arch" type="xml">
287 <field name="date_create" widget="date" />
288 <field name="user_id"/>
289 <field name="journal_id"/>
290 <field name="jl_id"/>
291 <field name="no_trans" sum="Total Transaction"/>
292 <field name="amount" sum="Amount total"/>
293 <field name="product_nb" />
294 <field name="invoice_id"/>
300 <record model="ir.ui.view" id="view_report_transaction_pos_calendar">
301 <field name="name">report.transaction.pos.calendar</field>
302 <field name="model">report.transaction.pos</field>
303 <field eval="2" name="priority"/>
304 <field name="arch" type="xml">
305 <calendar color="user_id" date_start="date_create" string="POS Report">
306 <field name="journal_id"/>
307 <field name="amount"/>
312 <record model="ir.ui.view" id="view_report_transaction_pos_graph">
313 <field name="name">report.transaction.pos.graph</field>
314 <field name="model">report.transaction.pos</field>
315 <field eval="2" name="priority"/>
316 <field name="arch" type="xml">
317 <graph type="bar" string="POS Report">
318 <field name="user_id" />
319 <field name="amount"/>
320 <field group="True" name="journal_id"/>
325 <record model="ir.actions.act_window" id="action_trans_pos_tree_today">
326 <field name="name">Sales by day</field>
327 <field name="res_model">report.transaction.pos</field>
328 <field name="view_type">form</field>
329 <field name="view_mode">tree,calendar,form,graph</field>
330 <field name="domain">[('date_create','=',time.strftime('%Y-%m-%d'))]</field>
334 <record model="ir.actions.act_window" id="action_trans_pos_tree_month">
335 <field name="name">Sales by month</field>
336 <field name="res_model">report.transaction.pos</field>
337 <field name="view_type">form</field>
338 <field name="view_mode">tree,calendar,form,graph</field>
339 <field name="domain">[('date_create','like',time.strftime('%Y-%m'))]</field>
343 <record model="ir.actions.act_window" id="action_trans_pos_tree">
344 <field name="name">Sales by user</field>
345 <field name="res_model">report.transaction.pos</field>
346 <field name="view_type">form</field>
347 <field name="view_mode">tree,calendar,form,graph</field>
348 <field name="view_id" ref="view_trans_pos_user_tree"/>
352 <record model="ir.ui.view" id="view_report_sales_by_user_pos_form">
353 <field name="name">report.sales.by.user.pos.form</field>
354 <field name="model">report.sales.by.user.pos</field>
355 <field name="arch" type="xml">
356 <form string="POS " version="7.0">
358 <field name="date_order" widget="date"/>
360 <field name="amount"/>
361 <field name="user_id"/>
368 <record model="ir.ui.view" id="view_report_sales_by_user_pos_tree">
369 <field name="name">report.sales.by.user.pos.tree</field>
370 <field name="model">report.sales.by.user.pos</field>
371 <field name="arch" type="xml">
373 <field name="date_order" widget="date"/>
375 <field name="amount"/>
376 <field name="user_id"/>
381 <record model="ir.ui.view" id="view_report_sales_by_user_pos_calendar">
382 <field name="name">report.sales.by.user.pos.calendar</field>
383 <field name="model">report.sales.by.user.pos</field>
384 <field eval="2" name="priority"/>
385 <field name="arch" type="xml">
386 <calendar color="user_id" date_start="date_order" string="POS Report">
388 <field name="amount" />
393 <record model="ir.ui.view" id="view_report_sales_by_user_pos_graph">
394 <field name="name">report.sales.by.user.pos.graph</field>
395 <field name="model">report.sales.by.user.pos</field>
396 <field eval="2" name="priority"/>
397 <field name="arch" type="xml">
398 <graph type="bar" string="Sales by User">
399 <field name="user_id" />
400 <field name="amount"/>
405 <record model="ir.actions.act_window" id="action_report_sales_by_user_pos_today">
406 <field name="name">Sales by User</field>
407 <field name="res_model">report.sales.by.user.pos</field>
408 <field name="view_type">form</field>
409 <field name="view_mode">tree,calendar,form,graph</field>
410 <field name="domain">[('date_order','=',time.strftime('%Y-%m-%d'))]</field>
414 <!-- Sales of user by month -->
416 <record model="ir.ui.view" id="view_report_sales_by_user_pos_month_form">
417 <field name="name">report.sales.by.user.pos.month.form</field>
418 <field name="model">report.sales.by.user.pos.month</field>
419 <field name="arch" type="xml">
420 <form string="POS " version="7.0">
422 <field name="date_order" widget="date"/>
424 <field name="amount"/>
425 <field name="user_id"/>
432 <record model="ir.ui.view" id="view_report_sales_by_user_pos_month_tree">
433 <field name="name">report.sales.by.user.pos.month.tree</field>
434 <field name="model">report.sales.by.user.pos.month</field>
435 <field name="arch" type="xml">
437 <field name="date_order" widget="date"/>
439 <field name="amount"/>
440 <field name="user_id"/>
445 <record model="ir.ui.view" id="view_report_sales_by_user_pos_month_calendar">
446 <field name="name">report.sales.by.user.pos.month.calendar</field>
447 <field name="model">report.sales.by.user.pos.month</field>
448 <field eval="2" name="priority"/>
449 <field name="arch" type="xml">
450 <calendar color="user_id" date_start="date_order" string="POS Report">
452 <field name="amount" />
457 <record model="ir.ui.view" id="view_report_sales_by_user_pos_month_graph">
458 <field name="name">report.sales.by.user.pos.month.graph</field>
459 <field name="model">report.sales.by.user.pos.month</field>
460 <field eval="2" name="priority"/>
461 <field name="arch" type="xml">
462 <graph type="bar" string="Sales by User">
463 <field name="user_id" />
464 <field name="amount"/>
470 <record model="ir.actions.act_window" id="action_report_sales_by_user_pos_month">
471 <field name="name">Sales by User Monthly</field>
472 <field name="res_model">report.sales.by.user.pos.month</field>
473 <field name="view_type">form</field>
474 <field name="view_mode">tree,calendar,form,graph</field>
475 <field name="domain">[('date_order','like',time.strftime('%Y-%m'))]</field>
480 <!-- Product Public Categories -->
481 <record id="product_pos_category_form_view" model="ir.ui.view">
482 <field name="name">pos.category.form</field>
483 <field name="model">pos.category</field>
484 <field name="arch" type="xml">
485 <form string="Pos Categories" version="7.0">
487 <field name="image_medium" widget='image' class="oe_avatar oe_right"/>
488 <div class="oe_left">
491 <field name="parent_id"/>
492 <field name="sequence"/>
499 <record id="product_pos_category_tree_view" model="ir.ui.view">
500 <field name="name">pos.category.tree</field>
501 <field name="model">pos.category</field>
502 <field name="field_parent" eval="False"/>
503 <field name="arch" type="xml">
504 <tree string="Product Product Categories">
505 <field name="sequence" invisible="1"/>
506 <field name="complete_name"/>
510 <record id="product_pos_category_action" model="ir.actions.act_window">
511 <field name="name">Pos Product Categories</field>
512 <field name="type">ir.actions.act_window</field>
513 <field name="res_model">pos.category</field>
514 <field name="view_type">form</field>
515 <field name="view_mode">tree,form</field>
516 <field name="view_id" eval="False"/>
517 <field name="help" type="html">
518 <p class="oe_view_nocontent_create">
519 Click to define a new category.
521 Categories are used to browse your products through the
522 touchscreen interface.
524 If you put a photo on the category, the layout of the
525 touchscreen interface will automatically. We suggest not to put
526 a photo on categories for small (1024x768) screens.
530 <menuitem action="product_pos_category_action" id="menu_product_pos_category" parent="menu_point_of_sale_product" sequence="0" />
534 <record id="product_template_form_view" model="ir.ui.view">
535 <field name="name">product.template.form.inherit</field>
536 <field name="model">product.template</field>
537 <field name="inherit_id" ref="product.product_template_form_view"/>
538 <field name="arch" type="xml">
539 <group name="website_and_pos" position="inside">
540 <group name="pos" string="Point of Sale">
541 <field name="pos_categ_id"/>
542 <field name="available_in_pos"/>
543 <field name="to_weight" />
544 <field name="income_pdt"/>
545 <field name="expense_pdt"/>
548 <field name="ean13" position="after">
549 <button colspan="2" name="edit_ean" type="object" string="Set a Custom EAN" class="oe_link oe_edit_only"/>
555 <menuitem name="Configuration" parent="menu_point_root"
556 id="menu_point_config_product" sequence="25" groups="group_pos_manager"/>
558 <record id="action_account_journal_form" model="ir.actions.act_window">
559 <field name="name">Payment Methods</field>
560 <field name="res_model">account.journal</field>
561 <field name="view_type">form</field>
562 <field name="view_mode">tree,form</field>
563 <field name="context" eval="{'default_journal_user': 1, 'default_type': 'cash'}"/>
564 <field name="domain">[('journal_user','=', 1)]</field>
565 <field name="help" type="html">
566 <p class="oe_view_nocontent_create">
567 Click to add a payment method.
569 Payment methods are defined by accounting journals having the
570 field <i>PoS Payment Method</i> checked. In order to be useable
571 from the touchscreen interface, you must set the payment method
572 on the <i>Point of Sale</i> configuration.
577 <menuitem action="action_account_journal_form"
578 id="menu_action_account_journal_form_open"
579 parent="menu_point_config_product"
582 <record model="ir.ui.view" id="view_pos_order_tree_all_sales_lines">
583 <field name="name">POS Sales Lines</field>
584 <field name="model">pos.order.line</field>
585 <field name="arch" type="xml">
586 <tree string="POS Orders lines">
587 <field name="order_id" />
588 <field name="create_date" />
589 <field name="product_id" />
591 <field name="price_unit" />
595 <record model="ir.actions.act_window" id="action_pos_all_sales_lines">
596 <field name="name">All sales lines</field>
597 <field name="type">ir.actions.act_window</field>
598 <field name="res_model">pos.order.line</field>
599 <field name="view_type">form</field>
600 <field name="view_id" ref="view_pos_order_tree_all_sales_lines" />
603 <!-- Miscellaneous Operations/Reporting -->
604 <menuitem name="Point of Sale" parent="base.menu_reporting" id="menu_point_rep" sequence="50" groups="group_pos_manager"/>
607 <record model="ir.actions.act_window" id="action_pos_invoice">
608 <field name="name">Invoices</field>
609 <field name="type">ir.actions.act_window</field>
610 <field name="res_model">account.invoice</field>
611 <field name="view_type">form</field>
612 <field name="view_mode">tree,form</field>
613 <field name="domain">[('origin','like','POS')]</field>
616 <menuitem icon="STOCK_PRINT" action="action_report_pos_details"
617 id="menu_pos_details" parent="menu_point_rep" sequence="6" />
619 <record model="ir.actions.act_url" id="action_pos_pos">
620 <field name="name">Start Point of Sale</field>
621 <field name="url">/pos/web/</field>
622 <field name="target">self</field>
625 <!-- Top menu item -->
626 <record model="ir.ui.view" id="view_pos_config_form">
627 <field name="name">pos.config.form.view</field>
628 <field name="model">pos.config</field>
629 <field name="arch" type="xml">
630 <form string="Point of Sale Configuration" version="7.0">
632 <button string="Set to Active" name="set_active" type="object" states="inactive,deprecated"/>
633 <button string="Set to Inactive" name="set_inactive" type="object" states="active" />
634 <button string="Set to Deprecated" name="set_deprecate" type="object" states="active,inactive" />
635 <div class="oe_right">
636 <field name="state" widget="statusbar" statusbar_visible="active,inactive,deprecated" statusbar_colors='{"deprecated" : "red"}' nolabel="1"/>
641 <label for="name" class="oe_edit_only"/>
646 <field name="picking_type_id" widget="selection" groups="stock.group_locations"
647 on_change="onchange_picking_type_id(picking_type_id)"/>
648 <field name="stock_location_id" groups="stock.group_locations"/>
649 <field name="pricelist_id" groups="product.group_sale_pricelist"/>
650 <field name="currency_id" invisible="1"/>
651 <field name="journal_id" widget="selection"/>
652 <field name="group_by" groups="account.group_account_user"/>
653 <field name="sequence_id" readonly="1" groups="base.group_no_one"/>
655 <separator string="Available Payment Methods" colspan="4"/>
656 <field name="journal_ids" colspan="4" nolabel="1">
657 <tree string="Journals">
658 <field name="code" />
659 <field name="name" />
660 <field name="type" />
661 <field name="cash_control" />
664 <group string="Features" >
666 <field name="iface_vkeyboard" />
667 <field name="iface_invoicing" />
670 <field name="iface_big_scrollbars" />
673 <group string="Hardware Proxy" >
674 <field name="proxy_ip" />
675 <field name="iface_print_via_proxy" />
676 <field name="iface_scan_via_proxy" />
677 <field name="iface_electronic_scale" />
678 <field name="iface_cashdrawer" />
680 <group string="Receipt" >
681 <field name="receipt_header" placeholder="A custom receipt header message"/>
682 <field name="receipt_footer" placeholder="A custom receipt header footage"/>
690 <record model="ir.ui.view" id="view_pos_config_tree">
691 <field name="name">pos.config.tree.view</field>
692 <field name="model">pos.config</field>
693 <field name="arch" type="xml">
694 <tree string="Point of Sale Configuration" colors="grey:state == 'inactive'">
695 <field name="name" />
696 <field name="stock_location_id" groups="stock.group_locations"/>
697 <field name="state" />
702 <record model="ir.ui.view" id="view_pos_config_search">
703 <field name="name">pos.config.search.view</field>
704 <field name="model">pos.config</field>
705 <field name="arch" type="xml">
706 <search string="Point of Sale Config">
707 <field name="name" />
708 <filter string="Active" domain="[('state', '=', 'active')]" />
709 <filter string="Inactive" domain="[('state', '=', 'inactive')]" />
710 <field name="stock_location_id" groups="stock.group_locations" />
717 id="act_pos_config_sessions"
719 src_model="pos.config"
720 res_model="pos.session"
721 domain="[('config_id', '=', active_id)]" />
723 <record model="ir.actions.act_window" id="action_pos_config_pos">
724 <field name="name">Point of Sales</field>
725 <field name="type">ir.actions.act_window</field>
726 <field name="res_model">pos.config</field>
727 <field name="view_type">form</field>
728 <field name="view_mode">tree,form</field>
729 <field name="search_view_id" ref="view_pos_config_search" />
733 parent="menu_point_config_product"
734 action="action_pos_config_pos"
735 id="menu_pos_config_pos"
736 groups="group_pos_manager"/>
739 id="act_pos_session_orders"
741 src_model="pos.session"
742 res_model="pos.order"
743 context="{'search_default_session_id': active_id, 'default_session_id' : active_id }" />
747 <record model="ir.ui.view" id="view_pos_session_form">
748 <field name="name">pos.session.form.view</field>
749 <field name="model">pos.session</field>
750 <field name="arch" type="xml">
751 <form string="Point of Sale Session" version="7.0">
753 <button name="open_cb" type="object" string="Validate & Open Session" states="opening_control" class="oe_highlight"/>
754 <button name="open_frontend_cb" type="object" string="Continue Selling" states="opened"
755 class="oe_highlight"/>
756 <button name="cashbox_control" type="workflow" string="End of Session"
757 attrs="{'invisible' : ['|', ('cash_control', '=', False),('state', '!=', 'opened')]}"
758 class="oe_highlight" />
759 <button name="close" type="workflow" string="Validate Closing & Post Entries"
760 attrs="{'invisible' : ['|', ('cash_control', '=', True),('state', '!=', 'opened')]}"
761 class="oe_highlight" />
762 <button name="close" type="workflow" string="Validate Closing & Post Entries" states="closing_control"
763 class="oe_highlight" />
765 <field name="state" widget="statusbar" statusbar_visible="opening_control,opened,closing_control,closed" nolabel="1" />
769 <div class="oe_right oe_button_box">
770 <button class="oe_stat_button" name="%(action_pos_box_in)d"
771 type="action" states="opened,closing_control" icon="fa-level-down">
772 <div>Put<br/>Money In</div>
774 <button class="oe_stat_button" name="%(action_pos_box_out)d"
775 type="action" states="opened,closing_control" icon="fa-level-up">
776 <div>Take<br/>Money Out</div>
779 <h1 class="oe_title">
781 <field name="name" attrs="{'invisible': [('name','=','/')]}" class="oe_inline"/>
784 <field name="cash_control" invisible="1" />
786 <field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'point_of_sale.group_pos_manager', 'base.group_sale_manager']}"/>
787 <field name="currency_id" invisible="1"/>
788 <field name="config_id"/>
791 <field name="start_at" attrs="{'invisible' : [('state', '=', 'opening_control')]}"/>
792 <field name="stop_at" attrs="{'invisible' : [('state', '!=', 'closed')]}"/>
795 <group string="Opening Cash Control" attrs="{'invisible' : [('cash_control', '=', False)]}">
796 <field name="opening_details_ids" nolabel="1" colspan="2" attrs="{'readonly' : [('state', '!=', 'opening_control')]}">
797 <tree string="Opening Cashbox Lines" editable="bottom">
798 <field name="pieces" readonly="1" />
799 <field name="number_opening" on_change="on_change_sub_opening(pieces, number_opening)" />
800 <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
804 <group string="Closing Cash Control" attrs="{'invisible': ['|', ('cash_control', '=', False), ('state', '=', 'opening_control')]}">
805 <field name="details_ids" nolabel="1" colspan="2" attrs="{'readonly' : [('state', '=', 'closed')]}">
806 <tree string="Cashbox Lines" editable="bottom">
807 <field name="pieces" readonly="1" />
808 <field name="number_closing" on_change="on_change_sub_closing(pieces, number_closing)"/>
809 <field name="subtotal_closing" string="Closing Subtotal" sum="Total"/>
814 <div attrs="{'invisible' : [('cash_control', '=', False)]}">
815 <group class="oe_subtotal_footer oe_right">
816 <field name="cash_register_balance_start" readonly="1" string="Opening Balance" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/>
817 <label for="cash_register_total_entry_encoding" attrs="{'invisible' : [('state', '=', 'opening_control')]}" string="+ Transactions" class="oe_force_bold oe_opening_total"/>
818 <field name="cash_register_total_entry_encoding" nolabel="1" attrs="{'invisible' : [('state', '=', 'opening_control')]}" class="oe_bold oe_pos_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
819 <label for="cash_register_balance_end" attrs="{'invisible' : [('state', '=', 'opening_control')]}" string="= Theoretical Closing Balance" class="oe_force_bold oe_opening_total"/>
820 <field name="cash_register_balance_end" nolabel="1" attrs="{'invisible' : [('state', '=', 'opening_control')]}" class="oe_bold oe_pos_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
822 <div class="oe_clear"/>
823 <div attrs="{'invisible' : ['|', ('cash_journal_id', '=', False), ('state', '!=', 'opening_control')]}" class="oe_view_nocontent" groups="point_of_sale.group_pos_manager">
824 <p class="oe_view_nocontent_create">
825 You can define another list of available currencies on the
826 <i>Cash Registers</i> tab of the <b><field name="cash_journal_id" class="oe_inline"/></b>
832 <group class="oe_subtotal_footer oe_right" attrs="{'invisible': ['|', ('cash_control', '=', False), ('state', '=', 'opening_control')]}">
833 <field name="cash_register_balance_end_real" string="Real Closing Balance" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/>
837 <group class="oe_subtotal_footer oe_right" attrs="{'invisible': ['|', ('cash_control', '=', False), ('state', '=', 'opening_control')]}">
838 <field name="cash_register_difference" class="oe_subtotal_footer_separator oe_right oe_pos_total oe_pos_difference" widget="monetary" options="{'currency_field': 'currency_id'}"/>
842 <separator string="Summary by Payment Methods" attrs="{'invisible' : [('state', '=', 'opening_control')]}"/>
843 <field name="statement_ids" attrs="{'invisible' : [('state', '=', 'opening_control')]}">
844 <tree string="Statements">
845 <field name="name" />
846 <field name="journal_id" />
847 <field name="balance_start" />
848 <field name="total_entry_encoding" />
849 <field name="balance_end_real" />
850 <field name="difference" />
851 <field name="currency" groups="base.group_multi_currency" />
852 <field name="state" />
861 <record model="ir.ui.view" id="view_pos_session_tree">
862 <field name="name">pos.session.tree.view</field>
863 <field name="model">pos.session</field>
864 <field name="arch" type="xml">
865 <tree string="Point of Sale Session">
866 <field name="config_id" />
867 <field name="name" />
868 <field name="user_id" />
869 <field name="start_at" />
870 <field name="stop_at" />
871 <field name="state" />
876 <record model="ir.ui.view" id="view_pos_session_search">
877 <field name="name">pos.session.search.view</field>
878 <field name="model">pos.session</field>
879 <field name="arch" type="xml">
880 <search string="Point of Sale Session">
881 <field name="name" />
882 <filter string="Open" domain="[('state', '=', 'opened')]" />
884 <filter string="Today" domain="[('start_at', '>=', time.strftime('%%Y-%%m-%%d 00:00:00'))]" />
885 <field name="config_id" />
886 <field name="user_id" />
887 <group expand="0" string="Group By">
888 <filter string="User" icon="terp-personal" domain="[]" context="{'group_by' : 'user_id'}" />
889 <filter string="Point of Sales" domain="[]" context="{'group_by': 'user_id'}" />
896 <record model="ir.actions.act_window" id="action_pos_session">
897 <field name="name">All Sessions</field>
898 <field name="type">ir.actions.act_window</field>
899 <field name="res_model">pos.session</field>
900 <field name="view_type">form</field>
901 <field name="view_mode">tree,form</field>
902 <field name="search_view_id" ref="view_pos_session_search" />
903 <field name="help" type="html">
904 <p class="oe_view_nocontent_create">
905 Click to start a new session.
907 A session is a period of time, usually one day, during which
908 you sell through the point of sale. The user has to check the
909 currencies in your cash registers at the beginning and the end
912 Note that you may use the menu <i>Your Session</i>
913 to quickly open a new session.
919 parent="menu_point_of_sale"
920 action="action_pos_session"
921 id="menu_pos_session_all"
923 groups="group_pos_manager"/>
925 <record id="view_pos_order_filter" model="ir.ui.view">
926 <field name="name">pos.order.list.select</field>
927 <field name="model">pos.order</field>
928 <field name="arch" type="xml">
929 <search string="Search Sales Order">
931 <field name="date_order"/>
932 <filter icon="terp-document-new" string="New" domain="[('state','=','draft')]"/>
933 <filter icon="gtk-apply" string="Done" domain="[('state','in',('paid','invoiced','done'))]"/>
934 <filter icon="terp-check" string="Invoiced" domain="[('state','=','invoiced')]"/>
935 <filter icon="gtk-convert" string="Posted" domain="[('state','=','done')]"/>
936 <field name="user_id"/>
937 <field name="session_id"/>
938 <group expand="0" string="Group By">
939 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
940 <filter string="Salesman" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
941 <filter string="Session" icon="terp-personal" domain="[]" context="{'group_by':'session_id'}"/>
942 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
943 <filter string="Order Month" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
949 <menuitem action="action_pos_session_opening"
950 parent="menu_point_of_sale"
951 id="menu_pos_session_opening" sequence="0"/>
953 <record model="ir.ui.view" id="pos_ean13_generator">
954 <field name="name">pos.ean_wizard</field>
955 <field name="model">pos.ean_wizard</field>
956 <field name="arch" type="xml">
957 <form string="Ean13 Generator" version="7.0">
959 Enter a reference, it will be converted
960 automatically to a valid EAN number.
963 <field name="ean13_pattern" class="oe_inline"/>
966 <button name="sanitize_ean13" type="object" string="Apply" class="oe_highlight"/> or
967 <button icon="gtk-stop" special="cancel"
968 string="Cancel" class="oe_link"/>