minor fix
This commit is contained in:
parent
001bfac455
commit
0ceed608ed
2
stock.py
2
stock.py
|
@ -83,7 +83,7 @@ class Move(metaclass=PoolMeta):
|
|||
def do(cls, moves):
|
||||
super(Move, cls).do(moves)
|
||||
for move in moves:
|
||||
if move.origin.__name__ in ('purchase.line', 'stock.inventory.line'):
|
||||
if move.origin and move.origin.__name__ in ('purchase.line', 'stock.inventory.line'):
|
||||
move.set_average_cost()
|
||||
|
||||
def set_average_cost(self):
|
||||
|
|
Loading…
Reference in New Issue