[FIX] rma_scrap: various fixes

This commit is contained in:
Jordi Ballester Alomar
2022-11-03 18:13:52 +01:00
committed by SergiCForgeFlow
parent 70289bdadd
commit 0f59a8048f
9 changed files with 83 additions and 32 deletions

View File

@@ -12,9 +12,3 @@ class StockMove(models.Model):
copy=False,
help="This Stock Move has been created from a Scrap operation in " "the RMA.",
)
def _is_in_out_rma_move(self, op, states, location_type):
res = super(StockMove, self)._is_in_out_rma_move(op, states, location_type)
if self.is_rma_scrap:
return False
return res