[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 924ca78068 we added
	a th "source document" with
	a td containing the value.

	In bc131c0cfb 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#48798

X-original-commit: 351355c8cb8c64927b5f82d4c1e1deca74353305
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
jvm-odoo
2020-04-02 11:52:12 +00:00
parent aafee08bc6
commit 9664c69825
-1
View File
@@ -50,7 +50,6 @@
<thead>
<tr>
<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>
<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 '' }}">