[IMP] update dotfiles [ci skip]

This commit is contained in:
oca-git-bot
2022-03-31 17:27:35 +02:00
committed by Víctor Martínez
parent e05c772ddf
commit 9bd34c60a2
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {}) env = api.Environment(cr, SUPERUSER_ID, {})
def _get_next_picking_type_color(): def _get_next_picking_type_color():
""" Choose the next available color for the operation types.""" """Choose the next available color for the operation types."""
stock_picking_type = env["stock.picking.type"] stock_picking_type = env["stock.picking.type"]
picking_type = stock_picking_type.search_read( picking_type = stock_picking_type.search_read(
[("warehouse_id", "!=", False), ("color", "!=", False)], [("warehouse_id", "!=", False), ("color", "!=", False)],

View File

@@ -1367,7 +1367,7 @@ class Rma(models.Model):
rma.write({"state": "replaced"}) rma.write({"state": "replaced"})
def update_returned_state(self): def update_returned_state(self):
""" Invoked by [stock.move]._action_done""" """Invoked by [stock.move]._action_done"""
rma = self.filtered( rma = self.filtered(
lambda r: (r.state == "waiting_return" and r.remaining_qty_to_done <= 0) lambda r: (r.state == "waiting_return" and r.remaining_qty_to_done <= 0)
) )