[FIX] account: make it possible to create tax report lines manually
It wasn't possible before that, as the report_id field did not receive its default value before being checked (as it is required), so it was always detected as missing. Solves issue https://github.com/odoo/odoo/issues/60045 closes odoo/odoo#60286 X-original-commit: e2d873aee9d979d3369db3bd649067ec8fbc8043 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<field name="tag_name"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="report_id" readonly="1"/>
|
||||
<field name="report_id" invisible="1"/>
|
||||
<field name="parent_id" readonly="1"/>
|
||||
<field name="code"/>
|
||||
</group>
|
||||
@@ -71,26 +71,7 @@
|
||||
<field name="formula"/>
|
||||
</group>
|
||||
<group string="Sublines">
|
||||
<field name="children_line_ids" context="{'default_report_id': report_id}">
|
||||
<form>
|
||||
<group>
|
||||
<group>
|
||||
<field name="sequence" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="tag_name"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="code"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="formula"/>
|
||||
</group>
|
||||
<group string="Sublines">
|
||||
<field name="children_line_ids" context="{'form_view_ref': 'account.account_tax_report_line_form'}"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
<field name="children_line_ids" context="{'default_report_id': report_id}"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user