[IMP] analytic: add the 'visibility tracking' on some fields in the chatter, to log when an important thing is changed
bzr revid: qdp-launchpad@openerp.com-20130410122011-xgih371ewlxc7aq5
This commit is contained in:
parent
904b810665
commit
241b9ee07a
|
@ -171,9 +171,9 @@ class account_analytic_account(osv.osv):
|
|||
return result
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Account/Contract Name', size=128, required=True),
|
||||
'name': fields.char('Account/Contract Name', size=128, required=True, track_visibility='onchange'),
|
||||
'complete_name': fields.function(_get_full_name, type='char', string='Full Name'),
|
||||
'code': fields.char('Reference', select=True),
|
||||
'code': fields.char('Reference', select=True, track_visibility='onchange'),
|
||||
'type': fields.selection([('view','Analytic View'), ('normal','Analytic Account'),('contract','Contract or Project'),('template','Template of Contract')], 'Type of Account', required=True,
|
||||
help="If you select the View Type, it means you won\'t allow to create journal entries using that account.\n"\
|
||||
"The type 'Analytic account' stands for usual accounts that you only want to use in accounting.\n"\
|
||||
|
@ -191,10 +191,10 @@ class account_analytic_account(osv.osv):
|
|||
'quantity': fields.function(_debit_credit_bal_qtty, type='float', string='Quantity', multi='debit_credit_bal_qtty'),
|
||||
'quantity_max': fields.float('Prepaid Service Units', help='Sets the higher limit of time to work on the contract, based on the timesheet. (for instance, number of hours in a limited support contract.)'),
|
||||
'partner_id': fields.many2one('res.partner', 'Customer'),
|
||||
'user_id': fields.many2one('res.users', 'Project Manager'),
|
||||
'manager_id': fields.many2one('res.users', 'Account Manager'),
|
||||
'user_id': fields.many2one('res.users', 'Project Manager', track_visibility='onchange'),
|
||||
'manager_id': fields.many2one('res.users', 'Account Manager', track_visibility='onchange'),
|
||||
'date_start': fields.date('Start Date'),
|
||||
'date': fields.date('End Date', select=True),
|
||||
'date': fields.date('End Date', select=True, track_visibility='onchange'),
|
||||
'company_id': fields.many2one('res.company', 'Company', required=False), #not required because we want to allow different companies to use the same chart of account, except for leaf accounts.
|
||||
'state': fields.selection([('template', 'Template'),('draft','New'),('open','In Progress'),('pending','To Renew'),('close','Closed'),('cancelled', 'Cancelled')], 'Status', required=True, track_visibility='onchange'),
|
||||
'currency_id': fields.function(_currency, fnct_inv=_set_company_currency, #the currency_id field is readonly except if it's a view account and if there is no company
|
||||
|
|
Loading…
Reference in New Issue