2 Now I confirm the Quotation with "Pay before delivery" policy.
4 !workflow {model: sale.order, action: order_confirm, ref: sale.sale_order_4}
6 I check that delivery order should not created before invoice is paid.
8 !python {model: sale.order}: |
9 sale_order = self.browse(cr, uid, ref("sale.sale_order_4"))
10 assert len(sale_order.picking_ids) == False, "Delivery order should not created before invoice."
11 assert sale_order.invoice_ids, "Invoice should be created."