Skip to content
Permalink
Browse files

[REF] stock_account: valuation layer and not admin user

missing bit from rev[0], [1], and [2]

[0] 7ef11e3
[1] d6c8c34
[2] 5096e72
  • Loading branch information
yhu-odoo committed Jan 14, 2020
1 parent 428fe7e commit 4d01373c3fdfdf17fc8dea50cf1d6c50f67b7dd8
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/stock_account/models/stock_move.py
@@ -331,7 +331,7 @@ def product_price_update_before_done(self, forced_qty=None):
# adapt standard price on incomming moves if the product cost_method is 'fifo'
for move in self.filtered(lambda move:
move.with_company(move.company_id).product_id.cost_method == 'fifo'
and float_is_zero(move.product_id.quantity_svl, precision_rounding=move.product_id.uom_id.rounding)):
and float_is_zero(move.product_id.sudo().quantity_svl, precision_rounding=move.product_id.uom_id.rounding)):
move.product_id.with_company(move.company_id.id).sudo().write({'standard_price': move._get_price_unit()})

def _get_accounting_data_for_valuation(self):

0 comments on commit 4d01373

Please sign in to comment.
You can’t perform that action at this time.