Server IP : 127.0.0.2 / Your IP : 18.118.14.81 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/product/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="product_template_tree_view" model="ir.ui.view"> <field name="name">product.template.product.tree</field> <field name="model">product.template</field> <field name="arch" type="xml"> <tree string="Product"> <field name="sequence" widget="handle"/> <field name="default_code"/> <field name="name"/> <field name="list_price"/> <field name="standard_price"/> <field name="categ_id"/> <field name="type"/> <field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="product.group_uom"/> <field name="active" invisible="1"/> </tree> </field> </record> <record id="product_template_only_form_view" model="ir.ui.view"> <field name="name">product.template.product.form</field> <field name="model">product.template</field> <field name="mode">primary</field> <field name="priority" eval="8" /> <field name="inherit_id" ref="product.product_template_form_view"/> <field name="arch" type="xml"> <xpath expr="//form" position="attributes"> <attribute name="name">Product Template</attribute> </xpath> <field name="type" position="after"> <field name="default_code" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/> <field name="barcode" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/> </field> <div name="button_box" position="inside"> <button name="%(product.product_variant_action)d" type="action" icon="fa-sitemap" class="oe_stat_button" attrs="{'invisible': [('product_variant_count', '<=', 1)]}" groups="product.group_product_variant"> <field string="Variants" name="product_variant_count" widget="statinfo" /> </button> </div> <xpath expr="//page[@name='sales']" position="after"> <page name="variants" string="Variants" groups="product.group_product_variant"> <field name="attribute_line_ids" widget="one2many_list" context="{'show_attribute': False}"> <tree string="Variants" editable="bottom"> <field name="attribute_id"/> <field name="value_ids" widget="many2many_tags" options="{'no_create_edit': True}" domain="[('attribute_id', '=', attribute_id)]" context="{'default_attribute_id': attribute_id}"/> </tree> </field> <p class="oe_grey"> <strong>Warning</strong>: adding or deleting attributes will delete and recreate existing variants and lead to the loss of their possible customizations. </p> </page> </xpath> </field> </record> <record id="product_template_kanban_view" model="ir.ui.view"> <field name="name">Product.template.product.kanban</field> <field name="model">product.template</field> <field name="arch" type="xml"> <kanban> <field name="image_small"/> <field name="lst_price"/> <field name="product_variant_count"/> <field name="product_variant_ids"/> <field name="currency_id"/> <templates> <t t-name="kanban-box"> <div class="oe_kanban_global_click"> <div class="o_kanban_image"> <img t-att-src="kanban_image('product.template', 'image_small', record.id.value)"/> </div> <div class="oe_kanban_details"> <strong> <span t-if="record.default_code.value">[<field name="default_code"/>]</span> <field name="name"/> </strong> <div t-if="record.product_variant_count.value > 1" groups="product.group_product_variant"> <strong> <t t-esc="record.product_variant_count.value"/> Variants </strong> </div> <div name="tags"/> <ul> <li>Price: <field name="lst_price" widget="monetary"></field></li> </ul> <div name="tags"/> </div> </div> </t> </templates> </kanban> </field> </record> <record id="product_template_action" model="ir.actions.act_window"> <field name="name">Products</field> <field name="type">ir.actions.act_window</field> <field name="res_model">product.template</field> <field name="view_mode">kanban,tree,form</field> <field name="view_type">form</field> <field name="view_id" ref="product_template_kanban_view"/> <field name="context">{"search_default_filter_to_sell":1}</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to define a new product. </p><p> You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers. </p><p> The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc. </p> </field> </record> </odoo>