From e196af6372eb1d03a93f437e66268d5eb8f4d1da Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 7 Nov 2014 23:00:34 +0100 Subject: [PATCH] Use sale_ok and purchase_ok instead of tweaking payment type --- account_payment_purchase/models/purchase_order.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account_payment_purchase/models/purchase_order.py b/account_payment_purchase/models/purchase_order.py index a8d73c235..26d08dd23 100644 --- a/account_payment_purchase/models/purchase_order.py +++ b/account_payment_purchase/models/purchase_order.py @@ -34,8 +34,7 @@ class PurchaseOrder(models.Model): "and will be copied to the supplier invoice.") payment_mode_id = fields.Many2one( 'payment.mode', string='Payment Mode', - domain="['|', ('payment_order_type', '=', 'payment'), " - "('payment_order_type', '=', 'both')]") + domain="[('purchase_ok', '=', True)]") @api.model def _get_default_supplier_partner_bank(self, partner):