Add issue9616.diff [analytic_invoice] Analytic move is not created when closing an asset
This commit is contained in:
parent
42684fddf4
commit
8b059c0fa5
|
@ -1,8 +0,0 @@
|
|||
diff -r 65d02e2fa425 asset.py
|
||||
--- a/trytond/trytond/modules/analytic_invoice/asset.py Mon May 06 15:00:15 2019 +0200
|
||||
+++ b/trytond/trytond/modules/analytic_invoice/asset.py Tue Oct 22 11:50:11 2019 +0200
|
||||
@@ -51,3 +51,4 @@
|
||||
analytic_lines.extend(
|
||||
entry.get_analytic_lines(line, move.date))
|
||||
line.analytic_lines = analytic_lines
|
||||
+ return move
|
|
@ -0,0 +1,12 @@
|
|||
--- a/trytond/trytond/modules/analytic_invoice/asset.py
|
||||
+++ b/trytond/trytond/modules/analytic_invoice/asset.py
|
||||
@@ -53,7 +53,8 @@ class Asset(AnalyticMixin, metaclass=PoolMeta):
|
||||
if self.analytic_accounts:
|
||||
with Transaction().set_context(date=move.date):
|
||||
for line in move.lines:
|
||||
- if line.account != self.product.account_expense_used:
|
||||
+ if line.account not in (self.product.account_expense_used,
|
||||
+ self.product.account_revenue_used):
|
||||
continue
|
||||
analytic_lines = []
|
||||
for entry in self.analytic_accounts:
|
3
series
3
series
|
@ -61,7 +61,6 @@ issue8697.diff # [stock_supply] Missing supply period in purchase configuration
|
|||
|
||||
issue8702.diff # [stock_supply_forecast] Support production forecast
|
||||
#issue8705.diff # [trytond] Always use search method on translations
|
||||
issue8752.diff # [analytic_invoice] set_analytic_lines must return move
|
||||
issue8844.diff # [stock] Missing form view to Locations Tree Quantity
|
||||
issue8860.diff # [stock_forecast] stock_forecast does not spread all the quantities
|
||||
|
||||
|
@ -79,3 +78,5 @@ cost_price_in_productions_without_inputs.diff # [production]
|
|||
issues_321471002_317771007_327491003_325801002_321611002.diff # [product_cost_fifo, sale, stock] take care on inventory moves
|
||||
issue7280.diff # [account_invoice_stock] + [account_stock_landed_cost] Update unit price of stock moves based on posted invoice lines
|
||||
#319251002_309331002_301441002_273891002_307431002_274481002-set2.diff # [trytond, production, stock, stock_supply, stock_forecast] Improve speed on some stock movements
|
||||
|
||||
issue9616.diff # [analytic_invoice] Analytic move is not created when closing an asset
|
||||
|
|
Loading…
Reference in New Issue