mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Use sale_ok and purchase_ok instead of tweaking payment type
This commit is contained in:
committed by
Artem Kostyuk
parent
b39c7221c9
commit
ac4deb87b3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user