[FIX] add missing descriptions to many fields
authorGéry Debongnie <ged@odoo.com>
Fri, 31 Oct 2014 10:28:40 +0000 (11:28 +0100)
committerGéry Debongnie <ged@odoo.com>
Fri, 31 Oct 2014 12:57:16 +0000 (13:57 +0100)
13 files changed:
addons/account/account_cash_statement.py
addons/account/account_financial_report.py
addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py
addons/hr_holidays/hr_holidays.py
addons/mrp/mrp.py
addons/mrp/wizard/mrp_product_produce.py
addons/point_of_sale/account_bank_statement.py
addons/point_of_sale/point_of_sale.py
addons/point_of_sale/wizard/pos_session_opening.py
addons/product/product.py
addons/project/project.py
addons/project_issue/project_issue.py
openerp/addons/base/res/res_partner.py

index 5b1952f..db03d36 100644 (file)
@@ -64,7 +64,7 @@ class account_cashbox_line(osv.osv):
         'number_closing' : fields.integer('Number of Units', help='Closing Unit Numbers'),
         'subtotal_opening': fields.function(_sub_total, string='Opening Subtotal', type='float', digits_compute=dp.get_precision('Account'), multi='subtotal'),
         'subtotal_closing': fields.function(_sub_total, string='Closing Subtotal', type='float', digits_compute=dp.get_precision('Account'), multi='subtotal'),
-        'bank_statement_id' : fields.many2one('account.bank.statement', ondelete='cascade'),
+        'bank_statement_id' : fields.many2one('account.bank.statement', string="Bank Statements", ondelete='cascade'),
      }
 
 
index 9ca5371..3c3a03e 100644 (file)
@@ -101,9 +101,9 @@ class account_financial_report(osv.osv):
         'parent_id': fields.many2one('account.financial.report', 'Parent'),
         'children_ids':  fields.one2many('account.financial.report', 'parent_id', 'Account Report'),
         'sequence': fields.integer('Sequence'),
