Use sale_ok and purchase_ok instead of tweaking payment type

This commit is contained in:
Pedro M. Baeza
2014-11-07 23:00:34 +01:00
committed by David Ramia
parent 29c2aca7d6
commit 88d729051b

View File

@@ -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):