[ADD] commission_simple_agent_purchase
This commit is contained in:
14
commission_simple_agent_purchase/models/res_company.py
Normal file
14
commission_simple_agent_purchase/models/res_company.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright 2024 Akretion France (https://www.akretion.com/)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
commission_product_id = fields.Many2one(
|
||||
'product.product', string='Commission Product', ondelete='restrict', check_company=True,
|
||||
domain=[('type', '=', 'service')])
|
||||
Reference in New Issue
Block a user