← Back to team overview

openerp-dev-web team mailing list archive

lp:~openerp-dev/openobject-addons/6.0-opw-account_budget_reports_fixed_4577-ach into lp:openobject-addons/6.0

 

Anup(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/6.0-opw-account_budget_reports_fixed_4577-ach into lp:openobject-addons/6.0.

Requested reviews:
  Jay Vora (OpenERP) (jvo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-account_budget_reports_fixed_4577-ach/+merge/54185

Hello,

     All three budget reports fail, when there is no analytic account in the budget lines. I have found a solution for it.

     I have made the Analytic Account a mandatory field on budget lines. We can not have a budget line without an analytic account.

   Share your views please.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-account_budget_reports_fixed_4577-ach/+merge/54185
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.0-opw-account_budget_reports_fixed_4577-ach.
=== modified file 'account_budget/account_budget.py'
--- account_budget/account_budget.py	2011-01-14 00:11:01 +0000
+++ account_budget/account_budget.py	2011-03-21 11:16:09 +0000
@@ -190,7 +190,7 @@
     _description = "Budget Line"
     _columns = {
         'crossovered_budget_id': fields.many2one('crossovered.budget', 'Budget', ondelete='cascade', select=True, required=True),
-        'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=False),
+        'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=True),
         'general_budget_id': fields.many2one('account.budget.post', 'Budgetary Position',required=True),
         'date_from': fields.date('Start Date', required=True),
         'date_to': fields.date('End Date', required=True),


Follow ups