From 2e1023ddbe381ef162003abf75c22cfc44e7c2e4 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Thu, 24 Nov 2011 13:14:33 +0100 Subject: [PATCH] [IMP] domain to context: Use explicitely default_xxx in the context instead of relying on the domain to fill form views. bzr revid: vmt@openerp.com-20111124121433-z5du2yeu319ea1ax --- addons/account/account_invoice_view.xml | 8 ++++---- addons/account/account_view.xml | 19 ++++++++++++++++--- addons/account/board_account_view.xml | 3 +++ .../account_analytic_analysis_menu.xml | 4 ++-- .../account_payment/account_payment_view.xml | 2 -- .../voucher_payment_receipt_view.xml | 4 ++-- .../voucher_sales_purchase_view.xml | 8 ++++---- addons/auction/report/report_auction_view.xml | 1 + addons/caldav/caldav_view.xml | 1 + addons/crm/board_crm_statistical_view.xml | 4 ++-- addons/crm/board_crm_view.xml | 12 +++++++----- addons/crm/crm_meeting_menu.xml | 2 +- addons/crm_claim/crm_claim_view.xml | 2 +- .../report/crm_lead_report_view.xml | 2 +- addons/delivery/delivery_view.xml | 2 +- addons/document/document_view.xml | 2 ++ addons/fetchmail/fetchmail_view.xml | 2 +- addons/hr/hr_view.xml | 1 + addons/hr_evaluation/hr_evaluation_view.xml | 2 +- addons/hr_expense/board_hr_expense_view.xml | 1 + addons/hr_holidays/hr_holidays_view.xml | 2 +- addons/hr_payroll/hr_payroll_view.xml | 3 ++- .../report/report_analytic_view.xml | 1 + addons/mail/mail_message_view.xml | 1 + addons/mrp/mrp_view.xml | 1 + .../point_of_sale/account_statement_view.xml | 1 + addons/point_of_sale/point_of_sale_view.xml | 2 ++ addons/product/pricelist_view.xml | 4 ++-- addons/project/board_project_view.xml | 2 ++ addons/project_gtd/project_gtd_view.xml | 2 +- .../board_project_issue_view.xml | 2 ++ addons/project_scrum/project_scrum_view.xml | 2 ++ addons/purchase/purchase_view.xml | 2 +- addons/purchase/stock_view.xml | 4 ++-- .../purchase_requisition_view.xml | 1 + addons/resource/resource_view.xml | 2 ++ addons/sale/board_sale_view.xml | 1 + addons/sale/stock_view.xml | 2 +- addons/stock/board_warehouse_view.xml | 4 ++-- addons/stock/stock_view.xml | 7 ++++--- addons/survey/survey_view.xml | 1 + addons/wiki/wiki.py | 6 +++--- 42 files changed, 88 insertions(+), 47 deletions(-) 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"/> - +