Files
odoo_source/addons/account/wizard/wizard_tax_adjustments_view.xml
T
Merlin (megu) 950b0ae88d [FIX] account: show tax reports of company's country
The tax adjustment wizard shows tax reports of countries other than the
 current company's country

Steps to reproduce:
1. Install Accounting
2. Go to Accounting > Configuration > Management > Tax Reports
3. Create a report for another country than the current company and add
 a line with a tag name
4. Go to Accounting > Accounting > Actions > Tax Adjustements (in debug
mode)
5. The created tax report line is suggested but it shouldn't

Solution:
Put the domain of `tax_report_line_id` in python and add a filter on the
country

opw-2760337

closes odoo/odoo#84854

X-original-commit: cc13d20996f1e0a261829ced91cbbe18d6236fb5
Signed-off-by: William André (wan) <wan@odoo.com>
2022-02-23 09:06:49 +00:00

41 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="tax_adjustments_wizard" model="ir.ui.view">
<field name="name">tax.adjustments.wizard.form</field>
<field name="model">tax.adjustments.wizard</field>
<field name="arch" type="xml">
<form>
<h1>
<field name="reason" class="oe_inline" placeholder="Reason..."/>
</h1>
<group>
<field name="report_id" invisible="1"/>
<field name="fiscal_country_ids" invisible="1"/>
<field name="tax_report_line_id" options="{'no_open': True, 'no_create': True}"/>
</group>
<group>
<group>
<field name="amount"/>
</group>
<group>
<field name="adjustment_type"/>
</group>
<group string="Accounts">
<field name="debit_account_id"/>
<field name="credit_account_id"/>
</group>
<group string="Options">
<field name="journal_id"/>
<field name="date"/>
</group>
</group>
<footer>
<button name="create_move" string="Create and post move" type="object" default_focus="1" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
</record>
</odoo>