Files
odoo_source/addons/l10n_eu_service/wizard/wizard.xml
T
Habib (ayh) 79e17df6f9 [IMP] l10n_eu_service: OSS - Automatic Tax and Fiscal Position Mapping for EU Countries
Due to EU e-commerce 'One-Stop Shop' which becomes available on 1 July 2021, EU companies involved in distance sales are able to file their taxes using the new OSS process. Adopting OSS is now simplified in Odoo.

On installation of the module, all companies having a fiscal country in the EU will be processed.
For all existing domestic taxes in the company, an associated foreign tax (standard rate, reduced rate, etc) is found in the `EU_TAX_MAP`. This mapping will be created in a fiscal position that is automatically detected based on the customers' country.

All that is required from the user, is to review the tax mappings according to the products and services sold by the company.

A refresh button is also available in the odoo settings to redo/update the fiscal positions. This might be useful after adding a new tax.

Note: The tax mapping herein is not intended to cover all possible tax mappings between EU countries, but rather, the most commonly used ones. It is advised that users with special tax cases update the created Fiscal Positions according to their requirements.

Closes [Task 2579615]

closes odoo/odoo#73042

X-original-commit: 9c548c423614d1305542ebdffdbcd0da3cf09899
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Habib Ayob <h4818@users.noreply.github.com>
2021-07-01 12:22:15 +00:00

53 lines
2.8 KiB
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'),
('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-secondary" 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>
</odoo>