'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'),
}
'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'),
_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.",
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 = {
'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 = {
_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):
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),
}
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),
'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),
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'),
}
_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)
'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,
_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):
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')
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'),