[IMP]: Generalization of tooltips: Added tooltips for active field

bzr revid: uco@tinyerp.co.in-20091221122132-hkesf2dy48lpdvum
This commit is contained in:
uco (OpenERP) 2009-12-21 17:51:32 +05:30
parent fe9ae08777
commit 10c3b2da7d
21 changed files with 40 additions and 40 deletions

View File

@ -37,7 +37,7 @@ class account_payment_term(osv.osv):
_description = "Payment Term" _description = "Payment Term"
_columns = { _columns = {
'name': fields.char('Payment Term', size=64, translate=True, required=True), 'name': fields.char('Payment Term', size=64, translate=True, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the payment term without removing it."),
'note': fields.text('Description', translate=True), 'note': fields.text('Description', translate=True),
'line_ids': fields.one2many('account.payment.term.line', 'payment_id', 'Terms'), 'line_ids': fields.one2many('account.payment.term.line', 'payment_id', 'Terms'),
} }
@ -292,7 +292,7 @@ class account_account(osv.osv):
'note': fields.text('Note'), 'note': fields.text('Note'),
'company_currency_id': fields.function(_get_company_currency, method=True, type='many2one', relation='res.currency', string='Company Currency'), 'company_currency_id': fields.function(_get_company_currency, method=True, type='many2one', relation='res.currency', string='Company Currency'),
'company_id': fields.many2one('res.company', 'Company', required=True), 'company_id': fields.many2one('res.company', 'Company', required=True),
'active': fields.boolean('Active', select=2), 'active': fields.boolean('Active', select=2, help="If the active field is set to true, it will allow you to hide the account without removing it."),
'parent_left': fields.integer('Parent Left', select=1), 'parent_left': fields.integer('Parent Left', select=1),
'parent_right': fields.integer('Parent Right', select=1), 'parent_right': fields.integer('Parent Right', select=1),
@ -467,7 +467,7 @@ class account_journal(osv.osv):
'type_control_ids': fields.many2many('account.account.type', 'account_journal_type_rel', 'journal_id','type_id', 'Type Controls', domain=[('code','<>','view'), ('code', '<>', 'closed')]), 'type_control_ids': fields.many2many('account.account.type', 'account_journal_type_rel', 'journal_id','type_id', 'Type Controls', domain=[('code','<>','view'), ('code', '<>', 'closed')]),
'account_control_ids': fields.many2many('account.account', 'account_account_type_rel', 'journal_id','account_id', 'Account', domain=[('type','<>','view'), ('type', '<>', 'closed')]), 'account_control_ids': fields.many2many('account.account', 'account_account_type_rel', 'journal_id','account_id', 'Account', domain=[('type','<>','view'), ('type', '<>', 'closed')]),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the journal without removing it."),
'view_id': fields.many2one('account.journal.view', 'View', required=True, help="Gives the view used when writing or browsing entries in this journal. The view tells Open ERP which fields should be visible, required or readonly and in which order. You can create your own view for a faster encoding in each journal."), 'view_id': fields.many2one('account.journal.view', 'View', required=True, help="Gives the view used when writing or browsing entries in this journal. The view tells Open ERP which fields should be visible, required or readonly and in which order. You can create your own view for a faster encoding in each journal."),
'default_credit_account_id': fields.many2one('account.account', 'Default Credit Account', domain="[('type','!=','view')]"), 'default_credit_account_id': fields.many2one('account.account', 'Default Credit Account', domain="[('type','!=','view')]"),
'default_debit_account_id': fields.many2one('account.account', 'Default Debit Account', domain="[('type','!=','view')]"), 'default_debit_account_id': fields.many2one('account.account', 'Default Debit Account', domain="[('type','!=','view')]"),
@ -676,7 +676,7 @@ class account_journal_period(osv.osv):
'journal_id': fields.many2one('account.journal', 'Journal', required=True, ondelete="cascade"), 'journal_id': fields.many2one('account.journal', 'Journal', required=True, ondelete="cascade"),
'period_id': fields.many2one('account.period', 'Period', required=True, ondelete="cascade"), 'period_id': fields.many2one('account.period', 'Period', required=True, ondelete="cascade"),
'icon': fields.function(_icon_get, method=True, string='Icon', type='char', size=32), 'icon': fields.function(_icon_get, method=True, string='Icon', type='char', size=32),
'active': fields.boolean('Active', required=True), 'active': fields.boolean('Active', required=True, help="If the active field is set to true, it will allow you to hide the journal period without removing it."),
'state': fields.selection([('draft','Draft'), ('printed','Printed'), ('done','Done')], 'State', required=True, readonly=True, 'state': fields.selection([('draft','Draft'), ('printed','Printed'), ('done','Done')], 'State', required=True, readonly=True,
help='When journal period is created. The state is \'Draft\'. If a report is printed it comes to \'Printed\' state. When all transactions are done, it comes in \'Done\' state.'), help='When journal period is created. The state is \'Draft\'. If a report is printed it comes to \'Printed\' state. When all transactions are done, it comes in \'Done\' state.'),
'fiscalyear_id': fields.related('period_id', 'fiscalyear_id', string='Fiscal Year', type='many2one', relation='account.fiscalyear'), 'fiscalyear_id': fields.related('period_id', 'fiscalyear_id', string='Fiscal Year', type='many2one', relation='account.fiscalyear'),
@ -1240,7 +1240,7 @@ class account_tax(osv.osv):
'name': fields.char('Tax Name', size=64, required=True, translate=True, help="This name will be displayed on reports"), 'name': fields.char('Tax Name', size=64, required=True, translate=True, help="This name will be displayed on reports"),
'sequence': fields.integer('Sequence', required=True, help="The sequence field is used to order the tax lines from the lowest sequences to the higher ones. The order is important if you have a tax with several tax children. In this case, the evaluation order is important."), 'sequence': fields.integer('Sequence', required=True, help="The sequence field is used to order the tax lines from the lowest sequences to the higher ones. The order is important if you have a tax with several tax children. In this case, the evaluation order is important."),
'amount': fields.float('Amount', required=True, digits=(14,4), help="For Tax Type percent enter % ratio between 0-1."), 'amount': fields.float('Amount', required=True, digits=(14,4), help="For Tax Type percent enter % ratio between 0-1."),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the tax without removing it."),
'type': fields.selection( [('percent','Percent'), ('fixed','Fixed'), ('none','None'), ('code','Python Code'),('balance','Balance')], 'Tax Type', required=True, 'type': fields.selection( [('percent','Percent'), ('fixed','Fixed'), ('none','None'), ('code','Python Code'),('balance','Balance')], 'Tax Type', required=True,
help="The computation method for the tax amount."), help="The computation method for the tax amount."),
'applicable_type': fields.selection( [('true','True'), ('code','Python Code')], 'Applicable Type', required=True, 'applicable_type': fields.selection( [('true','True'), ('code','Python Code')], 'Applicable Type', required=True,

View File

@ -171,7 +171,7 @@ class account_analytic_account(osv.osv):
'name' : fields.char('Account Name', size=64, required=True), 'name' : fields.char('Account Name', size=64, required=True),
'complete_name': fields.function(_complete_name_calc, method=True, type='char', string='Full Account Name'), 'complete_name': fields.function(_complete_name_calc, method=True, type='char', string='Full Account Name'),
'code' : fields.char('Account Code', size=24), 'code' : fields.char('Account Code', size=24),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the analytic account without removing it."),
'type': fields.selection([('view','View'), ('normal','Normal')], 'Account Type'), 'type': fields.selection([('view','View'), ('normal','Normal')], 'Account Type'),
'description' : fields.text('Description'), 'description' : fields.text('Description'),
'parent_id': fields.many2one('account.analytic.account', 'Parent Analytic Account', select=2), 'parent_id': fields.many2one('account.analytic.account', 'Parent Analytic Account', select=2),
@ -270,7 +270,7 @@ class account_analytic_journal(osv.osv):
_columns = { _columns = {
'name' : fields.char('Journal name', size=64, required=True), 'name' : fields.char('Journal name', size=64, required=True),
'code' : fields.char('Journal code', size=8), 'code' : fields.char('Journal code', size=8),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the analytic journal without removing it."),
'type': fields.selection([('sale','Sale'), ('purchase','Purchase'), ('cash','Cash'), ('general','General'), ('situation','Situation')], 'Type', size=32, required=True, help="Gives the type of the analytic journal. When it needs for a document (eg: an invoice) to create analytic entries, Open ERP will look for a matching journal of the same type."), 'type': fields.selection([('sale','Sale'), ('purchase','Purchase'), ('cash','Cash'), ('general','General'), ('situation','Situation')], 'Type', size=32, required=True, help="Gives the type of the analytic journal. When it needs for a document (eg: an invoice) to create analytic entries, Open ERP will look for a matching journal of the same type."),
'line_ids' : fields.one2many('account.analytic.line', 'journal_id', 'Lines'), 'line_ids' : fields.one2many('account.analytic.line', 'journal_id', 'Lines'),
'company_id': fields.many2one('res.company', 'Company', required=True), 'company_id': fields.many2one('res.company', 'Company', required=True),

View File

@ -153,7 +153,7 @@ class account_report(osv.osv):
_columns = { _columns = {
'name': fields.char('Name', size=64, required=True), 'name': fields.char('Name', size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the account report without removing it."),
'sequence': fields.integer('Sequence'), 'sequence': fields.integer('Sequence'),
'code': fields.char('Code', size=64, required=True), 'code': fields.char('Code', size=64, required=True),
'type': fields.selection([ 'type': fields.selection([

View File

@ -170,7 +170,7 @@ class auction_lot_category(osv.osv):
_columns = { _columns = {
'name': fields.char('Category Name', required=True, size=64), 'name': fields.char('Category Name', required=True, size=64),
'priority': fields.float('Priority'), 'priority': fields.float('Priority'),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the auction lot category without removing it."),
'aie_categ' : fields.selection([('41',"Unclassifieds"), 'aie_categ' : fields.selection([('41',"Unclassifieds"),
('2',"Antiques"), ('2',"Antiques"),
('42',"Antique/African Arts"), ('42',"Antique/African Arts"),

View File

@ -49,7 +49,7 @@ class res_partner_contact(osv.osv):
'job_ids':fields.one2many('res.partner.job','contact_id','Functions and Addresses'), 'job_ids':fields.one2many('res.partner.job','contact_id','Functions and Addresses'),
'country_id':fields.many2one('res.country','Nationality'), 'country_id':fields.many2one('res.country','Nationality'),
'birthdate':fields.date('Birth Date'), 'birthdate':fields.date('Birth Date'),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the partner contact without removing it."),
'partner_id':fields.related('job_ids','address_id','partner_id',type='many2one', relation='res.partner', string='Main Employer'), 'partner_id':fields.related('job_ids','address_id','partner_id',type='many2one', relation='res.partner', string='Main Employer'),
'function_id':fields.related('job_ids','function_id',type='many2one', relation='res.partner.function', string='Main Function'), 'function_id':fields.related('job_ids','function_id',type='many2one', relation='res.partner.function', string='Main Function'),
'job_id':fields.related('job_ids',type='many2one', relation='res.partner.job', string='Main Job'), 'job_id':fields.related('job_ids',type='many2one', relation='res.partner.job', string='Main Job'),

View File

@ -305,7 +305,7 @@ class report_creator(osv.osv):
_columns = { _columns = {
'name': fields.char('Report Name',size=64, required=True), 'name': fields.char('Report Name',size=64, required=True),
'type': fields.selection([('list','Rows And Columns Report'),], 'Report Type',required=True),#('sum','Summation Report') 'type': fields.selection([('list','Rows And Columns Report'),], 'Report Type',required=True),#('sum','Summation Report')
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the report without removing it."),
'view_type1': fields.selection([('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'First View', required=True), 'view_type1': fields.selection([('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'First View', required=True),
'view_type2': fields.selection([('','/'),('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Second View'), 'view_type2': fields.selection([('','/'),('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Second View'),
'view_type3': fields.selection([('','/'),('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Third View'), 'view_type3': fields.selection([('','/'),('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Third View'),

View File

@ -109,7 +109,7 @@ class crm_caldav_alarm(osv.osv):
'duration': fields.integer('Duration'), 'duration': fields.integer('Duration'),
'repeat': fields.integer('Repeat'), # TODO 'repeat': fields.integer('Repeat'), # TODO
'attach': fields.binary('Attachment'), 'attach': fields.binary('Attachment'),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the event alarm information without removing it."),
} }
_defaults = { _defaults = {

View File

@ -67,7 +67,7 @@ class crm_case_section(osv.osv):
_columns = { _columns = {
'name': fields.char('Case Section',size=64, required=True, translate=True), 'name': fields.char('Case Section',size=64, required=True, translate=True),
'code': fields.char('Section Code',size=8), 'code': fields.char('Section Code',size=8),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the case section without removing it."),
'allow_unlink': fields.boolean('Allow Delete', help="Allows to delete non draft cases"), 'allow_unlink': fields.boolean('Allow Delete', help="Allows to delete non draft cases"),
'sequence': fields.integer('Sequence'), 'sequence': fields.integer('Sequence'),
'user_id': fields.many2one('res.users', 'Responsible User'), 'user_id': fields.many2one('res.users', 'Responsible User'),
@ -219,7 +219,7 @@ class crm_email_gateway_server(osv.osv):
'server_type': fields.selection([("pop","POP"),("imap","Imap")],"Type of Server", required=True, help="Type of Email gateway Server"), 'server_type': fields.selection([("pop","POP"),("imap","Imap")],"Type of Server", required=True, help="Type of Email gateway Server"),
'port': fields.integer("Port" , help="Port Of Email gateway Server. If port is omitted, the standard POP3 port (110) is used for POP EMail Server and the standard IMAP4 port (143) is used for IMAP Sever."), 'port': fields.integer("Port" , help="Port Of Email gateway Server. If port is omitted, the standard POP3 port (110) is used for POP EMail Server and the standard IMAP4 port (143) is used for IMAP Sever."),
'ssl': fields.boolean('SSL',help ="Use Secure Authentication"), 'ssl': fields.boolean('SSL',help ="Use Secure Authentication"),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the email gateway server without removing it."),
} }
_defaults = { _defaults = {
'server_type':lambda * a:'pop', 'server_type':lambda * a:'pop',
@ -369,7 +369,7 @@ class crm_case_rule(osv.osv):
_description = "Case Rule" _description = "Case Rule"
_columns = { _columns = {
'name': fields.char('Rule Name',size=64, required=True), 'name': fields.char('Rule Name',size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the case rule without removing it."),
'sequence': fields.integer('Sequence'), 'sequence': fields.integer('Sequence'),
'trg_state_from': fields.selection([('',''),('escalate','Escalate')]+AVAILABLE_STATES, 'Case State', size=16), 'trg_state_from': fields.selection([('',''),('escalate','Escalate')]+AVAILABLE_STATES, 'Case State', size=16),
@ -491,7 +491,7 @@ class crm_case(osv.osv):
'id': fields.integer('ID', readonly=True), 'id': fields.integer('ID', readonly=True),
'name': fields.char('Description',size=64,required=True), 'name': fields.char('Description',size=64,required=True),
'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority'), 'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority'),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the case without removing it."),
'description': fields.text('Your action'), 'description': fields.text('Your action'),
'section_id': fields.many2one('crm.case.section', 'Section', required=True, select=True, help='Section to which Case belongs to. Define Responsible user and Email account for mail gateway.'), 'section_id': fields.many2one('crm.case.section', 'Section', required=True, select=True, help='Section to which Case belongs to. Define Responsible user and Email account for mail gateway.'),
'categ_id': fields.many2one('crm.case.categ', 'Category', domain="[('section_id','=',section_id)]", help='Category related to the section.Subdivide the CRM cases independently or section-wise.'), 'categ_id': fields.many2one('crm.case.categ', 'Category', domain="[('section_id','=',section_id)]", help='Category related to the section.Subdivide the CRM cases independently or section-wise.'),

View File

@ -50,7 +50,7 @@ class delivery_carrier(osv.osv):
'product_id': fields.many2one('product.product', 'Delivery Product', required=True), 'product_id': fields.many2one('product.product', 'Delivery Product', required=True),
'grids_id': fields.one2many('delivery.grid', 'carrier_id', 'Delivery Grids'), 'grids_id': fields.one2many('delivery.grid', 'carrier_id', 'Delivery Grids'),
'price' : fields.function(get_price, method=True,string='Price'), 'price' : fields.function(get_price, method=True,string='Price'),
'active': fields.boolean('Active') 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the delivery carrier without removing it.")
} }
_defaults = { _defaults = {
'active': lambda *args:1 'active': lambda *args:1
@ -86,7 +86,7 @@ class delivery_grid(osv.osv):
'zip_from': fields.char('Start Zip', size=12), 'zip_from': fields.char('Start Zip', size=12),
'zip_to': fields.char('To Zip', size=12), 'zip_to': fields.char('To Zip', size=12),
'line_ids': fields.one2many('delivery.grid.line', 'grid_id', 'Grid Line'), 'line_ids': fields.one2many('delivery.grid.line', 'grid_id', 'Grid Line'),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the delivery grid without removing it."),
} }
_defaults = { _defaults = {
'active': lambda *a: 1, 'active': lambda *a: 1,

View File

@ -434,7 +434,7 @@ class document_directory_content_type(osv.osv):
_columns = { _columns = {
'name': fields.char('Content Type', size=64, required=True), 'name': fields.char('Content Type', size=64, required=True),
'code': fields.char('Extension', size=4), 'code': fields.char('Extension', size=4),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the directory content type without removing it."),
} }
_defaults = { _defaults = {
'active': lambda *args: 1 'active': lambda *args: 1

View File

@ -120,7 +120,7 @@ class hr_employee(osv.osv):
_columns = { _columns = {
'name' : fields.char("Employee's Name", size=128, required=True), 'name' : fields.char("Employee's Name", size=128, required=True),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the employee record without removing it."),
'company_id': fields.many2one('res.company', 'Company'), 'company_id': fields.many2one('res.company', 'Company'),
'user_id' : fields.many2one('res.users', 'Related User'), 'user_id' : fields.many2one('res.users', 'Related User'),

View File

@ -70,7 +70,7 @@ class hr_holidays_status(osv.osv):
'section_id': fields.many2one('crm.case.section', 'CRM Section', help='If you link this type of leave with a section in the CRM, it will synchronize each leave asked with a case in this section, to display it in the company shared calendar for example.'), 'section_id': fields.many2one('crm.case.section', 'CRM Section', help='If you link this type of leave with a section in the CRM, it will synchronize each leave asked with a case in this section, to display it in the company shared calendar for example.'),
'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color of the status', required=True, help='This color will be used in the leaves summary located in Reporting\Print Summary of Leaves'), 'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color of the status', required=True, help='This color will be used in the leaves summary located in Reporting\Print Summary of Leaves'),
'limit' : fields.boolean('Allow to override Limit', help='If you thick this checkbox, the system will allow, for this section, the employees to take more leaves than the available ones.'), 'limit' : fields.boolean('Allow to override Limit', help='If you thick this checkbox, the system will allow, for this section, the employees to take more leaves than the available ones.'),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the leave type without removing it."),
'max_leaves' : fields.function(_user_left_days, method=True, string='Maximum Leaves Allowed', help='This value is given by the sum of all holidays requests with a positive value.', multi='user_left_days'), 'max_leaves' : fields.function(_user_left_days, method=True, string='Maximum Leaves Allowed', help='This value is given by the sum of all holidays requests with a positive value.', multi='user_left_days'),
'leaves_taken' : fields.function(_user_left_days, method=True, string='Leaves Already Taken', help='This value is given by the sum of all holidays requests with a negative value.', multi='user_left_days'), 'leaves_taken' : fields.function(_user_left_days, method=True, string='Leaves Already Taken', help='This value is given by the sum of all holidays requests with a negative value.', multi='user_left_days'),
'remaining_leaves' : fields.function(_user_left_days, method=True, string='Remaining Leaves', multi='user_left_days'), 'remaining_leaves' : fields.function(_user_left_days, method=True, string='Remaining Leaves', multi='user_left_days'),
@ -107,7 +107,7 @@ class hr_holidays_per_user(osv.osv):
'holiday_status' : fields.many2one("hr.holidays.status", "Holiday's Status", required=True), 'holiday_status' : fields.many2one("hr.holidays.status", "Holiday's Status", required=True),
'max_leaves' : fields.float('Maximum Leaves Allowed',required=True), 'max_leaves' : fields.float('Maximum Leaves Allowed',required=True),
'leaves_taken' : fields.float('Leaves Already Taken',readonly=True), 'leaves_taken' : fields.float('Leaves Already Taken',readonly=True),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the holidays per user without removing it."),
'notes' : fields.text('Notes'), 'notes' : fields.text('Notes'),
'remaining_leaves': fields.function(_get_remaining_leaves, method=True, string='Remaining Leaves', type='float'), 'remaining_leaves': fields.function(_get_remaining_leaves, method=True, string='Remaining Leaves', type='float'),
'holiday_ids': fields.one2many('hr.holidays', 'holiday_user_id', 'Holidays') 'holiday_ids': fields.one2many('hr.holidays', 'holiday_user_id', 'Holidays')

View File

@ -42,7 +42,7 @@ class mrp_workcenter(osv.osv):
_description = 'Work Center' _description = 'Work Center'
_columns = { _columns = {
'name': fields.char('Work Center Name', size=64, required=True), 'name': fields.char('Work Center Name', size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the work center without removing it."),
'type': fields.selection([('machine','Machine'),('hr','Human Resource'),('tool','Tool')], 'Type', required=True), 'type': fields.selection([('machine','Machine'),('hr','Human Resource'),('tool','Tool')], 'Type', required=True),
'code': fields.char('Code', size=16), 'code': fields.char('Code', size=16),
'timesheet_id': fields.many2one('hr.timesheet.group', 'Working Time', help="The normal working time of the workcenter."), 'timesheet_id': fields.many2one('hr.timesheet.group', 'Working Time', help="The normal working time of the workcenter."),
@ -103,7 +103,7 @@ class mrp_routing(osv.osv):
_description = 'Routing' _description = 'Routing'
_columns = { _columns = {
'name': fields.char('Name', size=64, required=True), 'name': fields.char('Name', size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the routing without removing it."),
'code': fields.char('Code', size=8), 'code': fields.char('Code', size=8),
'note': fields.text('Description'), 'note': fields.text('Description'),
@ -174,7 +174,7 @@ class mrp_bom(osv.osv):
_columns = { _columns = {
'name': fields.char('Name', size=64, required=True), 'name': fields.char('Name', size=64, required=True),
'code': fields.char('Code', size=16), 'code': fields.char('Code', size=16),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the bills of material without removing it."),
'type': fields.selection([('normal','Normal BoM'),('phantom','Sets / Phantom')], 'BoM Type', required=True, help= 'type': fields.selection([('normal','Normal BoM'),('phantom','Sets / Phantom')], 'BoM Type', required=True, help=
"Use a phantom bill of material in raw materials lines that have to be " \ "Use a phantom bill of material in raw materials lines that have to be " \
"automatically computed in on eproduction order and not one per level." \ "automatically computed in on eproduction order and not one per level." \
@ -1193,7 +1193,7 @@ class stock_warehouse_orderpoint(osv.osv):
_description = "Orderpoint minimum rule" _description = "Orderpoint minimum rule"
_columns = { _columns = {
'name': fields.char('Name', size=32, required=True), 'name': fields.char('Name', size=32, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the orderpoint without removing it."),
'logic': fields.selection([('max','Order to Max'),('price','Best price (not yet active!)')], 'Reordering Mode', required=True), 'logic': fields.selection([('max','Order to Max'),('price','Best price (not yet active!)')], 'Reordering Mode', required=True),
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True), 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True),
'location_id': fields.many2one('stock.location', 'Location', required=True), 'location_id': fields.many2one('stock.location', 'Location', required=True),

View File

@ -48,7 +48,7 @@ class process_process(osv.osv):
_description = "Process" _description = "Process"
_columns = { _columns = {
'name': fields.char('Name', size=30,required=True, translate=True), 'name': fields.char('Name', size=30,required=True, translate=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the process without removing it."),
'model_id': fields.many2one('ir.model', 'Object', ondelete='set null'), 'model_id': fields.many2one('ir.model', 'Object', ondelete='set null'),
'note': fields.text('Notes', translate=True), 'note': fields.text('Notes', translate=True),
'node_ids': fields.one2many('process.node', 'process_id', 'Nodes') 'node_ids': fields.one2many('process.node', 'process_id', 'Nodes')

View File

@ -96,7 +96,7 @@ class product_pricelist(osv.osv):
_description = "Pricelist" _description = "Pricelist"
_columns = { _columns = {
'name': fields.char('Pricelist Name',size=64, required=True, translate=True), 'name': fields.char('Pricelist Name',size=64, required=True, translate=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the pricelist without removing it."),
'type': fields.selection(_pricelist_type_get, 'Pricelist Type', required=True), 'type': fields.selection(_pricelist_type_get, 'Pricelist Type', required=True),
'version_id': fields.one2many('product.pricelist.version', 'pricelist_id', 'Pricelist Versions'), 'version_id': fields.one2many('product.pricelist.version', 'pricelist_id', 'Pricelist Versions'),
'currency_id': fields.many2one('res.currency', 'Currency', required=True), 'currency_id': fields.many2one('res.currency', 'Currency', required=True),

View File

@ -91,7 +91,7 @@ class product_uom(osv.osv):
'factor_inv_data': fields.float('Factor', digits=(12, 6)), 'factor_inv_data': fields.float('Factor', digits=(12, 6)),
'rounding': fields.float('Rounding Precision', digits=(16, 3), required=True, 'rounding': fields.float('Rounding Precision', digits=(16, 3), required=True,
help="The computed quantity will be a multiple of this value. Use 1.0 for products that can not be split."), help="The computed quantity will be a multiple of this value. Use 1.0 for products that can not be split."),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the unit of measure without removing it."),
} }
_defaults = { _defaults = {
@ -438,7 +438,7 @@ class product_product(osv.osv):
'code': fields.function(_product_code, method=True, type='char', string='Code'), 'code': fields.function(_product_code, method=True, type='char', string='Code'),
'partner_ref' : fields.function(_product_partner_ref, method=True, type='char', string='Customer ref'), 'partner_ref' : fields.function(_product_partner_ref, method=True, type='char', string='Customer ref'),
'default_code' : fields.char('Code', size=64), 'default_code' : fields.char('Code', size=64),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the product without removing it."),
'variants': fields.char('Variants', size=64), 'variants': fields.char('Variants', size=64),
'product_tmpl_id': fields.many2one('product.template', 'Product Template', required=True), 'product_tmpl_id': fields.many2one('product.template', 'Product Template', required=True),
'ean13': fields.char('EAN13', size=13), 'ean13': fields.char('EAN13', size=13),

View File

@ -92,7 +92,7 @@ class project(osv.osv):
_columns = { _columns = {
'name': fields.char("Project Name", size=128, required=True), 'name': fields.char("Project Name", size=128, required=True),
'complete_name': fields.function(_complete_name, method=True, string="Project Name", type='char', size=128), 'complete_name': fields.function(_complete_name, method=True, string="Project Name", type='char', size=128),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the project without removing it."),
'category_id': fields.many2one('account.analytic.account','Analytic Account', help="Link this project to an analytic account if you need financial management on projects. It enables you to connect projects with budgets, planning, cost and revenue analysis, timesheets on projects, etc."), 'category_id': fields.many2one('account.analytic.account','Analytic Account', help="Link this project to an analytic account if you need financial management on projects. It enables you to connect projects with budgets, planning, cost and revenue analysis, timesheets on projects, etc."),
'priority': fields.integer('Sequence'), 'priority': fields.integer('Sequence'),
'manager': fields.many2one('res.users', 'Project Manager'), 'manager': fields.many2one('res.users', 'Project Manager'),
@ -276,7 +276,7 @@ class task(osv.osv):
return super(task, self).copy_data(cr, uid, id, default, context) return super(task, self).copy_data(cr, uid, id, default, context)
_columns = { _columns = {
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the task without removing it."),
'name': fields.char('Task summary', size=128, required=True), 'name': fields.char('Task summary', size=128, required=True),
'description': fields.text('Description'), 'description': fields.text('Description'),
'priority' : fields.selection([('4','Very Low'), ('3','Low'), ('2','Medium'), ('1','Urgent'), ('0','Very urgent')], 'Importance'), 'priority' : fields.selection([('4','Very Low'), ('3','Low'), ('2','Medium'), ('1','Urgent'), ('0','Very urgent')], 'Importance'),

View File

@ -28,7 +28,7 @@ class sale_journal_invoice_type(osv.osv):
_description = 'Invoice Types' _description = 'Invoice Types'
_columns = { _columns = {
'name': fields.char('Invoice Type', size=64, required=True), 'name': fields.char('Invoice Type', size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the invoice type without removing it."),
'note': fields.text('Note'), 'note': fields.text('Note'),
'invoicing_method': fields.selection([('simple','Non grouped'),('grouped','Grouped')], 'Invoicing method', required=True), 'invoicing_method': fields.selection([('simple','Non grouped'),('grouped','Grouped')], 'Invoicing method', required=True),
} }

View File

@ -159,7 +159,7 @@ class scrum_product_backlog(osv.osv):
_columns = { _columns = {
'name' : fields.char('Feature', size=64, required=True), 'name' : fields.char('Feature', size=64, required=True),
'note' : fields.text('Note'), 'note' : fields.text('Note'),
'active' : fields.boolean('Active'), 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the product backlog without removing it."),
'project_id': fields.many2one('scrum.project', 'Scrum Project', required=True, domain=[('scrum','=',1)]), 'project_id': fields.many2one('scrum.project', 'Scrum Project', required=True, domain=[('scrum','=',1)]),
'user_id': fields.many2one('res.users', 'User'), 'user_id': fields.many2one('res.users', 'User'),
'sprint_id': fields.many2one('scrum.sprint', 'Sprint'), 'sprint_id': fields.many2one('scrum.sprint', 'Sprint'),

View File

@ -37,7 +37,7 @@ class stock_incoterms(osv.osv):
_columns = { _columns = {
'name': fields.char('Name', size=64, required=True,help="Incoterms are series of sales terms.They are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices."), 'name': fields.char('Name', size=64, required=True,help="Incoterms are series of sales terms.They are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices."),
'code': fields.char('Code', size=3, required=True,help="code for Incoterms"), 'code': fields.char('Code', size=3, required=True,help="code for Incoterms"),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the incoterms without removing it."),
} }
_defaults = { _defaults = {
'active': lambda *a: True, 'active': lambda *a: True,
@ -129,7 +129,7 @@ class stock_location(osv.osv):
_columns = { _columns = {
'name': fields.char('Location Name', size=64, required=True, translate=True), 'name': fields.char('Location Name', size=64, required=True, translate=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the stock location without removing it."),
'usage': fields.selection([('supplier', 'Supplier Location'), ('view', 'View'), ('internal', 'Internal Location'), ('customer', 'Customer Location'), ('inventory', 'Inventory'), ('procurement', 'Procurement'), ('production', 'Production')], 'Location Type', required=True), 'usage': fields.selection([('supplier', 'Supplier Location'), ('view', 'View'), ('internal', 'Internal Location'), ('customer', 'Customer Location'), ('inventory', 'Inventory'), ('procurement', 'Procurement'), ('production', 'Production')], 'Location Type', required=True),
'allocation_method': fields.selection([('fifo', 'FIFO'), ('lifo', 'LIFO'), ('nearest', 'Nearest')], 'Allocation Method', required=True), 'allocation_method': fields.selection([('fifo', 'FIFO'), ('lifo', 'LIFO'), ('nearest', 'Nearest')], 'Allocation Method', required=True),
@ -338,7 +338,7 @@ class stock_tracking(osv.osv):
_columns = { _columns = {
'name': fields.char('Tracking ID', size=64, required=True), 'name': fields.char('Tracking ID', size=64, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the tracking lots without removing it."),
'serial': fields.char('Reference', size=64), 'serial': fields.char('Reference', size=64),
'move_ids': fields.one2many('stock.move', 'tracking_id', 'Moves Tracked'), 'move_ids': fields.one2many('stock.move', 'tracking_id', 'Moves Tracked'),
'date': fields.datetime('Date Created', required=True), 'date': fields.datetime('Date Created', required=True),
@ -440,7 +440,7 @@ class stock_picking(osv.osv):
'origin': fields.char('Origin Reference', size=64), 'origin': fields.char('Origin Reference', size=64),
'backorder_id': fields.many2one('stock.picking', 'Back Order'), 'backorder_id': fields.many2one('stock.picking', 'Back Order'),
'type': fields.selection([('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal'), ('delivery', 'Delivery')], 'Shipping Type', required=True, select=True, help="Shipping type specify, goods coming in or going out."), 'type': fields.selection([('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal'), ('delivery', 'Delivery')], 'Shipping Type', required=True, select=True, help="Shipping type specify, goods coming in or going out."),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the picking without removing it."),
'note': fields.text('Notes'), 'note': fields.text('Notes'),
'location_id': fields.many2one('stock.location', 'Location', help="Keep empty if you produce at the location where the finished products are needed." \ 'location_id': fields.many2one('stock.location', 'Location', help="Keep empty if you produce at the location where the finished products are needed." \

View File

@ -32,7 +32,7 @@ class subscription_document(osv.osv):
_description = "Subscription document" _description = "Subscription document"
_columns = { _columns = {
'name': fields.char('Name', size=60, required=True), 'name': fields.char('Name', size=60, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the subscription document without removing it."),
'model': fields.many2one('ir.model', 'Object', required=True), 'model': fields.many2one('ir.model', 'Object', required=True),
'field_ids': fields.one2many('subscription.document.fields', 'document_id', 'Fields') 'field_ids': fields.one2many('subscription.document.fields', 'document_id', 'Fields')
} }
@ -68,7 +68,7 @@ class subscription_subscription(osv.osv):
_description = "Subscription" _description = "Subscription"
_columns = { _columns = {
'name': fields.char('Name', size=60, required=True), 'name': fields.char('Name', size=60, required=True),
'active': fields.boolean('Active'), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the subscription without removing it."),
'partner_id': fields.many2one('res.partner', 'Partner'), 'partner_id': fields.many2one('res.partner', 'Partner'),
'notes': fields.text('Notes'), 'notes': fields.text('Notes'),
'user_id': fields.many2one('res.users', 'User', required=True), 'user_id': fields.many2one('res.users', 'User', required=True),