Make use of the new tax model to suppress 'adjustment' type for taxes, and refactor the generic adjustment wizard so that it direcly sets tags on the account move lines generated instead of needing an tax. [IMP] l10n_be: remove taxes of type 'adjustment' closes odoo/odoo#33669 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.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="country_id" invisible="1"/>
|
|
<field name="tax_report_line_id" widget="selection" domain="[('tag_name', '!=', None), ('country_id', '=', country_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>
|