[wip] stock_picking_deposit para gestión de albaranes en depósito.
De momento sólo tiene un campo nuevo para marcar que ese albarán es un depósito.
This commit is contained in:
parent
9d4020cbb9
commit
16a72610f2
7 changed files with 155 additions and 1 deletions
|
@ -22,7 +22,7 @@ class SaleOrderOrderLine(models.Model):
|
|||
if line.discount:
|
||||
price_disc = taxes['total_excluded'] * (1 - (line.discount or 0.0) / 100.0)
|
||||
ctx = dict(self.env.context, handle_price_include=False)
|
||||
taxes = line.tax_id.with_context(ctx).compute_all(price_disc, line.order_id.currency_id, line.product_uom_qty, product=line.product_id, partner=line.order_id.partner_shipping_id)
|
||||
taxes = line.tax_id.with_context(ctx).compute_all(price_disc, line.order_id.currency_id, 1, product=line.product_id, partner=line.order_id.partner_shipping_id)
|
||||
|
||||
line.update({
|
||||
'price_tax': sum(t.get('amount', 0.0) for t in taxes.get('taxes', [])),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue