Skip to content
Snippets Groups Projects
Commit 351355c8 authored by jvm-odoo's avatar jvm-odoo
Browse files

[FIX] account: fix report invoice edit with Studio


Issue

	- Install Accounting & Studio
	- Accounting > Open studio
	- Reports > Invoices
	- Add a Field Column in the table
	  and drag it after "Description"

	Some elements are shifted, which
	causes inconsistency in the table

Cause

	In 924ca780 we added
	a th "source document" with
	a td containing the value.

	In bc131c0c we removed
	the td but not the th.

	Studio adds hook after each th & td.
	Since there is th but no td, there is an
	inconsistency in the hooks.

Solution

	Remove the th from the view to avoid having
	a useless hook.

OPW-2226726

closes odoo/odoo#48702

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent ee8ddc7c
Branches
Tags
No related merge requests found
......@@ -52,7 +52,8 @@
<!-- TODO: remove in master -->
<t t-set="colspan" t-value="6"/>
<th name="th_description" class="text-left"><span>Description</span></th>
<th name="th_source" class="d-none text-left"><span>Source Document</span></th>
<!-- TODO: remove in master -->
<th name="th_source" class="d-none text-left" t-if="0"><span>Source Document</span></th>
<th name="th_quantity" class="text-right"><span>Quantity</span></th>
<th name="th_priceunit" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}"><span>Unit Price</span></th>
<th name="th_price_unit" t-if="display_discount" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment