[FIX][account_asset_management] Avoid to select closed or cancelled analytic account
This commit is contained in:
parent
56f432386c
commit
2bce9d2b24
@ -69,7 +69,8 @@ class account_asset_category(orm.Model):
|
||||
'note': fields.text('Note'),
|
||||
'account_analytic_id': fields.many2one(
|
||||
'account.analytic.account', 'Analytic account',
|
||||
domain=[('type', '!=', 'view')]),
|
||||
domain=[('type', '!=', 'view'),
|
||||
('state', 'not in', ('close', 'cancelled'))]),
|
||||
'account_asset_id': fields.many2one(
|
||||
'account.account', 'Asset Account', required=True,
|
||||
domain=[('type', '=', 'other')]),
|
||||
@ -1103,7 +1104,8 @@ class account_asset_asset(orm.Model):
|
||||
store=True, readonly=True,),
|
||||
'account_analytic_id': fields.many2one(
|
||||
'account.analytic.account', 'Analytic account',
|
||||
domain=[('type', '!=', 'view')]),
|
||||
domain=[('type', '!=', 'view'),
|
||||
('state', 'not in', ('close', 'cancelled'))]),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
File diff suppressed because it is too large
Load Diff
1330
account_asset_management/i18n/bg.po
Normal file
1330
account_asset_management/i18n/bg.po
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1330
account_asset_management/i18n/ca_ES.po
Normal file
1330
account_asset_management/i18n/ca_ES.po
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1330
account_asset_management/i18n/es_ES.po
Normal file
1330
account_asset_management/i18n/es_ES.po
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1330
account_asset_management/i18n/gl.po
Normal file
1330
account_asset_management/i18n/gl.po
Normal file
File diff suppressed because it is too large
Load Diff
1330
account_asset_management/i18n/gl_ES.po
Normal file
1330
account_asset_management/i18n/gl_ES.po
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user