mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[15.0][IMP] Tests for stock valuation
[FIX] rma: rma_custmer_user has no write permissions in partner, so compute method fails. [IMP] rma: use rma user in tests [FIX] rma_account: move_line_id field string [IMP] rma, rma_account, rma_sale, rma_purchase: tests for stock valuation [FIX] account_move_line_rma_order_line: minor lint, make auto-install
This commit is contained in:
committed by
AaronHForgeFlow
parent
ea4922d283
commit
c7c6abddf9
@@ -35,6 +35,9 @@ class StockRule(models.Model):
|
||||
res["partner_id"] = line.delivery_address_id.id
|
||||
else:
|
||||
res["partner_id"] = line.rma_id.partner_id.id
|
||||
# We are not checking the reference move here because if stock account
|
||||
# is not installed, there is no way to know the cost of the stock move
|
||||
# so better use the standard cost in this case.
|
||||
company_id = res["company_id"]
|
||||
company = self.env["res.company"].browse(company_id)
|
||||
cost = product_id.with_company(company).standard_price
|
||||
|
||||
Reference in New Issue
Block a user