Merge PR #1375 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-02-19 10:43:31 +00:00
4 changed files with 9 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ Contributors
* Pedro M. Baeza
* David Vidal
* Sergio Teruel
* Carlos Roca
* Xavier Jimenez <xavier.jimenez@qubiq.es>

View File

@@ -67,3 +67,9 @@ class StockInventory(models.Model):
if products:
inventory.product_ids = [(6, 0, products.ids)]
return super()._action_start()
def _get_inventory_lines_values(self):
vals = super()._get_inventory_lines_values()
if self.filter == "lots":
vals = list(filter(lambda x: x["prod_lot_id"] in self.lot_ids.ids, vals))
return vals

View File

@@ -4,5 +4,6 @@
* Pedro M. Baeza
* David Vidal
* Sergio Teruel
* Carlos Roca
* Xavier Jimenez <xavier.jimenez@qubiq.es>

View File

@@ -420,6 +420,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Pedro M. Baeza</li>
<li>David Vidal</li>
<li>Sergio Teruel</li>
<li>Carlos Roca</li>
</ul>
</li>
<li>Xavier Jimenez &lt;<a class="reference external" href="mailto:xavier.jimenez&#64;qubiq.es">xavier.jimenez&#64;qubiq.es</a>&gt;</li>