From 56f432386c5dc99bbb9837a503f8691cde3d7268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 26 Jun 2015 16:39:20 +0200 Subject: [PATCH] [FIX] account_asset_management: do not propose special and closed periods for asset posting --- account_asset_management/wizard/wizard_asset_compute.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_asset_management/wizard/wizard_asset_compute.py b/account_asset_management/wizard/wizard_asset_compute.py index f7e51244..c599d2db 100644 --- a/account_asset_management/wizard/wizard_asset_compute.py +++ b/account_asset_management/wizard/wizard_asset_compute.py @@ -31,6 +31,7 @@ class asset_depreciation_confirmation_wizard(orm.TransientModel): _columns = { 'period_id': fields.many2one( 'account.period', 'Period', + domain="[('special', '=', False), ('state', '=', 'draft')]", required=True, help="Choose the period for which you want to automatically " "post the depreciation lines of running assets"),