Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.227.102.59
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/stock_landed_costs/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/stock_landed_costs/views/stock_landed_cost_views.xml
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data>
        <!-- STOCK.LANDED.COST -->
        <record id='view_stock_landed_cost_form' model='ir.ui.view'>
            <field name="name">stock.landed.cost.form</field>
            <field name="model">stock.landed.cost</field>
            <field name="arch" type="xml">
                <form string="Landed Costs">
                    <header>
                        <button name="button_validate" string="Validate" states="draft" class="oe_highlight" type="object"/>
                        <button name="button_cancel" string="Cancel" states="draft" type="object"/>
                        <field name="state" widget="statusbar" statusbar_visible="draft,done"/>
                    </header>
                    <sheet>
                        <div class="oe_title">
                            <label for="name" class="oe_edit_only"/>
                            <h1>
                                <field name="name" placeholder="Landed Cost Name"/>
                            </h1>
                        </div>
                        <group>
                            <group>
                                <field name="date"/>
                                <field name="picking_ids" widget="many2many_tags" domain="[('state', '=', 'done')]"/>
                            </group>
                            <group>
                                <field name="account_journal_id"/>
                                <field name="account_move_id"/>
                            </group>
                        </group>

                        <separator string="Cost Lines"/>
                        <p class="oe_grey">
                            Landed cost are computed based on the purchase unit of measure.
                        </p>
                        <field name="cost_lines">
                            <form string="Cost Lines">
                                <group>
                                    <group>
                                        <field name="product_id"
                                            domain="[('landed_cost_ok', '=', True)]"
                                            context="{'default_landed_cost_ok': True, 'form_view_ref':'stock_landed_costs.view_stock_landed_cost_type_form'}"/>
                                        <field name="price_unit"/>
                                    </group>
                                    <group>
                                        <field name="split_method"/>
                                        <field name="account_id"/>
                                    </group>
                                </group>
                                <label for="name"/>
                                <field name="name"/>
                            </form>
                            <tree string="Cost Lines" editable="bottom">
                                <field name="product_id"
                                    domain="[('landed_cost_ok', '=', True)]"
                                    context="{'default_landed_cost_ok': True, 'form_view_ref':'stock_landed_costs.view_stock_landed_cost_type_form'}"/>
                                <field name="name"/>
                                <field name="account_id"/>
                                <field name="split_method"/>
                                <field name="price_unit"/>
                            </tree>
                        </field>
                        <group class="oe_subtotal_footer oe_right">
                            <field name="amount_total" widget="monetary"/>
                            <button colspan="2" name="compute_landed_cost" string="Compute" type="object" class="oe_right btn-default" states='draft'/>
                        </group>

                        <div class="oe_clear"/>
                        <separator string="Valuation Adjustments"/>
                        <field name="valuation_adjustment_lines">
                            <form string="Valuation Adjustments">
                                <group>
                                    <group>
                                        <field name="product_id"/>
                                        <field name="quantity"/>
                                    </group>
                                    <group>
                                        <field name="former_cost"/>
                                        <field name="additional_landed_cost"/>
                                    </group>
                                </group>
                            </form>
                            <tree string="Valuation Adjustments" editable="bottom" create="0">
                                <field name="cost_line_id" readonly="1"/>
                                <field name="product_id" readonly="1"/>
                                <field name="weight" readonly="1"/>
                                <field name="volume" readonly="1"/>
                                <field name="quantity" readonly="1"/>
                                <field name="former_cost_per_unit" readonly="1" widget="monetary"/>
                                <field name="former_cost" readonly="1"/>
                                <field name="additional_landed_cost"/>
                            </tree>
                        </field>
                    </sheet>
                    <div class="oe_chatter">
                        <field name="message_follower_ids" widget="mail_followers"/>
                        <field name="message_ids" widget="mail_thread"/>
                    </div>
                </form>
            </field>
        </record>

        <record id='view_stock_landed_cost_tree' model='ir.ui.view'>
            <field name="name">stock.landed.cost.tree</field>
            <field name="model">stock.landed.cost</field>
            <field name="arch" type="xml">
                <tree string="Landed Costs">
                    <field name="name"/>
                    <field name="date"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="view_stock_landed_cost_search" model="ir.ui.view">
            <field name="name">stock.landed.cost.search</field>
            <field name="model">stock.landed.cost</field>
            <field name="arch" type="xml">
                <search string="Landed Costs">
                    <field name="name" string="Name"/>
                    <field name="date"/>
                    <separator/>
                    <filter string="Draft" name="draft" domain="[('state','=','draft')]"/>
                    <filter string="Done" name="done" domain="[('state','=','done')]"/>
                    <group expand="0" string="Group By">
                        <filter string="Month" context="{'group_by': 'date'}"/>
                        <filter string="Status" context="{'group_by': 'state'}"/>
                    </group>
                </search>
            </field>
        </record>

        <record id='action_stock_landed_cost' model='ir.actions.act_window'>
            <field name="name">Landed Costs</field>
            <field name="res_model">stock.landed.cost</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="context">{}</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">
                    Click to create a new landed cost.
                </p>
            </field>
        </record>

        <menuitem action="action_stock_landed_cost" name="Landed Costs" parent="stock.menu_stock_inventory_control" id="menu_stock_landed_cost" sequence="99"/>

        <!-- STOCK.LANDED.COST.TYPE -->
        <record id="view_stock_landed_cost_type_form" model="ir.ui.view">
            <field name="name">stock.landed.cost.type.form</field>
            <field name="model">product.product</field>
            <field name="priority">25</field>
            <field name="arch" type="xml">
                <form string="Landed Costs">
                    <sheet>
                        <field name="image_medium" widget="image" class="oe_avatar"/>
                        <div class="oe_title">
                            <div class="oe_edit_only">
                                <label for="name" name='label_name' string="Product Name"/>
                            </div>
                            <h1>
                                <field name="name"/>
                            </h1>
                            <label for="categ_id" class="oe_edit_only"/>
                            <h2>
                                <field name="categ_id"/>
                            </h2>
                            <div name="options" groups="base.group_user">
                                <field name="landed_cost_ok" readonly="1"/>
                                <label for="landed_cost_ok"/>
                                <field name="active"/>
                                <label for="active"/>
                            </div>
                        </div>
                        <notebook>
                            <page string="Information">
                                <group>
                                    <group>
                                        <field name="split_method"/>
                                        <field name="standard_price"/>
                                        <field name="property_account_expense_id" domain="[('internal_type','=','other'),('deprecated', '=', False)]"/>
                                    </group>
                                    <group>
                                        <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
                                        <field name="type"/>
                                    </group>
                                </group>
                                <field name="description" placeholder="describe the product characteristics..."/>
                            </page>
                        </notebook>
                    </sheet>
                    <div class="oe_chatter">
                        <field name="message_follower_ids" widget="mail_followers"/>
                        <field name="message_ids" widget="mail_thread"/>
                    </div>
                </form>
            </field>
        </record>

        <record id="stock_landed_cost_tree_view" model="ir.ui.view">
            <field name="name">product.product.tree</field>
            <field name="model">product.product</field>
            <field name="arch" type="xml">
                <tree string="Products">
                    <field name="name"/>
                    <field name="split_method"/>
                    <field name="standard_price"/>
                </tree>
            </field>
        </record>

        <record id="stock_landed_cost_type_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="domain">[('landed_cost_ok','=',True)]</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="context">{'default_landed_cost_ok': True}</field>
            <field name="search_view_id" ref="product.product_search_form_view"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to define a new kind of landed cost.
              </p>
            </field>
        </record>

        <record id="stock_landed_cost_type_action1" model="ir.actions.act_window.view">
           <field eval="1" name="sequence"/>
           <field name="view_mode">tree</field>
           <field name="view_id" ref="stock_landed_cost_tree_view"/>
           <field name="act_window_id" ref="stock_landed_cost_type_action"/>
        </record>

        <record id="stock_landed_cost_type_action2" model="ir.actions.act_window.view">
           <field eval="2" name="sequence"/>
           <field name="view_mode">form</field>
           <field name="view_id" ref="view_stock_landed_cost_type_form"/>
           <field name="act_window_id" ref="stock_landed_cost_type_action"/>
        </record>

	<menuitem action="stock_landed_cost_type_action" name="Landed Cost Type" parent="stock.menu_warehouse_config" id="menu_stock_landed_cost_type" sequence="3"/>

    </data>
</odoo>

Anon7 - 2022
AnonSec Team