Hi again. Thanks for your reply. This is my template (attachment file), and this is my data model: _name = "remainder" _description = "remainder" _columns = { 'account_analytic_id': fields.many2one('account.analytic.account', 'Account Analytic', required=True), 'account_analytic_selection': fields.selection(_get_selection, 'Account Analytic', required=True), 'account_analytic_line_budgetary_origin_id': fields.many2one('account.analytic.line', 'Analytic Line Budgetary', required=True, domain="[('type', '=', 'budgetary'), ('account_id', '=', account_analytic_id)]"), 'account_analytic_line_financing_id': fields.many2one('account.analytic.line', 'Analytic Line Financing', required=True), 'updated_expense_budget_origin': fields.related('account_analytic_line_budgetary_origin_id', 'sum_updated_expense_budget', type='float', relation='account.analytic.line', string='Update Expense Budget Origin'), 'available_expense_origin': fields.related('account_analytic_line_budgetary_origin_id', 'sum_available_expense', type='float', relation='account.analytic.line', string='Available Expense Origin'), 'expense_compromised_origin': fields.related('account_analytic_line_budgetary_origin_id', 'expense_compromised', type='float', relation='account.analytic.line', string='Expense Compromised'), 'real_expense_origin':fields.related('account_analytic_line_budgetary_origin_id', 'real_expense', type='float', relation='account.analytic.line', string='Real Expense'), 'available_financing': fields.related('account_analytic_line_financing_id', 'available', type='float', relation='account.analytic.line', string='Available Financing'), 'account_analytic_target_id': fields.many2one('account.analytic.account', 'Account Analytic', required=True), 'account_analytic_line_budgetary_target_id': fields.many2one('account.analytic.line', 'Analytic Line Budgetary', required=True, domain="[('type', '=', 'budgetary'), ('account_id', '=', account_analytic_target_id)]"), 'update_expense_budget_target': fields.related('account_analytic_line_budgetary_origin_id', 'sum_updated_expense_budget', type='float', relation='account.analytic.line', string='Update Expense Budget Target'), 'available_expense_target' : fields.related('account_analytic_line_budgetary_origin_id', 'sum_available_expense', type='float', relation='account.analytic.line', string='Available Expense Target'), 'expense_compromised_target': fields.related('account_analytic_line_budgetary_origin_id', 'expense_compromised', type='float', relation='account.analytic.line', string='Expense Compromised'), 'real_expense_target':fields.related('account_analytic_line_budgetary_origin_id', 'real_expense', type='float', relation='account.analytic.line', string='Real Expense'), 'date': fields.date('Request Date', required=True), 'grant_date': fields.date('Grand date', required=True), 'crm_claim_id': fields.many2one('crm.claim','Claim', OnDelete='cascade'), 'amount': fields.float('Amount', digits=(2,1), required=True), 'state':fields.selection([('draft','Draft'), ('granted','Granted'),('in_progress','In Progress'),('completed','Completed'),('rejected','Rejected')], 'State', readonly=True), 'rejection_reason': fields.text('Rejection Reason'), } Thanks for help.