[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:
santiky 2021-09-07 16:14:02 +02:00
parent 9d4020cbb9
commit 16a72610f2
Signed by: snt
GPG key ID: A9FD34930EADBE71
7 changed files with 155 additions and 1 deletions

View file

@ -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', [])),