[FIX] purchase: RFQ showing product price on vendor link
Steps to reproduce the bug: When sharing the RFQ link to a vendor, the price unit was displayed. The price shouldn't be displayed if the PO is not confirmed. opw:2547660 closes odoo/odoo#73681 X-original-commit: 4e2fd7552d5fd7fb1daeb65abffe11d42add09fb Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com> Signed-off-by: Simon Goffin (sig) <sig@openerp.com> Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
This commit is contained in:
@@ -264,11 +264,11 @@
|
||||
<th class="text-right">Quantity</th>
|
||||
<th t-if="update_dates" class="text-right">Scheduled Date</th>
|
||||
<th t-if="update_dates" class="text-right"><strong>Update Here</strong></th>
|
||||
<th t-if="not update_dates" t-attf-class="text-right {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">Unit Price</th>
|
||||
<th t-if="not update_dates" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<th t-if="not update_dates and order.state in ['purchase', 'done']" t-attf-class="text-right {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">Unit Price</th>
|
||||
<th t-if="not update_dates and order.state in ['purchase', 'done']" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span>Taxes</span>
|
||||
</th>
|
||||
<th class="text-right" >
|
||||
<th class="text-right" t-if="order.state in ['purchase', 'done']" >
|
||||
<span groups="account.group_show_line_subtotals_tax_excluded">Amount</span>
|
||||
<span groups="account.group_show_line_subtotals_tax_included">Total Price</span>
|
||||
</th>
|
||||
@@ -309,16 +309,16 @@
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td t-if="not update_dates" t-attf-class="text-right {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">
|
||||
<td t-if="not update_dates and order.state in ['purchase', 'done']" t-attf-class="text-right {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">
|
||||
<div
|
||||
t-field="line.price_unit"
|
||||
class="text-right"
|
||||
/>
|
||||
</td>
|
||||
<td t-if="not update_dates" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<td t-if="not update_dates and order.state in ['purchase', 'done']" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.taxes_id))"/>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<td class="text-right" t-if="not update_dates and order.state in ['purchase', 'done']">
|
||||
<span class="oe_order_line_price_subtotal" t-field="line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
||||
<span class="oe_order_line_price_total" t-field="line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
||||
</td>
|
||||
@@ -337,7 +337,7 @@
|
||||
</t>
|
||||
</tr>
|
||||
|
||||
<t t-if="current_section and (line_last or order.order_line[line_index+1].display_type == 'line_section')">
|
||||
<t t-if="current_section and (line_last or order.order_line[line_index+1].display_type == 'line_section') and order.state in ['purchase', 'done']">
|
||||
<tr class="is-subtotal text-right">
|
||||
<td colspan="99">
|
||||
<strong class="mr16">Subtotal</strong>
|
||||
@@ -352,7 +352,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="total" class="row" name="total" style="page-break-inside: avoid;">
|
||||
<div id="total" t-if="order.state in ['purchase', 'done']" class="row" name="total" style="page-break-inside: avoid;">
|
||||
<div t-attf-class="#{'col-4' if report_type != 'html' else 'col-sm-7 col-md-5'} ml-auto">
|
||||
<t t-call="purchase.purchase_order_portal_content_totals_table"/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user