[IMP] commission_simple*: add XLSX report + improve PO generation
Add message un chatter of PO
This commit is contained in:
@@ -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."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user