[IMP] commission_simple*: add XLSX report + improve PO generation

Add message un chatter of PO
This commit is contained in:
Alexis de Lattre
2025-09-01 21:43:54 +00:00
committed by Florian da Costa
parent 827119df6e
commit 232cb24fd9
15 changed files with 244 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
# Copyright Akretion France (http://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, api, _
from odoo.exceptions import ValidationError
class CommissionProfile(models.Model):
_inherit = 'commission.profile'
commission_product_id = fields.Many2one(
'product.product', string='Specific Commission Product', ondelete='restrict',
check_company=True,
domain=[('type', '=', 'service')],
help="If not set, Odoo will use the commission product configured on the accounting "
"configuration page."
)