Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.221.172.197
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/mrp/views/mrp_message_views.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="mrp_message_view_form" model="ir.ui.view">
        <field name="name">mrp.message.view.form</field>
        <field name="model">mrp.message</field>
        <field name="arch" type="xml">
            <form string="Inventory Message">
                <sheet>
                    <group>
                        <group>
                            <field name="product_id" required="True"/>
                            <field name="valid_until"/>
                        </group>
                        <group>
                            <field name="bom_id"/>
                            <field name="workcenter_id"/>
                        </group>
                    </group>
                    <field name="message" widget="html" editor_height="450px"/>
                </sheet>
            </form>
        </field>
    </record>

    <record id="mrp_message_view_form_embedded_product" model="ir.ui.view">
        <field name="name">mrp.message.view.form.embedded.product</field>
        <field name="model">mrp.message</field>
        <field name="arch" type="xml">
            <form string="Inventory Message">
                <group>
                    <group>
                        <field name="product_tmpl_id" required="True"/>
                        <field name="product_id" groups="product.group_product_variant" string="Variant"/>
                    </group>
                    <group>
                        <field name="valid_until"/>
                        <field name="workcenter_id"/>
                    </group>
                </group>
                <field name="message" widget="html" editor_height="450px"/>
                <footer class="oe_edit_only">
                    <button name="save" type="object" string="Save" class="oe_highlight"/>
                    <button string="Discard" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="mrp_message_view_form_embedded_bom" model="ir.ui.view">
        <field name="name">mrp.message.view.form.embedded.bom</field>
        <field name="model">mrp.message</field>
        <field name="arch" type="xml">
            <form string="Inventory Message">
                <group>
                    <group>
                        <field name="bom_id"/>
                        <field name="routing_id"/>
                    </group>
                    <group>
                        <field name="valid_until"/>
                        <field name="workcenter_id"/>
                    </group>
                </group>
                <field name="message" widget="html" editor_height="450px"/>
                <footer class="oe_edit_only">
                    <button name="save" type="object" string="Save" class="oe_highlight"/>
                    <button string="Discard" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="mrp_message_view_tree" model="ir.ui.view">
        <field name="name">mrp.message.view.tree</field>
        <field name="model">mrp.message</field>
        <field name="arch" type="xml">
            <tree>
                <field name="valid_until" string="Validity Date"/>
                <field name="create_uid" string="Author"/>
                <field name="product_id"/>
                <field name="name" string="Message"/>
            </tree>
        </field>
    </record>

    <record id="mrp_message_view_search" model="ir.ui.view">
        <field name="name">mrp.message.view.search</field>
        <field name="model">mrp.message</field>
        <field name="arch" type="xml">
            <search string="Search">
                <filter string="Active" name="active_message" domain="[('valid_until', '&gt;=', current_date)]"/>
                <filter string="My Messages" name="my_messages" domain="[('create_uid', '=', uid)]"/>
           </search>
       </field>
    </record>

    <record id="mrp_message_action_main" model="ir.actions.act_window">
        <field name="name">Workorder Messages</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">mrp.message</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="context">{'search_default_active_message': True}</field>
        <field name="help" type="html">
            <p class="oe_view_nocontent_create">
                Click to create a new message.
            </p><p>
                Use messages to warn manufacturing or inventory people about any change in the
                products, process, or actions to take care of. (e.g; Warning, the bill of material changed,
                check the details in new worksheet)
            </p><p>
                Messages can be configured to appear during any operation: receptions, delivery orders,
                manufacturing orders, work orders, etc.
            </p>
        </field>
    </record>

    <menuitem id="mrp_message_menu"
          parent="menu_mrp_manufacturing"
          action="mrp_message_action_main"
          sequence="26"/>
</odoo>

Anon7 - 2022
AnonSec Team