|
4 | 4 | id="delivery_note_report_template_customer_code"
|
5 | 5 | inherit_id="l10n_it_delivery_note.delivery_note_report_template"
|
6 | 6 | >
|
7 |
| - <xpath |
8 |
| - expr="//div[hasclass('page')]/table/thead/tr/th[1]" |
9 |
| - position="attributes" |
10 |
| - > |
11 |
| - <attribute name="style">display:none</attribute> |
| 7 | + <xpath expr="//table//th[@name='th_product']" position="attributes"> |
| 8 | + <attribute name="style">display: none;</attribute> |
12 | 9 | </xpath>
|
13 |
| - <xpath expr="//div[hasclass('page')]/table/thead/tr/th[1]" position="after"> |
14 |
| - <th class="text-left"> |
15 |
| - Code |
16 |
| - </th> |
| 10 | + <xpath expr="//table//th[@name='th_product']" position="after"> |
| 11 | + <th name="th_customer_code" class="text-start">Code</th> |
17 | 12 | </xpath>
|
18 |
| - <xpath |
19 |
| - expr="//div[hasclass('page')]/table/thead/tr/th[3]" |
20 |
| - position="attributes" |
21 |
| - > |
22 |
| - <attribute name="style">display:none</attribute> |
| 13 | + <xpath expr="//table//th[@name='th_description']" position="attributes"> |
| 14 | + <attribute name="style">display: none;</attribute> |
23 | 15 | </xpath>
|
24 | 16 | <xpath expr="//div[hasclass('page')]/table/thead/tr/th[3]" position="after">
|
25 |
| - <th class="text-left"> |
26 |
| - Product Name |
27 |
| - </th> |
| 17 | + <th name="th_customer_name" class="text-start">Product Name</th> |
28 | 18 | </xpath>
|
29 |
| - <xpath |
30 |
| - expr="//div[hasclass('page')]//table/tbody/t/tr/t/td[1]/span" |
31 |
| - position="attributes" |
32 |
| - > |
| 19 | + <xpath expr="//table//td[@name='td_product']/span" position="attributes"> |
33 | 20 | <attribute name="t-if">not line.product_customer_code</attribute>
|
34 | 21 | </xpath>
|
35 | 22 | <xpath
|
36 |
| - expr="//div[hasclass('page')]/table/tbody/t/tr/t/td[1]" |
37 |
| - position="inside" |
| 23 | + expr="//table//td[@name='td_product']/span[@t-field='line.product_id.default_code']" |
| 24 | + position="after" |
38 | 25 | >
|
39 |
| - <t t-if="line.product_customer_code"> |
40 |
| - <span t-esc="line.product_customer_code" /> |
41 |
| - </t> |
| 26 | + <span |
| 27 | + t-if="line.product_customer_code" |
| 28 | + t-out="line.product_customer_code" |
| 29 | + /> |
42 | 30 | </xpath>
|
43 | 31 | <xpath
|
44 |
| - expr="//div[hasclass('page')]//table/tbody/t/tr/t/td[2]/span" |
| 32 | + expr="//table//td[@name='td_name']/span[@t-field='line.name']" |
45 | 33 | position="attributes"
|
46 | 34 | >
|
47 | 35 | <attribute name="t-if">not line.product_customer_name</attribute>
|
48 | 36 | </xpath>
|
49 | 37 | <xpath
|
50 |
| - expr="//div[hasclass('page')]/table/tbody/t/tr/t/td[2]" |
51 |
| - position="inside" |
| 38 | + expr="//table//td[@name='td_name']/span[@t-field='line.name']" |
| 39 | + position="after" |
52 | 40 | >
|
53 |
| - <t t-if="line.product_customer_name"> |
54 |
| - <span t-esc="line.product_customer_name" /> |
55 |
| - </t> |
| 41 | + <span |
| 42 | + t-if="line.product_customer_name" |
| 43 | + t-out="line.product_customer_name" |
| 44 | + /> |
56 | 45 | </xpath>
|
57 | 46 | </template>
|
58 | 47 | </odoo>
|
0 commit comments