diff --git a/addons/account_coda/i18n/en_AU.po b/addons/account_coda/i18n/en_AU.po index 05ee43ee631..319220741c5 100644 --- a/addons/account_coda/i18n/en_AU.po +++ b/addons/account_coda/i18n/en_AU.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-27 04:36+0000\n" -"X-Generator: Launchpad (build 16033)\n" +"X-Launchpad-Export-Date: 2012-09-28 04:39+0000\n" +"X-Generator: Launchpad (build 16043)\n" #. module: account_coda #: model:account.coda.trans.code,description:account_coda.actcc_09_21 diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index c74ca5f833a..36aa8660bc4 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -782,9 +782,16 @@ class account_voucher(osv.osv): vals[key].update(res[key]) return vals + def button_proforma_voucher(self, cr, uid, ids, context=None): + context = context or {} + wf_service = netsvc.LocalService("workflow") + for vid in ids: + wf_service.trg_validate(uid, 'account.voucher', vid, 'proforma_voucher', cr) + return {'type': 'ir.actions.act_window_close'} + def proforma_voucher(self, cr, uid, ids, context=None): self.action_move_line_create(cr, uid, ids, context=context) - return {'type': 'ir.actions.act_window_close'} + return True def action_cancel_draft(self, cr, uid, ids, context=None): wf_service = netsvc.LocalService("workflow") diff --git a/addons/account_voucher/invoice.py b/addons/account_voucher/invoice.py index 14b725cbeca..91ba438756e 100644 --- a/addons/account_voucher/invoice.py +++ b/addons/account_voucher/invoice.py @@ -27,11 +27,12 @@ class invoice(osv.osv): def invoice_pay_customer(self, cr, uid, ids, context=None): if not ids: return [] + mod,modid = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account_voucher', 'view_vendor_receipt_dialog_form') inv = self.browse(cr, uid, ids[0], context=context) return { 'name':_("Pay Invoice"), 'view_mode': 'form', - 'view_id': False, + 'view_id': modid, 'view_type': 'form', 'res_model': 'account.voucher', 'type': 'ir.actions.act_window', @@ -41,13 +42,13 @@ class invoice(osv.osv): 'context': { 'default_partner_id': inv.partner_id.id, 'default_amount': inv.type in ('out_refund', 'in_refund') and -inv.residual or inv.residual, - 'default_name':inv.name, + 'default_number':inv.name, 'close_after_process': True, - 'invoice_type':inv.type, - 'invoice_id':inv.id, + 'invoice_type': inv.type, + 'invoice_id': inv.id, 'default_type': inv.type in ('out_invoice','out_refund') and 'receipt' or 'payment', 'type': inv.type in ('out_invoice','out_refund') and 'receipt' or 'payment' - } + } } invoice() diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml index 65bcdad8a9b..78b76e5c9b7 100644 --- a/addons/account_voucher/voucher_payment_receipt_view.xml +++ b/addons/account_voucher/voucher_payment_receipt_view.xml @@ -284,6 +284,111 @@ + + account.voucher.receipt.dialog.form + account.voucher + 30 + +
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + account.voucher.receipt.form account.voucher @@ -297,7 +402,7 @@ -

+

@@ -329,7 +434,6 @@ - +
+ + +
diff --git a/addons/document/__openerp__.py b/addons/document/__openerp__.py index 3dc14054b40..e3354efff0c 100644 --- a/addons/document/__openerp__.py +++ b/addons/document/__openerp__.py @@ -57,6 +57,7 @@ ATTENTION: ], 'demo': [ 'document_demo.xml','board_document_demo.xml'], 'test': ['test/document_test2.yml'], + 'js': ['static/src/js/document.js'], 'installable': True, 'auto_install': False, 'images': ['images/1_directories.jpeg','images/2_storage_media.jpeg','images/3_directories_structure.jpeg'], diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js new file mode 100644 index 00000000000..2dde2696c81 --- /dev/null +++ b/addons/document/static/src/js/document.js @@ -0,0 +1,10 @@ +openerp.document = function (instance) { + _t = instance.web._t; + instance.web.Sidebar.include({ + init : function(){ + this._super.apply(this, arguments); + this.sections.splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); + this.items['files'] = []; + } + }); +}; \ No newline at end of file diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index fd396053d5d..40019513126 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -1,15 +1,14 @@ - - + + + event.registration + form + Registrations + calendar,tree,form,graph + {'search_default_event_id': active_id, 'default_event_id': active_id} + - Event + Events Helps you manage your Events. 3 diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 5d4c2ae9d45..6e23a714848 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -350,10 +350,8 @@
- -
diff --git a/addons/hr/res_config_view.xml b/addons/hr/res_config_view.xml index 7507665c96d..f370b26139d 100644 --- a/addons/hr/res_config_view.xml +++ b/addons/hr/res_config_view.xml @@ -69,7 +69,7 @@