[FIX] website_sale : don't hide Send quotation

A customer start an order on website
A few days later the back office call the customer to finalize the order. And try to send the quotation.
--> Issue the button "Send Quotation" is remplaced by "Send a Recovery Email"

closes odoo/odoo#71333

Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
Co-authored-by: William Braeckman (wbr) <williambraeckman@yahoo.fr>
This commit is contained in:
Florent de Labarre
2023-01-20 20:57:53 +01:00
co-authored by William Braeckman
parent a74f048e89
commit e8a3e9319a
@@ -60,6 +60,10 @@
class="btn-primary"
attrs="{'invisible': ['|', ('is_abandoned_cart', '=', False), ('cart_recovery_email_sent', '=', True)]}"/>
</xpath>
<xpath expr="//button[@name='action_quotation_send' and @states='sent,sale']" position="after">
<button name="action_quotation_send" string="Send by Email" type="object"
attrs="{'invisible': ['|', '|', ('is_abandoned_cart', '=', False), ('cart_recovery_email_sent', '=', True), ('state', '!=', 'draft')]}"/>
</xpath>
</field>
</record>