Allow update asset even lines have no move yet
This commit is contained in:
parent
bd63231355
commit
6e33165525
|
@ -0,0 +1,13 @@
|
|||
diff --git a/asset.py b/asset.py
|
||||
index fc23ca8..cc10240 100644
|
||||
--- a/trytond/trytond/modules/account_asset/asset.py Mon May 06 14:53:17 2019 +0200
|
||||
+++ b/trytond/trytond/modules/account_asset/asset.py Tue Jun 11 22:56:45 2019 +0200
|
||||
@@ -757,7 +757,7 @@ class UpdateAssetShowDepreciation(ModelView):
|
||||
date = fields.Date('Date', required=True,
|
||||
domain=[
|
||||
('date', '>', Eval('latest_move_date')),
|
||||
- ('date', '<', Eval('next_depreciation_date')),
|
||||
+ ('date', '<=', Eval('next_depreciation_date')),
|
||||
],
|
||||
depends=['latest_move_date', 'next_depreciation_date'],
|
||||
help=('The date must be between the last update/depreciation date '
|
2
series
2
series
|
@ -61,3 +61,5 @@ issue9814.diff #[product] Product template search bar showing non serchable prod
|
|||
rule_account_journal_period.diff # [account] Add missing rule for account.journal.period
|
||||
|
||||
issue8944.diff # [sale_shipment_cost] Prevent crash when duplicating a sale and moving it to quote state.
|
||||
|
||||
account_asset.diff # [account_asset] permit update asset running without move yet.
|
||||
|
|
Loading…
Reference in New Issue