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..16cd957a61e 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1583,7 +1583,12 @@ context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}" src_model="account.account"/> - + + + + + diff --git a/addons/project_issue/board_project_issue_view.xml b/addons/project_issue/board_project_issue_view.xml index 2d30b2673b4..216f01eba9f 100644 --- a/addons/project_issue/board_project_issue_view.xml +++ b/addons/project_issue/board_project_issue_view.xml @@ -138,6 +138,7 @@ form graph,tree,form, [('state','=','open'),('user_id','=',uid)] + {'default_user_id': uid} diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index 9504f865256..6fc872580a2 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -40,7 +40,7 @@ form [('object_id.model', '=', 'project.issue')] - {'object_id':'project.issue'} + diff --git a/addons/project_scrum/project_scrum_view.xml b/addons/project_scrum/project_scrum_view.xml index 7749b5e2d3b..09d018aeb92 100644 --- a/addons/project_scrum/project_scrum_view.xml +++ b/addons/project_scrum/project_scrum_view.xml @@ -467,6 +467,7 @@ form tree,form [('product_backlog_id', '=', active_id)] + {'default_product_backlog_id': active_id} @@ -481,6 +482,7 @@ form tree,form [('sprint_id', '=', active_id)] + {'default_sprint_id': active_id} diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 2b1ba34b8e1..6f6b5975de7 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -108,7 +108,7 @@ tree,form,calendar,graph [('type','=','in_invoice')] - {'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1} + {'default_type':'in_invoice', 'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1} Use this menu to control the invoices to be received from your supplier. OpenERP pregenerates draft invoices from your purchase orders or receptions, according to your settings. Once you receive a supplier invoice, you can match it with the draft invoice and validate it. diff --git a/addons/purchase/stock_view.xml b/addons/purchase/stock_view.xml index 0e2a1852eca..7afcc96767f 100644 --- a/addons/purchase/stock_view.xml +++ b/addons/purchase/stock_view.xml @@ -31,7 +31,7 @@ res_model="stock.picking" groups="base.group_extended" src_model="purchase.order" - context="{'contact_display': 'partner'}" /> + context="{'default_purchase_id': active_id, 'contact_display': 'partner'}" /> @@ -110,7 +110,7 @@ form tree,form,calendar [('type','=','in')] - {'contact_display': 'partner_address',"search_default_done":1, "search_default_to_invoice":1} + {"default_type": "in", "contact_display": "partner_address", "search_default_done": 1, "search_default_to_invoice": 1} If you set the Invoicing Control on a purchase order as "Based on receptions", you can track here all the product receptions and create invoices for those receptions. diff --git a/addons/purchase_requisition/purchase_requisition_view.xml b/addons/purchase_requisition/purchase_requisition_view.xml index fdddb4b7fee..e0f09f6f7d6 100644 --- a/addons/purchase_requisition/purchase_requisition_view.xml +++ b/addons/purchase_requisition/purchase_requisition_view.xml @@ -205,6 +205,7 @@ diff --git a/addons/sale/stock_view.xml b/addons/sale/stock_view.xml index 943d528b7b4..7b9e90f6f0a 100644 --- a/addons/sale/stock_view.xml +++ b/addons/sale/stock_view.xml @@ -71,7 +71,7 @@ form tree,form,calendar [('type','=','out')] - {'contact_display': 'partner_address', 'search_default_to_invoice': 1, 'search_default_done': 1} + {'default_type': 'out', 'contact_display': 'partner_address', 'search_default_to_invoice': 1, 'search_default_done': 1} diff --git a/addons/stock/board_warehouse_view.xml b/addons/stock/board_warehouse_view.xml index 68485ab2b49..3c645aecb5b 100644 --- a/addons/stock/board_warehouse_view.xml +++ b/addons/stock/board_warehouse_view.xml @@ -28,7 +28,7 @@ graph,tree [('type','=','in'),('day','<=', time.strftime('%Y-%m-%d')),('day','>',(datetime.date.today()-datetime.timedelta(days=15)).strftime('%Y-%m-%d'))] - {'search_default_month-1':1,'search_default_in':1,'group_by':['day'], 'group_by_no_leaf':1} + {'default_type':'in','search_default_month-1':1,'search_default_in':1,'group_by':['day'], 'group_by_no_leaf':1} Outgoing Products Delay @@ -37,7 +37,7 @@ graph,tree [('type','=','out'),('day','<=', time.strftime('%Y-%m-%d')),('day','>',(datetime.date.today()-datetime.timedelta(days=15)).strftime('%Y-%m-%d'))] - {'search_default_month-1':1,'search_default_out':1,'group_by':['day'], 'group_by_no_leaf':1} + {'default_type':'out','search_default_month-1':1,'search_default_out':1,'group_by':['day'], 'group_by_no_leaf':1} board.warehouse.form diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 8e3450708eb..6cd9d61f6c4 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -1058,7 +1058,7 @@ form tree,form,calendar [('type','=','out')] - {'contact_display': 'partner_address', 'search_default_available': 1} + {'default_type': 'out', 'contact_display': 'partner_address', 'search_default_available': 1} This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules. @@ -1335,7 +1335,7 @@ form tree,form,calendar [('type','=','internal')] - {'contact_display': 'partner_address',"search_default_available":1} + {'default_type': 'internal', 'contact_display': 'partner_address', 'search_default_available': 1} Internal Moves display all inventory operations you have to perform in your warehouse. All operations can be categorized into stock journals, so that each worker has his own list of operations to perform in his own journal. Most operations are prepared automatically by OpenERP according to your preconfigured logistics rules, but you can also record manual stock operations. @@ -1841,7 +1841,7 @@ form tree,form,calendar [('type','=','out')] - {'contact_display': 'partner',"search_default_available":1} + {'default_type': 'out', 'contact_display': 'partner',"search_default_available":1} diff --git a/addons/wiki/wiki.py b/addons/wiki/wiki.py index 940d7116099..fa1dca8e95a 100644 --- a/addons/wiki/wiki.py +++ b/addons/wiki/wiki.py @@ -125,9 +125,9 @@ class wiki_wiki2(osv.osv): 'child_ids': fields.one2many('wiki.wiki', 'parent_id', 'Child Pages'), } _defaults = { - 'toc': lambda *a: True, - 'review': lambda *a: True, - 'minor_edit': lambda *a: True, + 'toc': True, + 'review': True, + 'minor_edit': True, } def onchange_group_id(self, cr, uid, ids, group_id, content, context=None):