Compute purchase_lines moves as root
review583004 (transplanted from f2483c051a157956f41ee6b84c043a2579dc7be1)
This commit is contained in:
1 parent
f79594aaca
commit
add2548b98
1 file changed
+2
@@ -48,6 +48,8 @@ class InvoiceLine(ModelSQL, ModelView):
|
||||
move_obj = self.pool.get('stock.move')
|
||||
currency_obj = self.pool.get('currency.currency')
|
||||
|
||||
with Transaction().set_user(0, set_context=True):
|
||||
line = self.browse(line.id)
|
||||
result = super(InvoiceLine, self).get_move_line(line)
|
||||
|
||||
if line.type != 'line':
|
||||
|
||||
Reference in new issue
Block a user