Always allow manual method on sale

Since 77cbf0a1abbe the manual methods can be triggered with a button so it does
not prevent to trigger other methods.

Closes #14622
This commit is contained in:
Cédric Krier
2026-02-23 18:24:15 +01:00
parent 00c723b0eb
commit 8607d60cf8
+1 -8
View File
@@ -819,14 +819,7 @@ class Sale(
return
for sale in sales:
if (sale.invoice_method == 'shipment'
and sale.shipment_method in {'invoice', 'manual'}):
raise SaleValidationError(
gettext('sale.msg_sale_invalid_method',
invoice_method=sale.invoice_method_string,
shipment_method=sale.shipment_method_string,
sale=sale.rec_name))
if (sale.shipment_method == 'invoice'
and sale.invoice_method in {'shipment', 'manual'}):
and sale.shipment_method == 'invoice'):
raise SaleValidationError(
gettext('sale.msg_sale_invalid_method',
invoice_method=sale.invoice_method_string,