Server IP : 127.0.0.2 / Your IP : 3.129.209.87 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_uom_tree_view" model="ir.ui.view"> <field name="name">product.uom.tree</field> <field name="model">product.uom</field> <field name="arch" type="xml"> <tree string="Units of Measure"> <field name="name"/> <field name="category_id"/> <field name="uom_type"/> </tree> </field> </record> <record id="product_uom_form_view" model="ir.ui.view"> <field name="name">product.uom.form</field> <field name="model">product.uom</field> <field name="arch" type="xml"> <form string="Units of Measure"> <group> <group> <field name="name"/> <field name="category_id"/> <field name="uom_type"/> <field name="factor" digits="[42,5]" attrs="{'invisible':[('uom_type','!=','smaller')], 'readonly':[('uom_type','=','bigger')]}"/> <field name="factor_inv" digits="[42,5]" attrs="{'invisible':[('uom_type','!=','bigger')], 'readonly':[('uom_type','!=','bigger')]}"/> <p attrs="{'invisible':[('uom_type','!=','smaller')]}" class="oe_grey" colspan="2"> e.g: 1 * (reference unit) = ratio * (this unit) </p> <p attrs="{'invisible':[('uom_type','!=','bigger')]}" class="oe_grey" colspan="2"> e.g: 1 * (this unit) = ratio * (reference unit) </p> </group> <group> <field name="active"/> <field name="rounding" digits="[42, 5]"/> </group> </group> </form> </field> </record> <record id="product_uom_form_action" model="ir.actions.act_window"> <field name="name">Units of Measure</field> <field name="type">ir.actions.act_window</field> <field name="res_model">product.uom</field> <field name="view_type">form</field> <field name="view_id" ref="product_uom_tree_view"/> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a new unit of measure. </p><p> You must define a conversion rate between several Units of Measure within the same category. </p> </field> </record> <record id="product_uom_categ_form_view" model="ir.ui.view"> <field name="name">product.uom.categ.form</field> <field name="model">product.uom.categ</field> <field name="arch" type="xml"> <form string="Units of Measure categories"> <group> <field name="name"/> </group> </form> </field> </record> <record id="product_uom_categ_form_action" model="ir.actions.act_window"> <field name="name">Unit of Measure Categories</field> <field name="type">ir.actions.act_window</field> <field name="res_model">product.uom.categ</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a new unit of measure category. </p><p> Units of measure belonging to the same category can be converted between each others. For example, in the category <i>'Time'</i>, you will have the following units of measure: Hours, Days. </p> </field> </record> </odoo>