code improvement code improvement payment_method to payment_method_id writeoff_account to writeoff_account_id property_account_receivable to property_account_receivable_id property_account_payable to property_account_payable_id property_account_expense_categ to property_account_expense_categ_id property_account_income_categ to property_account_income_categ_id property_account_expense to property_account_expense_id property_account_income to property_account_income_id property_account_expense_categ fix sale_tax to sale_tax_id and default_sale_tax to default_sale_tax_id purchase_tax to purchase_tax_id and default_purchase_tax to default_purchase_tax_id ref_companies to ref_companies_ids property_account_position to property_account_position_id property_payment_term to property_payment_term_id property_supplier_payment_term to property_supplier_payment_term_id bank_accounts_id to bank_accounts_ids payment_method fix after rebase user_type after rebase payment_method fix after rebase after rebase invoice to invoice_id fix payment_method_id after rebase code improvement [IMP]user_type to user_type_id [IMP]property_stock_account_input_categ, property_stock_account_output_categ to _id [IMP]improve after rebase [IMP]fix type [IMP]Account: code improvement
79 lines
4.0 KiB
XML
79 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<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="chart_id" domain="[('parent_id','=', False)]"
|
|
context="{'company_id': company_id}" options="{'no_create': True}"/>
|
|
<field name="company_id" invisible="1"/>
|
|
<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'),
|
|
('type', '=', 'percent'),
|
|
('account_collected_id', '!=', False),
|
|
('tax_code_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="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" 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>
|
|
<field name="state">open</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>
|
|
|
|
</data>
|
|
</openerp>
|