- Introduce a new account.tax.report object > Tax report lines now refer to a tax report, and the tax report to a country - Tax report lines can share tags accross reports within the same country > To support the cases where some report is a simplified version of another one: some of its lines can be computed in the same way as the 'bigger' report. > This is done by giving the same tag_name to the tax report lines, and the same country_id to their parent report. > Full support for tag name modification, and the way it impacts the shared tags (sometimes, we can overwrite them all, sometimes we must delete them, sometimes, we create new tags to replace them on some report lines). - Support copying tax report (and the lines/tags linked to it), so that it is possible to duplicate them and change the country set on the duplicate for use in another country (coopying is way better as replacing in place, as we don't keep any link to an xmlid, and still allow using the original report in the original country it was created for). - Make all l10n* modules compatible with those changes closes odoo/odoo#38964 Related: odoo/enterprise#6217 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
40 lines
1.5 KiB
XML
40 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="tax_report_line_id" widget="selection" domain="[('tag_name', '!=', None), ('report_id', '=', report_id)]"/>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="amount"/>
|
|
</group>
|
|
<group>
|
|
<field name="adjustment_type"/>
|
|
</group>
|
|
<group string="Accounts">
|
|
<field name="debit_account_id" options="{'no_create': True}"/>
|
|
<field name="credit_account_id" options="{'no_create': True}"/>
|
|
</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"/>
|
|
<button string="Cancel" class="btn btn-secondary" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|