Skip to content

Commit

Permalink
[FIX] sale: onchange for sale_delay/customer_lead not needed as it is…
Browse files Browse the repository at this point in the history
… in sale_stock
  • Loading branch information
jco-odoo committed Oct 1, 2015
1 parent 59ab9bd commit 729c1fb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions addons/sale/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,6 @@ def _get_price_reduce(self):
for line in self:
line.price_reduce = line.price_subtotal / line.product_uom_qty if line.product_uom_qty else 0.0

@api.onchange('product_id')
def _onchange_product_id(self):
for line in self:
line.customer_lead = line.product_id and line.product_id.sale_delay or 0.0

@api.multi
@api.onchange('order_id', 'product_id')
def _compute_tax_id(self):
Expand Down

0 comments on commit 729c1fb

Please sign in to comment.