details:   https://code.tryton.org/tryton/commit/53fe9912970d
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Feb 23 18:24:15 2026 +0100
description:
        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
diffstat:

 modules/sale/sale.py |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (19 lines):

diff -r bbd83750852b -r 53fe9912970d modules/sale/sale.py
--- a/modules/sale/sale.py      Fri Feb 20 17:50:02 2026 +0100
+++ b/modules/sale/sale.py      Mon Feb 23 18:24:15 2026 +0100
@@ -819,14 +819,7 @@
             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,

Reply via email to