diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 54a60ee1b57..4cc1a63db61 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -432,7 +432,7 @@ tree,form,calendar,graph [('type','=','out_invoice')] - {'type':'out_invoice', 'journal_type': 'sale'} + {'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'} With Customer Invoices you can create and manage sales invoices issued to your customers. OpenERP can also generate draft invoices automatically from sales orders or deliveries. You should only confirm them before sending them to your customers. @@ -460,7 +460,7 @@ tree,form,calendar,graph [('type','=','in_invoice')] - {'type':'in_invoice', 'journal_type': 'purchase'} + {'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'} With Supplier Invoices you can enter and manage invoices issued by your suppliers. OpenERP can also generate draft invoices automatically from purchase orders or receipts. This way, you can control the invoice from your supplier according to what you purchased or received. @@ -473,7 +473,7 @@ tree,form,calendar,graph [('type','=','out_refund')] - {'type':'out_refund', 'journal_type': 'sale_refund'} + {'default_type':'out_refund', 'type':'out_refund', 'journal_type': 'sale_refund'} With Customer Refunds you can manage the credit notes for your customers. A refund is a document that credits an invoice completely or partially. You can easily generate refunds and reconcile them directly from the invoice form. @@ -499,7 +499,7 @@ tree,form,calendar,graph [('type','=','in_refund')] - {'type':'in_refund', 'journal_type': 'purchase_refund'} + {'default_type': 'in_refund', 'type': 'in_refund', 'journal_type': 'purchase_refund'} With Supplier Refunds you can manage the credit notes you receive from your suppliers. A refund is a document that credits an invoice completely or partially. You can easily generate refunds and reconcile them directly from the invoice form. diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 1d336dda460..09a54f7cef8 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1583,7 +1583,13 @@ context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}" src_model="account.account"/> - +