openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #02752
[Merge] lp:~openerp-dev/openobject-addons/trunk-dev-addons1-act_window into lp:openobject-addons
Ujjvala Collins (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-dev-addons1-act_window into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
#701070 cannot schedule only one project
https://bugs.launchpad.net/bugs/701070
#701542 CC field in email_template module, multiple lines ...
https://bugs.launchpad.net/bugs/701542
#708467 Act_window : Incomplete behavior
https://bugs.launchpad.net/bugs/708467
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-dev-addons1-act_window/+merge/48114
* [FIX] lp:708467, Changed all: Fixed incomplete behavior of act_window.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-dev-addons1-act_window/+merge/48114
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-dev-addons1-act_window.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml 2011-01-24 16:13:46 +0000
+++ account/account_invoice_view.xml 2011-02-01 06:41:30 +0000
@@ -506,12 +506,12 @@
</record>
<menuitem action="action_invoice_tree4" id="menu_action_invoice_tree4" parent="menu_finance_payables"/>
- <act_window context="{'search_default_partner_id':[active_id]}" id="act_res_partner_2_account_invoice_opened" name="Invoices" res_model="account.invoice" src_model="res.partner"/>
+ <act_window context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}" id="act_res_partner_2_account_invoice_opened" name="Invoices" res_model="account.invoice" src_model="res.partner"/>
<act_window
id="act_account_journal_2_account_invoice_opened"
name="Unpaid Invoices"
- context="{'search_default_journal_id':active_id, 'search_default_unpaid':1,}"
+ context="{'search_default_journal_id': [active_id], 'search_default_unpaid':1, 'default_journal_id': active_id}"
res_model="account.invoice"
src_model="account.journal"/>
=== modified file 'account/account_view.xml'
--- account/account_view.xml 2011-01-24 16:13:46 +0000
+++ account/account_view.xml 2011-02-01 06:41:30 +0000
@@ -1496,7 +1496,7 @@
<act_window
id="act_account_move_to_account_move_line_open"
name="Journal Items"
- context="{'search_default_move_id':[active_id]}"
+ context="{'search_default_move_id':[active_id], 'default_move_id': active_id}"
res_model="account.move.line"
src_model="account.move"/>
@@ -1538,7 +1538,7 @@
<act_window
id="act_account_acount_move_line_open"
name="Entries"
- context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0}"
+ context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0, 'default_account_id': active_id}"
res_model="account.move.line"
src_model="account.account"/>
@@ -1546,7 +1546,7 @@
id="act_account_acount_move_line_open_unreconciled"
name="Unreconciled Entries"
res_model="account.move.line"
- context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1,}"
+ context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
src_model="account.account"/>
<act_window domain="[('reconcile_id', '=', active_id)]" id="act_account_acount_move_line_reconcile_open" name="Reconciled entries" res_model="account.move.line" src_model="account.move.reconcile"/>
@@ -1991,20 +1991,20 @@
<act_window
id="act_account_journal_2_account_bank_statement"
name="Bank statements"
- context="{'search_default_journal_id':active_id,}"
+ context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
res_model="account.bank.statement"
src_model="account.journal"/>
<act_window
id="act_account_journal_2_account_move_line"
name="Journal Items"
- context="{'search_default_journal_id':active_id,}"
+ context="{'search_default_journal_id':active_id, 'default_journal_id': active_id}"
res_model="account.move.line"
src_model="account.journal"/>
- <act_window context="{'search_default_reconcile_id':False, 'search_default_partner_id':[active_id]}" domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]" id="act_account_partner_account_move_all" name="Receivables & Payables" res_model="account.move.line" src_model="res.partner" groups="base.group_extended"/>
+ <act_window context="{'search_default_reconcile_id':False, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}" domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]" id="act_account_partner_account_move_all" name="Receivables & Payables" res_model="account.move.line" src_model="res.partner" groups="base.group_extended"/>
- <act_window context="{'search_default_partner_id':[active_id]}" id="act_account_partner_account_move" name="Journal Items" res_model="account.move.line" src_model="res.partner" groups="account.group_account_user"/>
+ <act_window context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}" id="act_account_partner_account_move" name="Journal Items" res_model="account.move.line" src_model="res.partner" groups="account.group_account_user"/>
<record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
<field name="name">Create Account</field>
=== modified file 'account/partner_view.xml'
--- account/partner_view.xml 2011-01-14 00:11:01 +0000
+++ account/partner_view.xml 2011-02-01 06:41:30 +0000
@@ -131,7 +131,7 @@
id="action_analytic_open"
name="Analytic Accounts"
res_model="account.analytic.account"
- context="{'search_default_partner_id':[active_id]}"
+ context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
src_model="res.partner"
view_type="form"
view_mode="tree,form,graph,calendar"
=== modified file 'account/project/project_view.xml'
--- account/project/project_view.xml 2011-01-17 12:32:25 +0000
+++ account/project/project_view.xml 2011-02-01 06:41:30 +0000
@@ -445,7 +445,7 @@
</record>
<act_window
- context="{'search_default_account_id': [active_id], 'search_default_user_id': False}"
+ context="{'search_default_account_id': [active_id], 'search_default_user_id': False, 'default_account_id': active_id}"
id="act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal"
name="All Analytic Entries"
res_model="account.analytic.line"
=== modified file 'account_analytic_default/account_analytic_default_view.xml'
--- account_analytic_default/account_analytic_default_view.xml 2011-01-14 00:11:01 +0000
+++ account_analytic_default/account_analytic_default_view.xml 2011-02-01 06:41:30 +0000
@@ -81,7 +81,7 @@
id="act_account_acount_move_line_open"
res_model="account.move.line"
src_model="account.account"
- context="{'search_default_account_id': [active_id]}"
+ context="{'search_default_account_id': [active_id], 'default_account_id': active_id}"
/>
<menuitem
@@ -95,7 +95,7 @@
id="analytic_rule_action_partner"
res_model="account.analytic.default"
src_model="res.partner"
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
groups="analytic.group_analytic_accounting"/>
<act_window
@@ -103,7 +103,7 @@
id="analytic_rule_action_user"
res_model="account.analytic.default"
src_model="res.users"
- context="{'search_default_user_id': [active_id]}"
+ context="{'search_default_user_id': [active_id], 'default_user_id': active_id}"
groups="analytic.group_analytic_accounting"/>
<act_window
@@ -111,7 +111,7 @@
res_model="account.analytic.default"
id="analytic_rule_action_product"
src_model="product.product"
- context="{'search_default_product_id': [active_id]}"
+ context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
groups="analytic.group_analytic_accounting"/>
</data>
=== modified file 'account_analytic_plans/account_analytic_plans_view.xml'
--- account_analytic_plans/account_analytic_plans_view.xml 2011-01-14 00:11:01 +0000
+++ account_analytic_plans/account_analytic_plans_view.xml 2011-02-01 06:41:30 +0000
@@ -154,8 +154,8 @@
</record>
<act_window name="Distribution Models"
- domain="[('plan_id', '=', active_id),('plan_id','<>',False)]"
- context="{'plan_id':active_id}"
+ domain="[('plan_id','<>',False)]"
+ context="{'search_default_plan_id': active_id, 'default_plan_id': active_id}"
res_model="account.analytic.plan.instance"
src_model="account.analytic.plan"
id="account_analytic_instance_model_open"/>
=== modified file 'account_budget/account_budget_view.xml'
--- account_budget/account_budget_view.xml 2011-01-14 00:11:01 +0000
+++ account_budget/account_budget_view.xml 2011-02-01 06:41:30 +0000
@@ -250,7 +250,7 @@
<!-- Shortcuts -->
<act_window name="Budget Lines"
- context="{'search_default_analytic_account_id': [active_id]}"
+ context="{'search_default_analytic_account_id': [active_id], 'default_analytic_account_id': active_id}"
res_model="crossovered.budget.lines"
src_model="account.analytic.account"
id="act_account_analytic_account_cb_lines"/>
=== modified file 'account_voucher/account_voucher_view.xml'
--- account_voucher/account_voucher_view.xml 2011-01-18 17:05:22 +0000
+++ account_voucher/account_voucher_view.xml 2011-02-01 06:41:30 +0000
@@ -189,7 +189,7 @@
<act_window
id="act_journal_voucher_open"
name="Voucher Entries"
- context="{'search_default_journal_id': active_id, 'type':type}"
+ context="{'search_default_journal_id': active_id, 'type':type, 'default_journal_id': active_id}"
res_model="account.voucher"
src_model="account.journal"/>
=== modified file 'auction/auction_view.xml'
--- auction/auction_view.xml 2011-01-14 00:11:01 +0000
+++ auction/auction_view.xml 2011-02-01 06:41:30 +0000
@@ -254,7 +254,7 @@
</record>
<act_window name="Open lots"
- domain="[('auction_id', '=', active_id)]"
+ context="{'search_default_auction_id': [active_id], 'default_auction_id': active_id}"
res_model="auction.lots"
src_model="auction.dates"
id="act_auction_lot_line_open"/>
@@ -499,7 +499,7 @@
<!-- Action for Bids -->
<act_window name="Open Bids"
- domain="[('lot_id', '=', active_id)]"
+ context="{'search_default_lot_id': [active_id], 'default_lot_id': active_id}"
res_model="auction.bid_line"
src_model="auction.lots"
id="act_auction_lot_open_bid"/>
@@ -769,7 +769,7 @@
<menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6" groups="group_auction_manager"/>
<act_window name="Deposit slip"
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
res_model="auction.deposit"
src_model="res.partner"
id="act_auction_lot_open_deposit"/>
=== modified file 'base_contact/base_contact_view.xml'
--- base_contact/base_contact_view.xml 2011-01-14 00:11:01 +0000
+++ base_contact/base_contact_view.xml 2011-02-01 06:41:30 +0000
@@ -410,7 +410,7 @@
<act_window
id="act_res_partner_jobs"
name="Open Jobs"
- context="{'search_default_address_id': [active_id]}"
+ context="{'search_default_address_id': [active_id], 'default_address_id': active_id}"
res_model="res.partner.job"
src_model="res.partner.address"
/>
=== modified file 'crm/crm_phonecall_menu.xml'
--- crm/crm_phonecall_menu.xml 2011-01-20 12:42:20 +0000
+++ crm/crm_phonecall_menu.xml 2011-02-01 06:41:30 +0000
@@ -8,7 +8,7 @@
res_model="crm.phonecall"
src_model="res.partner"
view_mode="calendar,tree,form"
- context="{'search_default_partner_id': [active_id], 'default_duration': 1.0}"
+ context="{'search_default_partner_id': [active_id], 'default_duration': 1.0, 'default_partner_id': active_id}"
groups="base.group_extended"
/>
=== modified file 'crm_claim/crm_claim_view.xml'
--- crm_claim/crm_claim_view.xml 2011-01-14 09:34:28 +0000
+++ crm_claim/crm_claim_view.xml 2011-02-01 06:41:30 +0000
@@ -290,7 +290,7 @@
</record>
<act_window
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
id="act_claim_partner"
name="Report a Claim"
view_mode="form,tree"
=== modified file 'event/event_view.xml'
--- event/event_view.xml 2011-01-14 00:11:01 +0000
+++ event/event_view.xml 2011-02-01 06:41:30 +0000
@@ -280,7 +280,7 @@
res_model="event.registration"
src_model="event.event"
view_mode="tree,form,calendar,graph"
- domain="[('event_id','=',active_id)]"
+ context="{'search_default_event_id': [active_id], 'default_event_id': active_id}"
view_type="form"/>
<act_window
@@ -289,7 +289,7 @@
res_model="event.registration"
src_model="res.partner"
view_mode="tree,form,calendar,graph"
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
view_type="form"/>
<menuitem name="Events" id="menu_event_event" action="action_event_view" parent="base.menu_event_main" />
=== modified file 'event_project/event_project_view.xml'
--- event_project/event_project_view.xml 2011-01-14 00:11:01 +0000
+++ event_project/event_project_view.xml 2011-02-01 06:41:30 +0000
@@ -36,7 +36,7 @@
res_model="project.task"
src_model="event.event"
view_mode="tree,form,calendar,graph"
- context="{'search_default_project_id': project_id}"
+ context="{'search_default_project_id': project_id, 'default_project_id': project_id}"
view_type="form"/>
</data>
=== modified file 'fetchmail/fetchmail_view.xml'
--- fetchmail/fetchmail_view.xml 2011-01-14 00:11:01 +0000
+++ fetchmail/fetchmail_view.xml 2011-02-01 06:41:30 +0000
@@ -150,8 +150,7 @@
parent="base.menu_mail_gateway" action="action_view_mail_message_emails" />
<act_window
- context="{'server_id': active_id}"
- domain="[('server_id', '=', active_id)]"
+ context="{'search_default_server_id': [active_id], 'default_server_id': active_id}"
id="act_server_history" name="Emails"
res_model="mailgate.message" src_model="email.server"/>
=== modified file 'hr_contract/hr_contract_view.xml'
--- hr_contract/hr_contract_view.xml 2011-01-14 00:11:01 +0000
+++ hr_contract/hr_contract_view.xml 2011-02-01 06:41:30 +0000
@@ -271,7 +271,7 @@
<!-- Contracts Button on Employee Form -->
<act_window
- context="{'search_default_employee_id': [active_id]}"
+ context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
id="act_hr_employee_2_hr_contract"
name="Contracts"
res_model="hr.contract"
=== modified file 'hr_evaluation/hr_evaluation_view.xml'
--- hr_evaluation/hr_evaluation_view.xml 2011-01-14 00:11:01 +0000
+++ hr_evaluation/hr_evaluation_view.xml 2011-02-01 06:41:30 +0000
@@ -406,7 +406,7 @@
<!-- Evaluation Interviews Button on Employee Form -->
<act_window
- context="{'search_default_user_to_review_id': [active_id]}"
+ context="{'search_default_user_to_review_id': [active_id], 'default_user_to_review_id': active_id}"
id="act_hr_employee_2_hr__evaluation_interview"
name="Evaluation Interviews"
res_model="hr.evaluation.interview"
=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml 2011-01-14 00:11:01 +0000
+++ hr_holidays/hr_holidays_view.xml 2011-02-01 06:41:30 +0000
@@ -435,7 +435,7 @@
<!-- Shortcuts -->
<act_window name="Holidays"
domain="[('type','=','remove')]"
- context="{'search_default_employee_id': [active_id]}"
+ context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
res_model="hr.holidays"
src_model="hr.employee"
view_id ="view_holiday"
=== modified file 'hr_payroll/hr_payroll_view.xml'
--- hr_payroll/hr_payroll_view.xml 2011-01-14 00:11:01 +0000
+++ hr_payroll/hr_payroll_view.xml 2011-02-01 06:41:30 +0000
@@ -963,6 +963,7 @@
<!-- Shortcuts -->
<act_window name="Payslips"
domain="[('employee_id', '=', active_id)]"
+ context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
res_model="hr.payslip"
src_model="hr.employee"
view_id ="view_hr_payslip_tree"
=== modified file 'hr_timesheet_invoice/report/report_analytic_view.xml'
--- hr_timesheet_invoice/report/report_analytic_view.xml 2011-01-14 00:11:01 +0000
+++ hr_timesheet_invoice/report/report_analytic_view.xml 2011-02-01 06:41:30 +0000
@@ -136,7 +136,7 @@
<act_window
domain="[('invoice_id','=',False),('to_invoice','<>',False)]"
- context="{'search_default_account_id': [active_id]}"
+ context="{'search_default_account_id': [active_id], 'default_account_id': active_id}"
id="act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice"
name="Lines to Invoice"
res_model="account.analytic.line"
=== modified file 'hr_timesheet_sheet/hr_timesheet_sheet_view.xml'
--- hr_timesheet_sheet/hr_timesheet_sheet_view.xml 2011-01-14 00:11:01 +0000
+++ hr_timesheet_sheet/hr_timesheet_sheet_view.xml 2011-02-01 06:41:30 +0000
@@ -279,14 +279,14 @@
</record>
<act_window
- context="{'search_default_sheet_id': [active_id]}"
+ context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
id="act_hr_timesheet_sheet_sheet_by_day"
name="Timesheet by Account"
res_model="hr_timesheet_sheet.sheet.account"
src_model="hr_timesheet_sheet.sheet"/>
<act_window
- context="{'search_default_sheet_id': [active_id]}"
+ context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet"
name="Timesheet Lines"
res_model="hr.analytic.timesheet"
@@ -294,7 +294,7 @@
<act_window
- context="{'search_default_sheet_id': [active_id]}"
+ context="{'search_default_sheet_id': [active_id], 'default_sheet_id': active_id}"
id="act_hr_timesheet_sheet_sheet_2_hr_attendance"
name="Attendances"
res_model="hr.attendance"
@@ -331,7 +331,7 @@
</record>
<!-- Timesheet Button on Employee Form -->
<act_window
- context="{'search_default_employee_id': [active_id]}"
+ context="{'search_default_employee_id': [active_id], 'default_employee_id': active_id}"
id="act_hr_employee_2_hr_timesheet" name="Timesheets" res_model="hr_timesheet_sheet.sheet" src_model="hr.employee"/>
</data>
=== modified file 'marketing_campaign/marketing_campaign_view.xml'
--- marketing_campaign/marketing_campaign_view.xml 2011-01-14 00:11:01 +0000
+++ marketing_campaign/marketing_campaign_view.xml 2011-02-01 06:41:30 +0000
@@ -446,12 +446,12 @@
view_type="form"
view_mode="tree,form"
id="act_marketing_campaing_segment_opened"
- context="{'search_default_campaign_id': [active_id]}"
+ context="{'search_default_campaign_id': [active_id], 'default_campaign_id': active_id}"
/>
<!-- Campaign Followups -->
<act_window
- context="{'search_default_campaign_id': [active_id]}"
+ context="{'search_default_campaign_id': [active_id], 'default_campaign_id': active_id}"
id="act_marketing_campaing_followup"
name="Campaign Follow-up" res_model="marketing.campaign.workitem"
src_model="marketing.campaign" view_mode="tree,form"
@@ -459,7 +459,7 @@
<!-- Campaign Statistics -->
<act_window
- context="{'search_default_campaign_id': [active_id]}"
+ context="{'search_default_campaign_id': [active_id], 'default_campaign_id': active_id}"
id="act_marketing_campaing_stat"
name="Campaign Statistics" res_model="campaign.analysis"
src_model="marketing.campaign" view_mode="tree,form"
=== modified file 'procurement/procurement_view.xml'
--- procurement/procurement_view.xml 2011-01-17 13:55:22 +0000
+++ procurement/procurement_view.xml 2011-02-01 06:41:30 +0000
@@ -244,7 +244,7 @@
</record>
<act_window
- context="{'search_default_warehouse_id': active_id}"
+ context="{'search_default_warehouse_id': active_id, 'default_warehouse_id': active_id}"
id="act_stock_warehouse_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
@@ -253,8 +253,7 @@
<!-- add product_uom to context to be the default value when adding new orderpoints -->
<act_window
- context="{'product_uom': locals().has_key('uom_id') and uom_id,'search_default_product_id': [active_id]}"
- domain="[('product_id', '=', active_id)]"
+ context="{'product_uom': locals().has_key('uom_id') and uom_id,'search_default_product_id': [active_id], 'default_product_id': active_id}"
id="act_product_product_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
@@ -262,8 +261,7 @@
groups="stock.group_stock_user"/>
<act_window
- context="{'product_uom': locals().has_key('uom_id') and uom_id}"
- domain="[('procurement_id', '=', active_id)]"
+ context="{'product_uom': locals().has_key('uom_id') and uom_id, 'default_procurement_id': active_id}"
id="act_procurement_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
=== modified file 'project/project_view.xml'
--- project/project_view.xml 2011-01-17 22:41:38 +0000
+++ project/project_view.xml 2011-02-01 06:41:30 +0000
@@ -512,10 +512,10 @@
<menuitem id="menu_tasks_config" name="Tasks" parent="project.menu_definitions" sequence="1"/>
<menuitem action="open_task_type_form" id="menu_task_types_view" parent="menu_tasks_config" sequence="1"/>
- <act_window context="{'search_default_user_id': [active_id]}" id="act_res_users_2_project_project" name="User's projects" res_model="project.project" src_model="res.users" view_mode="tree,form" view_type="form"/>
+ <act_window context="{'search_default_user_id': [active_id], 'default_user_id': active_id}" id="act_res_users_2_project_project" name="User's projects" res_model="project.project" src_model="res.users" view_mode="tree,form" view_type="form"/>
<act_window
- domain="[('project_id', '=', active_id)]"
+ context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"
id="act_project_project_2_project_task_all"
name="Tasks"
res_model="project.task"
@@ -563,7 +563,7 @@
</page>
</field>
</record>
- <act_window context="{'search_default_user_id': [active_id]}" domain="[('state', '<>', 'cancelled'),('state', '<>', 'done')]" id="act_res_users_2_project_task_opened" name="Assigned tasks" res_model="project.task" src_model="res.users" view_mode="tree,form,gantt,calendar,graph" view_type="form"/>
- <act_window context="{'search_default_user_id': [active_id]}" domain="[('date', '>=', time.strftime('%Y-%m-01'))]" id="act_res_users_2_project_task_work_month" name="Month works" res_model="project.task.work" src_model="res.users" view_mode="tree,form" view_type="form"/>
+ <act_window context="{'search_default_user_id': [active_id], 'default_user_id': active_id}" domain="[('state', '<>', 'cancelled'),('state', '<>', 'done')]" id="act_res_users_2_project_task_opened" name="Assigned tasks" res_model="project.task" src_model="res.users" view_mode="tree,form,gantt,calendar,graph" view_type="form"/>
+ <act_window context="{'search_default_user_id': [active_id], 'default_user_id': active_id}" domain="[('date', '>=', time.strftime('%Y-%m-01'))]" id="act_res_users_2_project_task_work_month" name="Month works" res_model="project.task.work" src_model="res.users" view_mode="tree,form" view_type="form"/>
</data>
</openerp>
=== modified file 'project_issue/project_issue_menu.xml'
--- project_issue/project_issue_menu.xml 2011-01-14 00:11:01 +0000
+++ project_issue/project_issue_menu.xml 2011-02-01 06:41:30 +0000
@@ -40,7 +40,7 @@
</record>
<act_window
- context="{'search_default_project_id': [active_id]}"
+ context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"
id="act_project_project_2_project_issue_all"
name="Issues"
res_model="project.issue"
=== modified file 'project_messages/project_messages_view.xml'
--- project_messages/project_messages_view.xml 2011-01-14 00:11:01 +0000
+++ project_messages/project_messages_view.xml 2011-02-01 06:41:30 +0000
@@ -98,7 +98,7 @@
<field name="help">An in-project messaging system allows for an efficient and trackable communication between project members. The messages are stored in the system and can be used for post analysis.</field>
</record>
- <act_window context="{'search_default_project_id': [active_id]}" id="act_project_messages" name="Messages" res_model="project.messages" src_model="project.project"/>
+ <act_window context="{'search_default_project_id': [active_id], 'default_project_id': active_id}" id="act_project_messages" name="Messages" res_model="project.messages" src_model="project.project"/>
<!--Actions for deshboard -->
=== modified file 'project_scrum/project_scrum_view.xml'
--- project_scrum/project_scrum_view.xml 2011-01-14 00:11:01 +0000
+++ project_scrum/project_scrum_view.xml 2011-02-01 06:41:30 +0000
@@ -593,7 +593,7 @@
</record>
<act_window
- context="{'search_default_sprint_id': [active_id]}"
+ context="{'search_default_sprint_id': [active_id], 'default_sprint_id': active_id}"
id="act_scrum_sprint_2_product_backlog"
name="Backlogs"
res_model="project.scrum.product.backlog"
@@ -602,7 +602,7 @@
view_type="form"/>
<act_window
- context="{'search_default_sprint_id': active_id, 'search_default_user_id': uid, 'search_default_current':1}"
+ context="{'search_default_sprint_id': active_id, 'search_default_user_id': uid, 'search_default_current':1, 'default_sprint_id': active_id}"
id="act_scrum_sprint_2_project_task"
name="Tasks"
res_model="project.task"
=== modified file 'purchase/purchase_view.xml'
--- purchase/purchase_view.xml 2011-01-18 13:33:35 +0000
+++ purchase/purchase_view.xml 2011-02-01 06:41:30 +0000
@@ -438,7 +438,7 @@
</record>
<act_window
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
id="act_res_partner_2_purchase_order"
name="Purchase Orders"
groups="purchase.group_purchase_user"
@@ -446,7 +446,7 @@
src_model="res.partner"/>
<act_window
- context="{'search_default_product_id': [active_id]}"
+ context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
id="action_purchase_line_product_tree"
name="Purchases"
res_model="purchase.order.line"
=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml 2011-01-19 09:51:59 +0000
+++ sale/sale_view.xml 2011-02-01 06:41:30 +0000
@@ -511,7 +511,7 @@
</record>
<act_window
- context="{'search_default_partner_id': [active_id]}"
+ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
id="act_res_partner_2_sale_order"
name="Sales"
groups="base.group_sale_salesman"
@@ -519,7 +519,7 @@
src_model="res.partner"/>
<act_window
- context="{'search_default_product_id': [active_id]}"
+ context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
id="action_order_line_product_tree"
name="Product sales"
res_model="sale.order.line"
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml 2011-01-25 09:37:23 +0000
+++ stock/stock_view.xml 2011-02-01 06:41:30 +0000
@@ -1823,7 +1823,7 @@
src_model="stock.location"/>
<act_window
- context="{'search_default_done': 1,'search_default_product_id': [active_id]}"
+ context="{'search_default_done': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
id="act_product_stock_move_open"
name="Stock Moves"
res_model="stock.move"
@@ -1837,7 +1837,7 @@
src_model="stock.move"/>
<act_window
- context="{'search_default_future': 1,'search_default_product_id': [active_id]}"
+ context="{'search_default_future': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
domain="[('state','in',('waiting','confirmed','assigned'))]"
id="act_product_stock_move_futur_open"
name="Future Stock Moves"
=== modified file 'survey/survey_view.xml'
--- survey/survey_view.xml 2011-01-14 00:11:01 +0000
+++ survey/survey_view.xml 2011-02-01 06:41:30 +0000
@@ -1166,14 +1166,14 @@
</record>
<act_window
- context="{'search_default_survey_id': [active_id]}"
+ context="{'search_default_survey_id': [active_id], 'default_survey_id': active_id}"
id="act_survey_pages"
name="Pages"
res_model="survey.page"
src_model="survey"/>
<act_window
- context="{'search_default_survey': active_id}"
+ context="{'search_default_survey': active_id, 'default_survey': active_id}"
id="act_survey_question"
name="Questions"
res_model="survey.question"
@@ -1181,7 +1181,7 @@
<act_window
- context="{'search_default_page_id': active_id}"
+ context="{'search_default_page_id': active_id, 'default_page_id': active_id}"
id="act_survey_page_question"
name="Questions"
res_model="survey.question"
=== modified file 'wiki/wiki_view.xml'
--- wiki/wiki_view.xml 2011-01-14 00:11:01 +0000
+++ wiki/wiki_view.xml 2011-02-01 06:41:30 +0000
@@ -246,14 +246,14 @@
</record>
<act_window
- context="{'search_default_wiki_id': [active_id]}"
+ context="{'search_default_wiki_id': [active_id], 'default_wiki_id': active_id}"
id="act_wiki_wiki_history"
name="Page History"
res_model="wiki.wiki.history"
src_model="wiki.wiki"/>
<act_window
- context="{'search_default_group_id': [active_id]}"
+ context="{'search_default_group_id': [active_id], 'default_group_id': active_id}"
id="act_wiki_group_open"
name="Search Page"
res_model="wiki.wiki"
Follow ups