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
Odoo Training Center
|Asked: 10/27/15, 2:43 PM|
|Seen: 526 times|
|Last updated: 10/27/15, 2:43 PM|