Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-50627-rgo into
lp:openobject-addons/6.0.
Requested reviews:
Priyesh (OpenERP) (pso-openerp)
Related bugs:
Bug #708467 in OpenERP Addons: "Act_window : Incomplete behavior"
https://bugs.launchpad.net/openobject-addons/+bug/708467
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50627-rgo/+merge/83281
Hello,
There is an issue with act_windows.
To reproduce the issue:
1 Create a new database with demo and sale module
2. Open Menu Sale/Address Book/Customers
3. Search Agrolait and open it
4. Click on Sales (link)
5. You must see 2 sales
6. Create new sale order
7. The customer field is empty (should have Agrolait)
This happens with all act_windows.
This solves the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50627-rgo/+merge/83281
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-50627-rgo.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml 2011-01-20 14:02:14 +0000
+++ account/account_invoice_view.xml 2011-11-24 12:26:37 +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-08-25 05:31:39 +0000
+++ account/account_view.xml 2011-11-24 12:26:37 +0000
@@ -1512,7 +1512,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"/>
@@ -1554,7 +1554,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"/>
@@ -1562,7 +1562,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"/>
@@ -2007,20 +2007,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-11-24 12:26:37 +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-11-24 12:26:37 +0000
@@ -136,7 +136,7 @@
<field name="help">The normal chart of accounts has a structure defined by the legal requirement of the country. The analytic chart of account structure should reflect your own business needs in term of costs/revenues reporting. They are usually structured by contracts, projects, products or departements. Most of the OpenERP operations (invoices, timesheets, expenses, etc) generate analytic entries on the related account.</field>
</record>
- <menuitem groups="analytic.group_analytic_accounting" id="next_id_40"
+ <menuitem groups="analytic.group_analytic_accounting" id="next_id_40"
name="Analytic" parent="account.menu_finance_generic_reporting"
sequence="4"/>
@@ -373,7 +373,7 @@
<field name="help">To print an analytics (or costs) journal for a given period. The report give code, move name, account number, general amount and analytic amount.</field>
</record>
<menuitem groups="analytic.group_analytic_accounting"
- action="action_account_analytic_journal_tree"
+ action="action_account_analytic_journal_tree"
id="account_analytic_journal_print" parent="account.next_id_40"/>
#
@@ -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-11-24 12:26:37 +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-11-24 12:26:37 +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-06-08 04:40:37 +0000
+++ account_budget/account_budget_view.xml 2011-11-24 12:26:37 +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-02-23 19:22:02 +0000
+++ account_voucher/account_voucher_view.xml 2011-11-24 12:26:37 +0000
@@ -97,7 +97,7 @@
<field name="state"/>
<field name="reconcile_id"/>
</tree>
- </field>
+ </field>
</page>
</notebook>
<group col="10" colspan="4">
@@ -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-11-24 12:26:37 +0000
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<openerp>
<data>
- <menuitem name="Auction" id="auction_menu_root" icon="terp-purchase" sequence="26"
+ <menuitem name="Auction" id="auction_menu_root" icon="terp-purchase" sequence="26"
groups="group_auction_manager,group_auction_user"/>
<menuitem name="Configuration" parent="auction_menu_root" id="auction_config_menu" sequence="7" groups="group_auction_manager"/>
<menuitem name="Tools Bar Codes" id="auction_outils_menu" parent="auction_menu_root" sequence="5" />
@@ -81,7 +81,7 @@
<field name="view_id" ref="view_auction_object_categories_tree"/>
</record>
- <menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories"
+ <menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories"
id="menu_auction_object_cat" groups="group_auction_manager"/>
<!-- Auction Management/Auction Dates/New Auction Dates -->
@@ -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-07-27 08:55:53 +0000
+++ base_contact/base_contact_view.xml 2011-11-24 12:26:37 +0000
@@ -35,7 +35,7 @@
<field name="first_name" select="1"/>
</group>
<notebook colspan="4" >
- <page string="General">
+ <page string="General">
<group colspan="4" col="4">
<group colspan="2" col="4">
<separator string="Communication" colspan="4"/>
@@ -47,18 +47,18 @@
<separator string="Photo" colspan="4"/>
<field name="photo" widget='image' nolabel="1"/>
</group>
- </group>
+ </group>
<field name="job_ids" colspan="4" nolabel="1" mode="tree,form">
<form string="Functions and Addresses">
<group colspan="4" col="4">
<field name="sequence_contact" />
<field name="function"/>
- <field name="name" on_change="onchange_name(name, address_id)"/>
+ <field name="name" on_change="onchange_name(name, address_id)"/>
<field name="address_id" on_change="onchange_address(name, address_id)" />
<field name="date_start" />
<field name="date_stop" />
<field name="state" />
-
+
</group>
<separator string="Communication" colspan="4"/>
<group colspan="4" col="4">
@@ -83,18 +83,18 @@
</tree>
</field>
</page>
- <page string="Extra Information">
+ <page string="Extra Information">
<field name="active"/>
<field name="lang_id" widget="selection"/>
- <field name="partner_id" invisible="1" select="1"/>
- <field name="function" invisible="1" />
+ <field name="partner_id" invisible="1" select="1"/>
+ <field name="function" invisible="1" />
<field name="country_id"/>
<field name="birthdate"/>
</page>
<page string="Notes">
<field name="comment" nolabel="1"/>
</page>
-
+
</notebook>
</form>
</field>
@@ -126,8 +126,8 @@
<field name="search_view_id" ref="view_partner_contact_search"/>
</record>
<menuitem name="Contacts" id="menu_partner_contact_form" action="action_partner_contact_form" parent = "base.menu_address_book" sequence="2"/>
-
- <!--
+
+ <!--
Contacts for Suppliers
-->
<menuitem icon="terp-purchase" id="base.menu_purchase_root" name="Purchases"
@@ -136,7 +136,7 @@
parent="base.menu_purchase_root" sequence="3"/>
<menuitem id="base.menu_procurement_management_supplier_name" name="Suppliers"
parent="base.menu_procurement_management_supplier" action="base.action_partner_supplier_form" sequence="1"/>
- <menuitem name="Contacts" id="menu_purchases_partner_contact_form" action="action_partner_contact_form"
+ <menuitem name="Contacts" id="menu_purchases_partner_contact_form" action="action_partner_contact_form"
parent = "base.menu_procurement_management_supplier" sequence="2"/>
<!-- Views for Partners Form View -->
@@ -408,9 +408,9 @@
<!-- Act window defining a shorcut on partner address to open all his jobs -->
<act_window
- id="act_res_partner_jobs"
+ 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_claim/crm_claim_view.xml'
--- crm_claim/crm_claim_view.xml 2011-08-19 10:47:35 +0000
+++ crm_claim/crm_claim_view.xml 2011-11-24 12:26:37 +0000
@@ -33,7 +33,7 @@
<field name="context">{'type':'claim'}</field>
<field name="help">You can create claim stages to categorize the status of every claim entered in the system. The stages define all the steps required for the resolution of a claim.</field>
</record>
-
+
<menuitem action="crm_claim_stage_act" name="Stages"
id="menu_crm_claim_stage_act" parent="menu_config_claim" />
@@ -75,15 +75,15 @@
<group>
<field name="name" />
<field name="date"/>
-
-
+
+
</group>
-
+
<group colspan="4" col="6">
-
+
<field name="user_id"/>
<field name="section_id" widget="selection" />
-
+
<group colspan="2" col="4">
<field name="stage_id" domain="[('type','=','claim')]"/>
<button name="stage_previous" string="" type="object" icon="gtk-go-back" />
@@ -288,7 +288,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-08-19 10:47:35 +0000
+++ event/event_view.xml 2011-11-24 12:26:37 +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-11-24 12:26:37 +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-11-24 12:26:37 +0000
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<openerp>
<data>
-
+
<record model="ir.ui.view" id="view_email_server_tree">
<field name="name">email.server.tree</field>
<field name="model">email.server</field>
@@ -18,7 +18,7 @@
</tree>
</field>
</record>
-
+
<record model="ir.ui.view" id="view_email_server_form">
<field name="name">email.server.form</field>
<field name="model">email.server</field>
@@ -68,7 +68,7 @@
</form>
</field>
</record>
-
+
<record model="ir.ui.view" id="view_email_server_search">
<field name="name">email.server.search</field>
<field name="model">email.server</field>
@@ -91,7 +91,7 @@
</search>
</field>
</record>
-
+
<record model="ir.actions.act_window" id="action_email_server_tree">
<field name="name">Email Servers</field>
<field name="res_model">email.server</field>
@@ -101,13 +101,13 @@
<field name="search_view_id" ref="view_email_server_search"/>
</record>
- <menuitem
- parent="base.menu_mail_gateway"
+ <menuitem
+ parent="base.menu_mail_gateway"
id="menu_action_fetchmail_server_tree"
- action="action_email_server_tree"
+ action="action_email_server_tree"
name="Email Servers"
/>
-
+
<record model="ir.ui.view" id="mailgate_message_tree_view">
<field name="name">mailgate.message.tree</field>
<field name="model">mailgate.message</field>
@@ -120,7 +120,7 @@
</field>
</field>
</record>
-
+
<record model="ir.ui.view" id="mailgate_message_search_view">
<field name="name">mailgate.message.inherit.search</field>
<field name="model">mailgate.message</field>
@@ -136,7 +136,7 @@
</xpath>
</field>
</record>
-
+
<record id="action_view_mail_message_emails" model="ir.actions.act_window">
<field name="name">Messages</field>
<field name="res_model">mailgate.message</field>
@@ -145,15 +145,14 @@
<field name="context">{'search_default_emails': 1}</field>
<field name="search_view_id" ref="mailgate_message_search_view"/>
</record>
-
+
<menuitem id="base.menu_email_gateway_form"
parent="base.menu_mail_gateway" action="action_view_mail_message_emails" />
- <act_window
- context="{'server_id': active_id}"
- domain="[('server_id', '=', active_id)]"
+ <act_window
+ 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"/>
-
+
</data>
</openerp>
=== modified file 'hr_contract/hr_contract_view.xml'
--- hr_contract/hr_contract_view.xml 2011-08-30 12:41:34 +0000
+++ hr_contract/hr_contract_view.xml 2011-11-24 12:26:37 +0000
@@ -133,9 +133,9 @@
<field name="arch" type="xml">
<search string="Search Contract">
<group col='15' colspan='4'>
- <filter string="Current" icon="terp-check" name="current" domain="['|',('date_end','>=', time.strftime('%%Y-%%m-%%d')),('date_end','=',False)]" help="Contracts in progress"/>
- <filter string="Overpassed" icon="terp-emblem-important" domain="[('date_end','<', time.strftime('%%Y-%%m-%%d'))]" help="Contracts whose end date already passed"/>
- <separator orientation="vertical"/>
+ <filter string="Current" icon="terp-check" name="current" domain="['|',('date_end','>=', time.strftime('%%Y-%%m-%%d')),('date_end','=',False)]" help="Contracts in progress"/>
+ <filter string="Overpassed" icon="terp-emblem-important" domain="[('date_end','<', time.strftime('%%Y-%%m-%%d'))]" help="Contracts whose end date already passed"/>
+ <separator orientation="vertical"/>
<field name="name"/>
<field name="employee_id"/>
<field name="working_hours"/>
@@ -144,11 +144,11 @@
</group>
<newline/>
<group expand="0" string="Group By..." colspan="4" col="20">
- <filter string="Employee" icon="terp-personal" domain="[]" context="{'group_by':'employee_id'}"/>
- <separator orientation="vertical"/>
+ <filter string="Employee" icon="terp-personal" domain="[]" context="{'group_by':'employee_id'}"/>
+ <separator orientation="vertical"/>
<filter string="Working Schedule" icon="terp-go-week" domain="[]" context="{'group_by':'working_hours'}"/>
<filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
- <separator orientation="vertical"/>
+ <separator orientation="vertical"/>
<filter string="Contract Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type_id'}"/>
</group>
</search>
@@ -176,10 +176,10 @@
<field name="date_start" />
<field name="date_end" />
<field name="working_hours"/>
- <separator colspan="2" string="Trial Period"/>
+ <separator colspan="2" string="Trial Period"/>
<field name="trial_date_start" />
<field name="trial_date_end" />
- </group>
+ </group>
<group col="2" colspan="2">
<separator colspan="2" string="Advantages"/>
<field name="advantages_net"/>
@@ -205,7 +205,7 @@
<field name="type_id"/>
<field name="job_id"/>
<!--field name="department_id"/-->
- <field name="working_hours"/>
+ <field name="working_hours"/>
<field name="date_start"/>
<field name="date_end"/>
<field name="wage_type_id" invisible="1"/>
@@ -271,11 +271,11 @@
<menuitem action="action_hr_contract" id="hr_menu_contract" parent="hr.menu_hr_main" name="Contracts" sequence="4" groups="base.group_hr_manager"/>
<!-- Contracts Button on Employee Form -->
- <act_window
- context="{'search_default_employee_id': [active_id]}"
- id="act_hr_employee_2_hr_contract"
- name="Contracts"
- res_model="hr.contract"
+ <act_window
+ 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"
src_model="hr.employee"
groups="base.group_hr_manager"/>
=== 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-11-24 12:26:37 +0000
@@ -250,12 +250,12 @@
<field name="arch" type="xml">
<search string="Search Evaluation">
<group col='10' colspan='4'>
- <filter icon="terp-check" string="Current" domain="[('state','=','wait'))]" help="Evaluations that are in waiting state"/>
+ <filter icon="terp-check" string="Current" domain="[('state','=','wait'))]" help="Evaluations that are in waiting state"/>
<filter icon="terp-camera_test" string="In progress" domain="[('state','=','progress')]" help="Evaluations that are in progress state"/>
<separator orientation="vertical"/>
<filter icon="terp-go-week" string="7 Days" help="Evaluations to close within the next 7 days"
domain="[('date', '>=', (datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" />
- <separator orientation="vertical"/>
+ <separator orientation="vertical"/>
<filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
help="Evaluations that overpassed the deadline" domain="[('date','<=',(datetime.date.today()).strftime('%%Y-%%m-%%d'))]" />
<separator orientation="vertical"/>
@@ -405,11 +405,11 @@
action="action_hr_evaluation_send_mail" sequence="45" groups="base.group_hr_manager"/>
<!-- Evaluation Interviews Button on Employee Form -->
- <act_window
- context="{'search_default_user_to_review_id': [active_id]}"
- id="act_hr_employee_2_hr__evaluation_interview"
- name="Evaluation Interviews"
- res_model="hr.evaluation.interview"
+ <act_window
+ 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"
src_model="hr.employee"/>
</data>
=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml 2011-09-30 13:15:30 +0000
+++ hr_holidays/hr_holidays_view.xml 2011-11-24 12:26:37 +0000
@@ -413,7 +413,7 @@
</record>
<menuitem sequence="3" id="hr.menu_open_view_attendance_reason_config" parent="hr.menu_hr_configuration" name="Holidays"/>
-
+
<menuitem name="Leave Type"
action="open_view_holiday_status"
id="menu_open_view_holiday_status"
@@ -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-11-24 12:26:37 +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-11-24 12:26:37 +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-11-24 12:26:37 +0000
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
-
+
<record id="hr_timesheet_sheet_graph" model="ir.ui.view">
<field name="name">hr.timesheet.sheet.graph</field>
<field name="model">hr_timesheet_sheet.sheet</field>
@@ -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-11-24 12:26:37 +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-06-29 10:20:20 +0000
+++ procurement/procurement_view.xml 2011-11-24 12:26:37 +0000
@@ -245,17 +245,16 @@
</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"
+ name="Minimum Stock Rules"
+ res_model="stock.warehouse.orderpoint"
src_model="stock.warehouse"
groups="stock.group_stock_user"/>
<!-- 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"
@@ -263,8 +262,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-11-24 12:26:37 +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-11-24 12:26:37 +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-11-24 12:26:37 +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-11-24 12:26:37 +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-02-24 19:57:10 +0000
+++ purchase/purchase_view.xml 2011-11-24 12:26:37 +0000
@@ -12,7 +12,7 @@
groups="group_purchase_manager"
parent="base.menu_purchase_root" sequence="100"/>
- <menuitem
+ <menuitem
id="menu_purchase_config_pricelist" name="Pricelists"
parent="menu_purchase_config_purchase" sequence="50"/>
@@ -29,22 +29,22 @@
parent="menu_purchase_config_pricelist" sequence="2"
groups="base.group_extended"/>
- <menuitem
+ <menuitem
id="menu_product_in_config_purchase" name="Product"
parent="menu_purchase_config_purchase" sequence="30"/>
<menuitem
action="product.product_category_action_form" id="menu_product_category_config_purchase"
parent="purchase.menu_product_in_config_purchase" sequence="10"/>
-
- <menuitem
+
+ <menuitem
id="menu_purchase_unit_measure_purchase" name="Units of Measure"
parent="purchase.menu_product_in_config_purchase" sequence="20"/>
<menuitem
action="product.product_uom_categ_form_action" id="menu_purchase_uom_categ_form_action"
parent="menu_purchase_unit_measure_purchase" sequence="30"/>
-
+
<menuitem
action="product.product_uom_form_action" id="menu_purchase_uom_form_action"
parent="menu_purchase_unit_measure_purchase" sequence="30"/>
@@ -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-07-08 10:51:30 +0000
+++ sale/sale_view.xml 2011-11-24 12:26:37 +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-06-09 12:44:28 +0000
+++ stock/stock_view.xml 2011-11-24 12:26:37 +0000
@@ -1820,7 +1820,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"
@@ -1834,7 +1834,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-04-05 06:12:13 +0000
+++ survey/survey_view.xml 2011-11-24 12:26:37 +0000
@@ -1166,23 +1166,23 @@
<field name="view_id" ref="survey_type_tree"></field>
</record>
- <act_window
- context="{'search_default_survey_id': [active_id]}"
+ <act_window
+ 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}"
+ <act_window
+ context="{'search_default_survey': active_id, 'default_survey': active_id}"
id="act_survey_question"
name="Questions"
res_model="survey.question"
src_model="survey"/>
- <act_window
- context="{'search_default_page_id': active_id}"
+ <act_window
+ 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-11-24 12:26:37 +0000
@@ -131,7 +131,7 @@
<field name="name" select="1" colspan="6"/>
<field name="group_id" string="Topic" select="1" on_change="onchange_group_id(group_id, text_area)"/>
<field name="parent_id" groups="base.group_extended" domain="[('group_id','=',group_id)]"/>
- <field name="section"/>
+ <field name="section"/>
</group>
<notebook colspan="4">
<page string="Content">
@@ -245,15 +245,15 @@
<field name="view_mode">tree,form</field>
</record>
- <act_window
- context="{'search_default_wiki_id': [active_id]}"
+ <act_window
+ 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"
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp