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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user