Add issue9616.diff [analytic_invoice] Analytic move is not created when closing an asset
This commit is contained in:
parent
cb05cd4c79
commit
c346e0b697
|
@ -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
|
@ -35,7 +35,6 @@ production_view.diff #[production] Split inputs and outputs on pages
|
|||
issue8702.diff # [stock_supply_forecast] Support production forecast
|
||||
sale_allow_group_shipments_with_different_dates.diff # [sale_shipment_grouping] Deletes the grouping condition by dates
|
||||
party_identifier_migration.diff # set vat_eu as valid vat
|
||||
issue8752.diff # [analytic_invoice]
|
||||
|
||||
issue8860.diff # [stock_forecast] stock_forecast does not spread all the quantities
|
||||
|
||||
|
@ -45,3 +44,5 @@ issue9017.diff # [purchase] Doesn't copy product_suppliers when a template or a
|
|||
model.diff # [trytond] Allows dynamic fields in Model as required by the wizard in sale_pos_template_quantities
|
||||
issue9103.diff # [trytond] User-defined reports for custom template extensions
|
||||
lazy_loading.diff # [trytond] https://discuss.tryton.org/t/should-create-uid-write-uid-use-lazy-loading/2458/7
|
||||
|
||||
issue9616.diff # [analytic_invoice] Analytic move is not created when closing an asset
|
Loading…
Reference in New Issue