You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
469 B

import logging
from odoo import models, fields, api, _
_logger = logging.getLogger(__name__)
class ProductCategory(models.Model):
_inherit = "product.category"
forbidden_provider_ids = fields.Many2many(
comodel_name="payment.provider",
column1="category_id",
column2="provider_id",
relation="forbidden_category_provider_rel",
string="Forbidden providers",
domain=[("state", "in", ["enabled", "test"])],
)