-        'balance': fields.function(_get_balance, 'Balance', multi='balance'),
-        'debit': fields.function(_get_balance, 'Debit', multi='balance'),
-        'credit': fields.function(_get_balance, 'Credit', multi="balance"),
+        'balance': fields.function(_get_balance, string='Balance', multi='balance'),
+        'debit': fields.function(_get_balance, string='Debit', multi='balance'),
+        'credit': fields.function(_get_balance, string='Credit', multi="balance"),
         'level': fields.function(_get_level, string='Level', store=True, type='integer'),
         'type': fields.selection([
             ('sum','View'),
index 5c25170..f36bb97 100644 (file)
@@ -105,9 +105,9 @@ class account_analytic_account(osv.osv):
 
     _columns = {
         'charge_expenses' : fields.boolean('Charge Expenses'),
-        'expense_invoiced' : fields.function(_expense_invoiced_calc, type="float"),
-        'expense_to_invoice' : fields.function(_expense_to_invoice_calc, type='float'),
-        'remaining_expense' : fields.function(_remaining_expnse_calc, type="float"), 
+        'expense_invoiced' : fields.function(_expense_invoiced_calc, string="Expenses invoiced", type="float"),
+        'expense_to_invoice' : fields.function(_expense_to_invoice_calc, string="Expenses to invoice", type='float'),
+        'remaining_expense' : fields.function(_remaining_expnse_calc, string="Remaining Expenses", type="float"), 
         'est_expenses': fields.float('Estimation of Expenses to Invoice'),
         'ca_invoiced': fields.function(_ca_invoiced_calc, type='float', string='Invoiced Amount',
             help="Total customer invoiced amount for this account.",
index f6e376c..507667a 100644 (file)
@@ -200,7 +200,7 @@ class hr_holidays(osv.osv):
                                        help='This area is automaticly filled by the user who validate the leave with second level (If Leave type need second validation)'),
         'double_validation': fields.related('holiday_status_id', 'double_validation', type='boolean', relation='hr.holidays.status', string='Apply Double Validation'),
         'can_reset': fields.function(
-            _get_can_reset,
+            _get_can_reset, string="Can reset",
             type='boolean'),
     }
     _defaults = {
index 36b8a34..8b3da7b 100644 (file)
@@ -571,7 +571,7 @@ class mrp_production(osv.osv):
         'cycle_total': fields.function(_production_calc, type='float', string='Total Cycles', multi='workorder', store=True),
         'user_id': fields.many2one('res.users', 'Responsible'),
         'company_id': fields.many2one('res.company', 'Company', required=True),
-        'ready_production': fields.function(_moves_assigned, type='boolean', store={'stock.move': (_mrp_from_move, ['state'], 10)}),
+        'ready_production': fields.function(_moves_assigned, type='boolean', string="Ready for production", store={'stock.move': (_mrp_from_move, ['state'], 10)}),
     }
 
     _defaults = {
index f41bcec..688f2bd 100644 (file)
@@ -28,11 +28,11 @@ class mrp_product_produce_line(osv.osv_memory):
     _description = "Product Produce Consume lines"
 
     _columns = {
-        'product_id': fields.many2one('product.product', 'Product'),
+        'product_id': fields.many2one('product.product', string='Product'),
         'product_qty': fields.float('Quantity (in default UoM)'),
-        'lot_id': fields.many2one('stock.production.lot', 'Lot'),
-        'produce_id': fields.many2one('mrp.product.produce'),
-        'track_production': fields.related('product_id', 'track_production', type='boolean'),
+        'lot_id': fields.many2one('stock.production.lot', string='Lot'),
+        'produce_id': fields.many2one('mrp.product.produce', string="Produce"),
+        'track_production': fields.related('product_id', 'track_production', type='boolean', string="Track Production"),
     }
 
 class mrp_product_produce(osv.osv_memory):
index 5d28046..c611135 100644 (file)
@@ -38,7 +38,7 @@ class account_journal(osv.osv):
 class account_cash_statement(osv.osv):
     _inherit = 'account.bank.statement'
     _columns = {
-        'pos_session_id' : fields.many2one('pos.session', copy=False),
+        'pos_session_id' : fields.many2one('pos.session', string="Session", copy=False),
     }
 
 
index ae6be54..eb33e4d 100644 (file)
@@ -270,7 +270,7 @@ class pos_session(osv.osv):
                                     readonly=True,
                                     states={'opening_control' : [('readonly', False)]}
                                    ),
-        'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"),
+        'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currency"),
         'start_at' : fields.datetime('Opening Date', readonly=True), 
         'stop_at' : fields.datetime('Closing Date', readonly=True),
 
@@ -682,7 +682,7 @@ class pos_order(osv.osv):
         'amount_tax': fields.function(_amount_all, string='Taxes', digits_compute=dp.get_precision('Account'), multi='all'),
         'amount_total': fields.function(_amount_all, string='Total', multi='all'),
         'amount_paid': fields.function(_amount_all, string='Paid', states={'draft': [('readonly', False)]}, readonly=True, digits_compute=dp.get_precision('Account'), multi='all'),
-        'amount_return': fields.function(_amount_all, 'Returned', digits_compute=dp.get_precision('Account'), multi='all'),
+        'amount_return': fields.function(_amount_all, string='Returned', digits_compute=dp.get_precision('Account'), multi='all'),
         'lines': fields.one2many('pos.order.line', 'order_id', 'Order Lines', states={'draft': [('readonly', False)]}, readonly=True, copy=True),
         'statement_ids': fields.one2many('account.bank.statement.line', 'pos_statement_id', 'Payments', states={'draft': [('readonly', False)]}, readonly=True),
         'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, states={'draft': [('readonly', False)]}, readonly=True),
@@ -1242,7 +1242,7 @@ class account_bank_statement(osv.osv):
 class account_bank_statement_line(osv.osv):
     _inherit = 'account.bank.statement.line'
     _columns= {
-        'pos_statement_id': fields.many2one('pos.order', ondelete='cascade'),
+        'pos_statement_id': fields.many2one('pos.order', string="POS statement", ondelete='cascade'),
     }
 
 
index 5389fb3..39348a8 100644 (file)
@@ -9,15 +9,15 @@ class pos_session_opening(osv.osv_memory):
     _name = 'pos.session.opening'
 
     _columns = {
-        'pos_config_id' : fields.many2one('pos.config', 'Point of Sale', required=True),
-        'pos_session_id' : fields.many2one('pos.session', 'PoS Session'),
+        'pos_config_id' : fields.many2one('pos.config', string='Point of Sale', required=True),
+        'pos_session_id' : fields.many2one('pos.session', string='PoS Session'),
         'pos_state' : fields.related('pos_session_id', 'state',
                                      type='selection',
                                      selection=pos_session.POS_SESSION_STATE,
                                      string='Session Status', readonly=True),
         'pos_state_str' : fields.char('Status', readonly=True),
         'show_config' : fields.boolean('Show Config', readonly=True),
-        'pos_session_name' : fields.related('pos_session_id', 'name',
+        'pos_session_name' : fields.related('pos_session_id', 'name', string="Session Name",
                                             type='char', size=64, readonly=True),
         'pos_session_username' : fields.related('pos_session_id', 'user_id', 'name',
                                                 type='char', size=64, readonly=True)
index 96fbfc2..fab8dbd 100644 (file)
@@ -1237,7 +1237,7 @@ class product_supplierinfo(osv.osv):
         'product_tmpl_id' : fields.many2one('product.template', 'Product Template', required=True, ondelete='cascade', select=True, oldname='product_id'),
         'delay' : fields.integer('Delivery Lead Time', required=True, help="Lead time in days between the confirmation of the purchase order and the receipt of the products in your warehouse. Used by the scheduler for automatic computation of the purchase order planning."),
         'pricelist_ids': fields.one2many('pricelist.partnerinfo', 'suppinfo_id', 'Supplier Pricelist', copy=True),
-        'company_id':fields.many2one('res.company','Company',select=1),
+        'company_id':fields.many2one('res.company', string='Company',select=1),
     }
     _defaults = {
         'min_qty': 0.0,
index d73bb69..ab8c408 100644 (file)
@@ -1231,7 +1231,7 @@ class account_analytic_account(osv.osv):
     _description = 'Analytic Account'
     _columns = {
         'use_tasks': fields.boolean('Tasks',help="If checked, this contract will be available in the project menu and you will be able to manage tasks or track issues"),
-        'company_uom_id': fields.related('company_id', 'project_time_mode_id', type='many2one', relation='product.uom'),
+        'company_uom_id': fields.related('company_id', 'project_time_mode_id', string="Company UOM", type='many2one', relation='product.uom'),
     }
 
     def on_change_template(self, cr, uid, ids, template_id, date_start=False, context=None):
index f07d9c6..fb34ee2 100644 (file)
@@ -498,7 +498,7 @@ class project(osv.Model):
             help='If any issue is escalated from the current Project, it will be listed under the project selected here.',
             states={'close': [('readonly', True)], 'cancelled': [('readonly', True)]}),
         'issue_count': fields.function(_issue_count, type='integer', string="Issues",),
-        'issue_ids': fields.one2many('project.issue', 'project_id',
+        'issue_ids': fields.one2many('project.issue', 'project_id', string="Issues",
                                      domain=[('date_closed', '!=', False)]),
         'monthly_issues': fields.function(_get_project_issue_data, type='char', readonly=True,
                                              string='Project Issue By Month')
index 27b8875..1f28923 100644 (file)
@@ -292,7 +292,7 @@ class res_partner(osv.Model, format_address):
             help="Small-sized image of this contact. It is automatically "\
                  "resized as a 64x64px image, with aspect ratio preserved. "\
                  "Use this field anywhere a small image is required."),
-        'has_image': fields.function(_has_image, type="boolean"),
+        'has_image': fields.function(_has_image, string="Has image", type="boolean"),
         'company_id': fields.many2one('res.company', 'Company', select=1),
         'color': fields.integer('Color Index'),
         'user_ids': fields.one2many('res.users', 'partner_id', 'Users'),