Skip to content

Commit

Permalink
[IMP] mrp: remove domain for analytic accounts referenced as they don…
Browse files Browse the repository at this point in the history
…'t have type view anymore (and no type also) fixes odoo#9063
  • Loading branch information
jco-odoo committed Oct 15, 2015
1 parent 81f34b9 commit 1456262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/mrp/mrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class mrp_workcenter(osv.osv):
'time_start': fields.float('Time before prod.', help="Time in hours for the setup."),
'time_stop': fields.float('Time after prod.', help="Time in hours for the cleaning."),
'costs_hour': fields.float('Cost per hour', help="Specify Cost of Work Center per hour."),
'costs_hour_account_id': fields.many2one('account.analytic.account', 'Hour Account', domain=[('type','!=','view')],
'costs_hour_account_id': fields.many2one('account.analytic.account', 'Hour Account',
help="Fill this only if you want automatic analytic accounting entries on production orders."),
'costs_cycle': fields.float('Cost per cycle', help="Specify Cost of Work Center per cycle."),
'costs_cycle_account_id': fields.many2one('account.analytic.account', 'Cycle Account', domain=[('type','!=','view')],
'costs_cycle_account_id': fields.many2one('account.analytic.account', 'Cycle Account',
help="Fill this only if you want automatic analytic accounting entries on production orders."),
'costs_general_account_id': fields.many2one('account.account', 'General Account', domain=[('deprecated', '=', False)]),
'resource_id': fields.many2one('resource.resource','Resource', ondelete='cascade', required=True),
Expand Down

0 comments on commit 1456262

Please sign in to comment.