Odoo 10, How to create a commission field (Float) from configuration menu of sale (used for all sale order for a certain period of time) then assign it to a field, namely, sale_order_commission to calculate the commission for a sale_order ( based on amount_total of the sale_order form). Thanks
_inherit = "res.company"
commission_pct = fields.Float( )
.....
_inherit = "sale.order"
commission_total = fields.Monetary(string="Commissions",
compute="_compute_commission_total_", store=True)
....
_compute_commission_total_(self)
commission_total = amount_total* "commission_pct from res.com"
However I failed to transfer the "commission_pct" to current self.env"