Files
odoo-usability/commission_simple_agent_purchase/models/res_company.py
Alexis de Lattre 232cb24fd9 [IMP] commission_simple*: add XLSX report + improve PO generation
Add message un chatter of PO
2025-11-13 11:23:09 +01:00

19 lines
674 B
Python

# 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')])
commission_po_config = fields.Selection([
('single_line', 'Single Line'),
('details', 'One line per commission line'),
], default='details', string="Purchase Order Configuration")