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 Artem Kostyuk
parent b39c7221c9
commit ac4deb87b3

View File

@@ -28,8 +28,7 @@ class SaleOrder(models.Model):
payment_mode_id = fields.Many2one(
'payment.mode', string='Payment Mode',
domain="['|', ('payment_order_type', '=', 'debit'), "
"('payment_order_type', '=', 'both')]")
domain="[('sale_ok', '=', True)]")
@api.multi
def onchange_partner_id(self, partner_id):