Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.14.135.79
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/l10n_eu_service/wizard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/l10n_eu_service/wizard/wizard.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
        <record id="eu_service_view" model="ir.ui.view">
            <field name="name">l10n_eu_service.wizard.form</field>
            <field name="model">l10n_eu_service.wizard</field>
            <field name="arch" type="xml">
                <form string='Setup EU MOSS Taxes'>
                    <p>
                        Based on the options selected below, this wizard will create one
                        fiscal position mapping for each EU country to which you are selling
                        services.
                        Each fiscal position will automatically map your national VAT tax for
                        services to the corresponding VAT tax in the country your customer
                        belongs to.
                        <br/>
                        You can use the wizard again later to add more countries.
                    </p>
                    <group>
                        <field name="company_id" groups="base.group_multi_company"/>
                        <field name="fiscal_position_id" domain="[('company_id','=', company_id)]"
                               options="{'no_create': True}"
                               placeholder="Current EU B2C Fiscal Position, if any"/>
                        <field name="tax_id"
                               domain="[('type_tax_use', '=', 'sale'),
                                        ('amount_type', '=', 'percent'),
                                        ('account_id', '!=', False),
                                        ('company_id','=', company_id)]"
                               options="{'no_create': True}"/>
                        <field name="account_collected_id" 
                            placeholder="Keep empty to use current Service VAT account"/>
                        <field name="done_country_ids" widget="many2many_tags" readonly="1" 
                               attrs="{'invisible': [('done_country_ids', '=', [(6, False, [])])]}"/>
                        <field name="todo_country_ids" widget="many2many_tags" 
                               domain="[('country_group_ids', 'in', %(base.europe)d)]"/>
                    </group>
                    <footer>
                        <button string="Create Fiscal Positions and Taxes"
                                name="generate_eu_service" type="object" class="btn-primary"/>
                        <button string="Cancel" class="btn-default" special="cancel"/>
                    </footer>
                 </form>
            </field>
        </record>

        <record id="action_eu_service" model="ir.actions.act_window">
            <field name="name">Setup EU MOSS Taxes</field>
            <field name="res_model">l10n_eu_service.wizard</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="eu_service_view"/>
            <field name="target">new</field>
        </record>

        <record id="open_l10n_eu_service" model="ir.actions.todo">
            <field name="action_id" ref="action_eu_service"/>
            <field name="type">automatic</field>
        </record>

        <record id="view_account_config_settings_inherit" model="ir.ui.view">
            <field name="name">account settings</field>
            <field name="model">account.config.settings</field>
            <field name="inherit_id" ref="account.view_account_config_settings"/>
            <field name="arch" type="xml">
               <field name="default_sale_tax_id" position="after">
                    <button type="action" name="%(action_eu_service)d"
                            string="Setup EU MOSS Taxes" class="oe_link"/>
                </field>         
            </field>
        </record>
</odoo>

Anon7 - 2022
AnonSec Team