diff --git a/addons/account/account.py b/addons/account/account.py
index 41fffe4e2f7..9f0ac88ad35 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -1552,7 +1552,7 @@ class account_config_fiscalyear(osv.osv_memory):
}
_defaults = {
'date1': lambda *a: time.strftime('%Y-01-01'),
- 'date2': lambda *a: time.strftime('%Y-%m-%d'),
+ 'date2': lambda *a: time.strftime('%Y-12-31'),
}
def action_create(self, cr, uid,ids, context=None):
res=self.read(cr,uid,ids)[0]
@@ -1596,14 +1596,15 @@ class account_config_journal_bank_accounts(osv.osv_memory):
if 'lines_id' in config_res and config_res['lines_id']:
lines=line_obj.read(cr,uid,config_res['lines_id'])
for res in lines:
- if 'name' in res and 'bank_account_id' in res and 'view_id' in res and 'sequence_id' in res:
+ sequence_ids=self.pool.get('ir.sequence').search(cr,uid,[('name','=','Account Journal')])
+ if 'name' in res and 'bank_account_id' in res and 'view_id' in res and sequence_ids and len(sequence_ids):
vals={
'name':res['name'],
'type':'cash',
'view_id':res['view_id'],
'default_credit_account_id':res['bank_account_id'],
'default_debit_account_id':res['bank_account_id'],
- 'sequence_id':res['sequence_id']
+ 'sequence_id':sequence_ids[0]
}
res_obj.create(cr, uid, vals, context=context)
return {
@@ -1627,10 +1628,7 @@ class account_config_journal_bank_accounts_line(osv.osv_memory):
'name':fields.char('Journal Name', size=64,required=True),
'bank_account_id':fields.many2one('account.account', 'Bank Account', required=True, domain=[('type','=','cash')]),
'view_id':fields.selection(_journal_view_get, 'Journal View', required=True),
- 'sequence_id':fields.many2one('ir.sequence', 'Sequence', required=True),
'journal_id':fields.many2one('account.config.journal.bank.account', 'Journal', required=True),
}
-
-
account_config_journal_bank_accounts_line()
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 323eb57151b..acf47668ea5 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -1,13 +1,13 @@
-
+
-
+
-
+
account.fiscalyear.form
account.fiscalyear
@@ -57,11 +57,11 @@
tree,form
-
+
-
+
account.period.form
account.period
@@ -99,12 +99,12 @@
tree,form
-
-
+
+
-
+
account.account.form
account.account
@@ -121,7 +121,7 @@
-
+
@@ -143,7 +143,7 @@
tree,form
-
+
account.account.tree
account.account
@@ -168,7 +168,7 @@
[('code','=','0')]
-
+
account.account.list
account.account
@@ -189,13 +189,13 @@
[('code','=','0')]
-
+
-
+
account.journal.column.form
account.journal.column
@@ -224,7 +224,7 @@
-
+
account.journal.view.form
account.journal.view
@@ -236,11 +236,11 @@
-
+
-
+
account.journal.tree
account.journal
@@ -252,7 +252,7 @@
-
+
account.journal.form
account.journal
@@ -293,7 +293,7 @@
-
+
account.bank.statement.tree
account.bank.statement
@@ -311,7 +311,7 @@
-
+
account.bank.statement.form
account.bank.statement
@@ -375,7 +375,7 @@
form,tree
-
+
Draft statements
account.bank.statement
@@ -384,9 +384,9 @@
[('state','=','draft')]
-
-
-
+
+
+
account.bank.statement.reconcile.form
account.bank.statement.reconcile
@@ -475,11 +475,11 @@
-
+
-
+
account.move.reconcile.form
account.move.reconcile
@@ -495,7 +495,7 @@
-
+
@@ -550,8 +550,8 @@
-
-
+
+
@@ -599,7 +599,7 @@
-
+
@@ -624,7 +624,7 @@
-
+
Taxes
account.tax
@@ -632,15 +632,15 @@
-
-
-
+
+
+
-
+
-
+
tree_but_open
account.journal.period
@@ -648,10 +648,10 @@
-
+
-
+
Open Journals
account.journal.period
@@ -659,11 +659,11 @@
[('state','<>','done')]
-
+
-
+
account.move.line.tree
account.move.line
@@ -689,7 +689,7 @@
-
+
account.move.line.form
account.move.line
@@ -706,10 +706,10 @@
-
+
-
+
@@ -723,7 +723,7 @@
-
+
@@ -739,8 +739,8 @@
-
-
+
+
account.move.line.form2
account.move.line
@@ -760,7 +760,7 @@
-
+
@@ -771,7 +771,7 @@
-
+
@@ -785,7 +785,7 @@
-
+
account.move.line.select
account.move.line
@@ -793,11 +793,11 @@
tree,form
-
+
-
+
account.move.tree
account.move
@@ -808,13 +808,13 @@
-
+
-
+
account.move.form
account.move
@@ -826,7 +826,7 @@
-
+
-
+
@@ -874,7 +874,7 @@
-
+
Entries
ir.actions.act_window
@@ -883,7 +883,7 @@
-
+
Entry lines
ir.actions.act_window
@@ -903,16 +903,16 @@
-
+
-
+
-
-
-
+
+
+
account.bank.statement.reconcile.form
account.bank.statement
@@ -976,20 +976,20 @@
-
+
-
+
-
+
-
-
+
+
-
+
account.journal.period.tree
account.journal.period
@@ -1008,14 +1008,14 @@
tree
-
+
Budgets
account.budget.post
tree
-
+
@@ -1074,7 +1074,7 @@
-
+
Master Budgets
account.budget.post
@@ -1082,12 +1082,12 @@
-
-
+
+
-
+
account.model.line.tree
account.model.line
@@ -1104,8 +1104,8 @@
-
-
+
+
account.model.line.form
account.model.line
@@ -1126,7 +1126,7 @@
-
+
account.model.form
account.model
@@ -1161,12 +1161,12 @@
tree,form
-
-
+
+
-
+
account.payment.term.line.tree
account.payment.term.line
@@ -1181,8 +1181,8 @@
-
-
+
+
account.payment.term.line.form
account.payment.term.line
@@ -1199,7 +1199,7 @@
-
+
account.payment.term.form
account.payment.term
@@ -1223,11 +1223,11 @@
tree,form
-
+
-
+
account.subscription.line.form
account.subscription.line
@@ -1239,7 +1239,7 @@
-
+
account.subscription.line.tree
account.subscription.line
@@ -1251,7 +1251,7 @@
-
+
account.subscription.tree
account.subscription
@@ -1273,11 +1273,11 @@
-
+
Running Subscriptions
account.subscription
@@ -1321,7 +1321,7 @@
-
+
account.subscription.line.form
account.subscription.line
@@ -1351,8 +1351,8 @@
-
-
+
+
account.move.line.tax.tree
account.move.line
@@ -1374,7 +1374,7 @@
-
+
account.move.line
account.move.line
@@ -1390,24 +1390,24 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
Configure Fiscal Year
account.config.fiscalyear
@@ -1427,7 +1427,7 @@
-
+
Configure Fiscal Year
ir.actions.act_window
@@ -1436,9 +1436,9 @@
form
new
-
-
-
+
+
+
Configure Journal of Bank account
account.config.journal.bank.account
@@ -1452,13 +1452,11 @@
-
-
@@ -1468,7 +1466,7 @@
-
+
Configure Journal of Bank account
ir.actions.act_window
@@ -1477,22 +1475,22 @@
form
new
-
+
-
+
Define fiscal years
Define fiscal years
open
-
+
Define journal for bank accounts
Define journal for bank accounts
open
-
+
diff --git a/addons/profile_service/profile_service.py b/addons/profile_service/profile_service.py
index 2f78c583355..4bdb1692350 100644
--- a/addons/profile_service/profile_service.py
+++ b/addons/profile_service/profile_service.py
@@ -98,12 +98,12 @@ class config_install_extra_modules(osv.osv_memory):
ids = mod_obj.search(cr, uid, [('name', '=', 'hr_timesheet')])
mod_obj.download(cr, uid, ids, context=context)
cr.commit()
- db, pool = pooler.restart_pool(cr.dbname, update_module=True)
+ #db, pool = pooler.restart_pool(cr.dbname, update_module=True)
if 'hr_holidays_module' in res and res['hr_holidays_module']:
ids = mod_obj.search(cr, uid, [('name', '=', 'hr_holidays')])
mod_obj.download(cr, uid, ids, context=context)
cr.commit()
- db, pool = pooler.restart_pool(cr.dbname, update_module=True)
+ #db, pool = pooler.restart_pool(cr.dbname, update_module=True)
return {
'view_type': 'form',
"view_mode": 'form',
diff --git a/addons/profile_service/profile_service.xml b/addons/profile_service/profile_service.xml
index eefac225e1f..4c8b5a3da44 100644
--- a/addons/profile_service/profile_service.xml
+++ b/addons/profile_service/profile_service.xml
@@ -22,13 +22,13 @@
-->
-
-
+
+
-
+
Install extra modules
ir.actions.act_window
@@ -37,14 +37,15 @@
form
new
-
-
-
-
+
+
+
\ No newline at end of file