Merge pull request #246 from acsone/8.0-asset-period-filter-sbi

assets: do not propose special and closed periods for asset posting
This commit is contained in:
Stéphane Bidoul (ACSONE)
2015-07-17 17:17:16 +02:00

View File

@@ -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"),