Server IP : 127.0.0.2 / Your IP : 3.14.15.223 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/point_of_sale/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="product_template_search_view_pos" model="ir.ui.view"> <field name="name">product.template.search.pos.form</field> <field name="model">product.template</field> <field name="inherit_id" ref="product.product_template_search_view"/> <field name="arch" type="xml"> <filter name="filter_to_sell" position="before"> <filter name="filter_to_availabe_pos" string="Available in POS" domain="[('available_in_pos', '=', True)]"/> </filter> </field> </record> <record id="product_product_action" model="ir.actions.act_window"> <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">kanban,tree,form</field> <field name="context" eval="{'search_default_filter_to_availabe_pos': 1}"/> <field name="domain" eval="[]"/> <field name="search_view_id" eval="False"/> <!-- Force empty --> <field name="view_id" eval="False"/> <!-- Force empty --> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a new product. </p><p> You must define a product for everything you sell through the point of sale interface. </p><p> Do not forget to set the price and the point of sale category in which it should appear. If a product has no point of sale category, you can not sell it through the point of sale interface. </p> </field> </record> <menuitem id="menu_pos_products" action="product_product_action" parent="menu_point_of_sale" sequence="3"/> <record id="product_template_form_view" model="ir.ui.view"> <field name="name">product.template.form.inherit</field> <field name="model">product.template</field> <field name="inherit_id" ref="stock.view_template_property_form"/> <field name="arch" type="xml"> <group name="sale_condition" position="after"> <group name="pos" string="Point of Sale"> <field name="available_in_pos"/> <field name="pos_categ_id" attrs="{'invisible': [('available_in_pos', '=', False)]}"/> <field name="to_weight" attrs="{'invisible': [('available_in_pos', '=', False)]}"/> </group> </group> </field> </record> </odoo>