[IMP]Menuitem moved

bzr revid: dle@openerp.com-20121112151418-ztaxxfbzpyw7s58i
This commit is contained in:
Denis Ledoux dle@openerp.com 2012-11-12 16:14:18 +01:00
parent 75971d90d8
commit 3c06af7a58
3 changed files with 13 additions and 4 deletions

View File

@ -575,7 +575,6 @@ class account_move_line(osv.osv):
if not jids:
raise osv.except_osv(_('Configuration Error!'), _('Cannot find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration/Journals/Journals.') % context.get('journal_type'))
journal_id = jids[0]
print context
return journal_id

View File

@ -1580,14 +1580,25 @@
<field name="res_model">account.move.line</field>
<field name="view_id" ref="view_move_line_quickadd_tree"/>
<field name="view_mode">tree_account_move_line_quickadd</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to register a new journal item.
</p><p>
This view can be used by accountants in order to quickly record
entries in OpenERP. If you want to record a supplier invoice,
start by recording the line of the expense account. OpenERP
will propose to you automatically the Tax related to this
account and the counterpart "Account Payable".
</p>
</field>
</record>
<menuitem
name="Quick Journal Items"
action="action_account_manual_account_move_line_quickadd"
id="menu_manual_account_move_line_quickadd"
sequence="20"
parent="account.menu_finance_bank_and_cash"/>
sequence="2"
parent="account.menu_finance_entries"/>
<menuitem
name="Journal Items to Reconcile"

View File

@ -50,7 +50,6 @@ openerp.account.quickadd = function (instance) {
}),mod.call("default_get", [['journal_id','period_id'],self.last_context]).then(function(result) {
self.default_period = result['period_id'];
self.default_journal = result['journal_id'];
console.log(result);
})).then(function () {
self.current_journal = self.current_journal === null ? self.default_journal : self.current_journal;
self.current_period = self.current_period === null ? self.default_period :self.current_period;