Server IP : 127.0.0.2 / Your IP : 3.147.72.3 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/mrp/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <!-- Product Template --> <record id="view_mrp_product_template_form_inherited" model="ir.ui.view"> <field name="name">product.form.mrp.inherited</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="inside"> <label for="produce_delay" attrs="{'invisible':[('type','=','service')]}"/> <div attrs="{'invisible':[('type','=','service')]}"> <field name="produce_delay" class="oe_inline"/> days </div> </group> </field> </record> <record id="product_template_search_view_procurment" model="ir.ui.view"> <field name="name">product.template.search.bom</field> <field name="model">product.template</field> <field name="inherit_id" ref="product.product_template_search_view"/> <field name="arch" type="xml"> <xpath expr="//filter[@name='consumable']" position="after"> <separator/> <filter string="Components" name="components" domain="[('bom_ids','not in',[])]"/> </xpath> </field> </record> <record id="product_template_action" model="ir.actions.act_window"> <field name="name">Products</field> <field name="res_model">product.template</field> <field name="view_type">form</field> <field name="view_mode">kanban,tree,form</field> <field name="context">{"search_default_consumable": 1, 'default_type': 'product'}</field> </record> <menuitem id="menu_mrp_product_form" name="Products" action="product_template_action" parent="menu_mrp_bom"/> <record id="product_template_form_view_bom_button" model="ir.ui.view"> <field name="name">product.template.procurement</field> <field name="model">product.template</field> <field name="inherit_id" ref="product.product_template_only_form_view"/> <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/> <field name="arch" type="xml"> <div name="button_box" position="inside"> <button class="oe_stat_button" name="%(template_open_bom)d" type="action" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-flask"> <field string="Bill of Materials" name="bom_count" widget="statinfo" /> </button> <button class="oe_stat_button" name="action_view_mos" type="object" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-list-alt"> <field string="Manufacturing" name="mo_count" widget="statinfo" /> </button> </div> </field> </record> <record id="product_product_form_view_bom_button" model="ir.ui.view"> <field name="name">product.product.procurement</field> <field name="model">product.product</field> <field name="inherit_id" ref="product.product_normal_form_view"/> <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/> <field name="arch" type="xml"> <div name="button_box" position="inside"> <button class="oe_stat_button" name="action_view_bom" type="object" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-flask"> <field string="Bill of Materials" name="bom_count" widget="statinfo" /> </button> <button class="oe_stat_button" name="%(act_product_mrp_production)d" type="action" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" icon="fa-list-alt"> <field string="Manufacturing" name="mo_count" widget="statinfo" /> </button> </div> </field> </record> </data> </odoo>