Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am trying to extend the sale_commission module to support website sales. On the sale.order.line model, there is a one2many field with a function to get default commissions based on the order customer.
res = self.env['sale.commission'].get_default_commissions()
return [(0, 0, x) for x in res]
commissions = fields.One2many(
string="Agents & commissions",
This works fine when I create an order on the backend. However, the commissions are not set when the order is created from the website. Any ideas how I can call the default function when the order line is created from the website?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/27/15, 2:43 PM|
|Seen: 579 times|
|Last updated: 10/27/15, 2:43 PM|