[13.0][FIX] contract: Set layout for section and note in portal template

This commit is contained in:
Denis Roussel
2021-04-30 16:18:34 +02:00
committed by Pedro M. Baeza
parent 388cee39ef
commit b79b83f0d5

View File

@@ -227,56 +227,87 @@
t-foreach="contract.contract_line_ids" t-foreach="contract.contract_line_ids"
t-as="line" t-as="line"
> >
<tr> <tr
<td name="td_name"> t-att-class="'bg-200 font-weight-bold o_line_section' if line.display_type == 'line_section' else 'font-italic o_line_note' if line.display_type == 'line_note' else ''"
<span t-field="line.name" /> >
</td> <t t-if="not line.display_type">
<td name="td_quantity" class="text-right"> <td name="td_name">
<span t-field="line.quantity" /> <span t-field="line.name" />
</td> </td>
<td name="td_price_unit" class="text-right"> <td
<span name="td_quantity"
t-field="line.price_unit" class="text-right"
t-options='{"widget": "monetary", "display_currency": contract.currency_id}' >
/> <span t-field="line.quantity" />
</td> </td>
<td <td
name="td_recurring_interval" name="td_price_unit"
class="text-right" class="text-right"
>
<span
t-field="line.price_unit"
t-options='{"widget": "monetary", "display_currency": contract.currency_id}'
/>
</td>
<td
name="td_recurring_interval"
class="text-right"
>
<span
t-field="line.recurring_interval"
/>
<t
t-if="line.recurring_rule_type=='daily'"
>Day(s)</t>
<t
t-if="line.recurring_rule_type=='weekly'"
>Week(s)</t>
<t
t-if="line.recurring_rule_type=='monthly'"
>Month(s)</t>
<t
t-if="line.recurring_rule_type=='monthlylastday'"
>Month(s) last
day</t>
<t
t-if="line.recurring_rule_type=='quarterly'"
>Quarter(s)</t>
<t
t-if="line.recurring_rule_type=='semesterly'"
>Semester(s)</t>
<t
t-if="line.recurring_rule_type=='yearly'"
>Year(s)</t>
</td>
<td
name="td_recurring_next_date"
class="text-right"
>
<span
t-field="line.recurring_next_date"
/>
</td>
</t>
<t
t-if="line.display_type == 'line_section'"
> >
<span <td colspan="99">
t-field="line.recurring_interval" <span t-field="line.name" />
</td>
<t
t-set="current_section"
t-value="line"
/> />
<t <t
t-if="line.recurring_rule_type=='daily'" t-set="current_subtotal"
>Day(s)</t> t-value="0"
<t
t-if="line.recurring_rule_type=='weekly'"
>Week(s)</t>
<t
t-if="line.recurring_rule_type=='monthly'"
>Month(s)</t>
<t
t-if="line.recurring_rule_type=='monthlylastday'"
>Month(s) last day</t>
<t
t-if="line.recurring_rule_type=='quarterly'"
>Quarter(s)</t>
<t
t-if="line.recurring_rule_type=='semesterly'"
>Semester(s)</t>
<t
t-if="line.recurring_rule_type=='yearly'"
>Year(s)</t>
</td>
<td
name="td_recurring_next_date"
class="text-right"
>
<span
t-field="line.recurring_next_date"
/> />
</td> </t>
<t t-if="line.display_type == 'line_note'">
<td colspan="99">
<span t-field="line.name" />
</td>
</t>
</tr> </tr>
</t> </t>
</tbody> </tbody>