mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] sale_exception_portal: Fixed views and updated manifest
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
'name': 'Sale Exception Portal',
|
||||
'summary': 'Display sale exceptions on customer portal',
|
||||
'version': '15.0.1.0.0',
|
||||
'version': '16.0.1.0.0',
|
||||
'author': "Hibou Corp.",
|
||||
'category': 'Sale',
|
||||
'license': 'AGPL-3',
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
<xpath expr="//li[1]" position="replace">
|
||||
<t t-set="sale_order_exceptions" t-value="sale_order._check_sale_order_exceptions()"/>
|
||||
<li class="list-group-item flex-grow-1">
|
||||
<a t-if="sale_order.has_to_be_signed(True) and not sale_order_exceptions"
|
||||
<a t-if="sale_order._has_to_be_signed(True) and not sale_order_exceptions"
|
||||
role="button" class="btn btn-primary btn-block mb8"
|
||||
data-toggle="modal"
|
||||
data-target="#modalaccept"
|
||||
href="#">
|
||||
<i class="fa fa-check"/>
|
||||
<t t-if="sale_order.has_to_be_paid(True)"> Sign & Pay</t>
|
||||
<t t-if="sale_order._has_to_be_paid(True)"> Sign & Pay</t>
|
||||
<t t-else=""> Accept & Sign</t>
|
||||
</a>
|
||||
<a t-elif="sale_order.has_to_be_paid(True) and not sale_order_exceptions"
|
||||
<a t-elif="sale_order._has_to_be_paid(True) and not sale_order_exceptions"
|
||||
role="button"
|
||||
id="o_sale_portal_paynow"
|
||||
data-toggle="modal"
|
||||
@@ -39,11 +39,11 @@
|
||||
</xpath>
|
||||
|
||||
<!-- BOTTOM ACTIONS -->
|
||||
<xpath expr="//div[@t-if='sale_order.has_to_be_signed(True) or sale_order.has_to_be_paid(True)']" position="replace">
|
||||
<div t-if="sale_order.has_to_be_signed(True) or sale_order.has_to_be_paid(True)"
|
||||
<xpath expr="//div[@t-if='sale_order._has_to_be_signed(True) or sale_order._has_to_be_paid(True)']" position="replace">
|
||||
<div t-if="sale_order._has_to_be_signed(True) or sale_order._has_to_be_paid(True)"
|
||||
class="row justify-content-center text-center d-print-none pt-1 pb-4">
|
||||
<t t-set="sale_order_exceptions" t-value="sale_order._check_sale_order_exceptions()"/>
|
||||
<t t-if="sale_order.has_to_be_signed(True)">
|
||||
<t t-if="sale_order._has_to_be_signed(True)">
|
||||
<div t-if="not sale_order_exceptions" class="col-sm-auto mt8">
|
||||
<a role="button" class="btn btn-primary" data-toggle="modal"
|
||||
data-target="#modalaccept" href="#">
|
||||
@@ -61,7 +61,7 @@
|
||||
data-target="#modaldecline" href="#"> <i class="fa fa-times"/> Reject</a>
|
||||
</div>
|
||||
</t>
|
||||
<div t-elif="sale_order.has_to_be_paid(True) and not sale_order_exceptions" class="col-sm-auto mt8">
|
||||
<div t-elif="sale_order._has_to_be_paid(True) and not sale_order_exceptions" class="col-sm-auto mt8">
|
||||
<a role="button" data-toggle="modal" data-target="#modalaccept" href="#"
|
||||
t-att-class="'%s' % ('btn btn-light' if sale_order.transaction_ids else 'btn btn-primary')">
|
||||
<i class="fa fa-check"/> <t t-if="not sale_order.signature">Accept & Pay</t>
|
||||
|
||||
Reference in New Issue
Block a user