<act_window domain converted to context is done

bzr revid: aag@tinyerp.co.in-20100928131710-vlmxr9qq040kj7bu
This commit is contained in:
aag (OpenERP) 2010-09-28 18:47:10 +05:30
parent 449c4ae7bf
commit 3833852f93
28 changed files with 144 additions and 62 deletions

View File

@ -512,15 +512,15 @@
src_model="account.journal"/>
<act_window
domain="[('partner_id', '=', partner_id), ('account_id.reconcile', '=', True)]"
context="{'search_default_unreconciled':True}"
domain="[('account_id.reconcile', '=', True)]"
context="{'search_default_unreconciled':True,'search_default_partner_id':[partner_id]}"
id="act_account_invoice_account_move_unreconciled"
name="Items to Reconcile"
res_model="account.move.line"
src_model="account.invoice"/>
<act_window
domain="[('move_id', '=', move_id)]"
context="{'search_default_move_id':move_id}"
id="act_account_invoice_account_move_invoice_link"
name="Invoice Items"
res_model="account.move.line"

View File

@ -1412,10 +1412,9 @@
</record>
<act_window
domain="[('move_id','=',active_id)]"
id="act_account_move_to_account_move_line_open"
name="Journal Items"
context="{'move_id':active_id}"
context="{'search_default_move_id':[active_id]}"
res_model="account.move.line"
src_model="account.move"/>

View File

@ -66,14 +66,16 @@
id="act_account_acount_move_line_open"
res_model="account.move.line"
src_model="account.account"
domain="[('account_id', '=', active_id)]"/>
context="{'search_default_account_id': [active_id]}"
/>
<act_window
name="Analytic Rules"
id="analytic_rule_action_partner"
res_model="account.analytic.default"
src_model="res.partner"
domain="[('partner_id','=',active_id)]"
context="{'search_default_partner_id': [active_id]}"
groups="base.group_extended"/>
<act_window
@ -81,7 +83,7 @@
id="analytic_rule_action_user"
res_model="account.analytic.default"
src_model="res.users"
domain="[('user_id','=',active_id)]"
context="{'search_default_user_id': [active_id]}"
groups="base.group_extended"/>
<act_window
@ -89,7 +91,7 @@
res_model="account.analytic.default"
id="analytic_rule_action_product"
src_model="product.product"
domain="[('product_id','=',active_id)]"
context="{'search_default_product_id': [active_id]}"
groups="base.group_extended"/>
</data>

View File

@ -260,7 +260,7 @@
<!-- Shortcuts -->
<act_window name="Budget Lines"
domain="[('analytic_account_id', '=', active_id)]"
context="{'search_default_analytic_account_id': [active_id]}"
res_model="crossovered.budget.lines"
src_model="account.analytic.account"
id="act_account_analytic_account_cb_lines"/>

View File

@ -161,10 +161,10 @@
<menuitem action="action_voucher_list" id="menu_encode_entries_by_voucher" parent="account.menu_finance_entries" sequence="6"/>
<act_window
domain="[('journal_id','=',active_id)]"
id="act_journal_voucher_open"
name="Voucher Entries"
context="{'journal_id': active_id, 'type':type}"
context="{'search_default_journal_id': active_id, 'type':type}"
res_model="account.voucher"
src_model="account.journal"/>

View File

@ -765,7 +765,7 @@
<menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6"/>
<act_window name="Deposit slip"
domain="[('partner_id', '=', active_id)]"
context="{'search_default_partner_id': [active_id]}"
res_model="auction.deposit"
src_model="res.partner"
id="act_auction_lot_open_deposit"/>

View File

@ -408,8 +408,9 @@
<!-- Act window defining a shorcut on partner address to open all his jobs -->
<act_window
id="act_res_partner_jobs" name="Open Jobs"
domain="[('address_id', '=', active_id)]"
id="act_res_partner_jobs"
name="Open Jobs"
context="{'search_default_address_id': [active_id]}"
res_model="res.partner.job"
src_model="res.partner.address"
/>

View File

@ -8,8 +8,7 @@
res_model="crm.meeting"
src_model="res.partner"
view_mode="calendar,tree,form,gantt"
context="{'default_partner_id': active_id, 'default_duration': 4.0}"
domain="[('partner_id', '=', active_id)]"
context="{'search_default_partner_id': active_id, 'default_duration': 4.0}"
/>
<record model="ir.actions.act_window" id="crm_case_categ_meet_create_partner">

View File

@ -8,8 +8,7 @@
res_model="crm.phonecall"
src_model="res.partner"
view_mode="calendar,tree,form"
context="{'default_partner_id': active_id, 'default_duration': 1.0}"
domain="[('partner_id', '=', active_id)]"
context="{'search_default_partner_id': [active_id], 'default_duration': 1.0}"
groups="base.group_extended"
/>

View File

@ -311,8 +311,7 @@
</record>
<act_window
domain="[('partner_id', '=', active_id)]"
context="{'default_partner_id': active_id}"
context="{'search_default_partner_id': [active_id]}"
id="act_claim_partner"
name="Report a Claim"
view_mode="form,tree"

View File

@ -403,7 +403,8 @@
src_model="res.partner"
groups="base.group_extended"/>
<act_window domain="[('parent_id', '=', active_id)]"
<act_window
context="{'search_default_parent_id': [active_id]}"
id="zoom_directory" name="Related Documents"
res_model="ir.attachment"
src_model="document.directory"/>

View File

@ -264,7 +264,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]}"
view_type="form"/>
<act_window
@ -273,7 +273,7 @@
res_model="event.registration"
src_model="res.partner"
view_mode="tree,form,calendar,graph"
domain="[('partner_id', '=', active_id)]"
context="{'search_default_partner_id': [active_id]}"
view_type="form"/>
<menuitem name="Events" id="menu_event_event" action="action_event_view" parent="base.menu_event_main" />

View File

@ -36,7 +36,7 @@
res_model="project.task"
src_model="event.event"
view_mode="tree,form,calendar,graph"
domain="[('project_id', '=', project_id)]"
context="{'search_default_project_id': project_id}"
view_type="form"/>
</data>

View File

@ -279,7 +279,12 @@
<menuitem action="action_hr_contract" id="hr_menu_contract" parent="hr.menu_hr_main" name="Contracts" sequence="4" groups="base.group_system,base.group_hr_manager,base.group_hr_contract"/>
<!-- Contracts Button on Employee Form -->
<act_window domain="[('employee_id', '=', active_id)]" id="act_hr_employee_2_hr_contract" name="Contracts" res_model="hr.contract" src_model="hr.employee"/>
<act_window
context="{'search_default_employee_id': [active_id]}"
id="act_hr_employee_2_hr_contract"
name="Contracts"
res_model="hr.contract"
src_model="hr.employee"/>
</data>
</openerp>

View File

@ -385,7 +385,12 @@
action="action_hr_evaluation_send_mail" sequence="45"/>
<!-- Evaluation Interviews Button on Employee Form -->
<act_window domain="[('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"/>
<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"
src_model="hr.employee"/>
</data>
</openerp>

View File

@ -395,13 +395,34 @@
<field name="search_view_id" ref="view_timesheet_account_search"/>
</record>
<act_window domain="[('user_id', '=', active_id)]" id="act_res_users_2_report_timesheet_user" name="Timesheets per day" res_model="report_timesheet.user" src_model="res.users"/>
<act_window
context="{'search_default_user_id': [active_id]}"
id="act_res_users_2_report_timesheet_user"
name="Timesheets per day"
res_model="report_timesheet.user"
src_model="res.users"/>
<act_window domain="[('user_id', '=', active_id)]" id="act_res_users_2_report_timehsheet_account" name="Timesheets per account" res_model="report_timesheet.account" src_model="res.users"/>
<act_window
context="{'search_default_user_id': [active_id]}"
id="act_res_users_2_report_timehsheet_account"
name="Timesheets per account"
res_model="report_timesheet.account"
src_model="res.users"/>
<act_window domain="[('account_id', '=', active_id)]" id="act_account_analytic_account_2_report_timehsheet_account" name="Timesheets" res_model="report_timesheet.account" src_model="account.analytic.account"/>
<act_window
context="{'search_default_account_id': [active_id]}"
id="act_account_analytic_account_2_report_timehsheet_account"
name="Timesheets"
res_model="report_timesheet.account"
src_model="account.analytic.account"/>
<act_window domain="[('manager_id', '=', active_id)]" id="act_res_users_2_report_timesheet_invoice" name="Costs to invoice" res_model="report_timesheet.invoice" src_model="res.users"/>
<act_window
context="{'search_default_manager_id': [active_id]}"
id="act_res_users_2_report_timesheet_invoice"
name="Costs to invoice"
res_model="report_timesheet.invoice"
src_model="res.users"/>
<!-- Random Timesheet -->

View File

@ -134,7 +134,13 @@
<field name="search_view_id" ref="account_analytic_line_to_invoice_view_filter"/>
</record>
<act_window domain="[('account_id', '=', active_id),('invoice_id','=',False),('to_invoice','&lt;&gt;',False)]" id="act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice" name="Lines to Invoice" res_model="account.analytic.line" src_model="account.analytic.account"/>
<act_window
domain="[('invoice_id','=',False),('to_invoice','&lt;&gt;',False)]"
context="{'search_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"
src_model="account.analytic.account"/>
</data>
</openerp>

View File

@ -290,11 +290,27 @@
</field>
</record>
<act_window domain="[('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]}"
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 domain="[('sheet_id', '=', active_id)]" id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet" name="Timesheet Lines" res_model="hr.analytic.timesheet" src_model="hr_timesheet_sheet.sheet"/>
<act_window
context="{'search_default_sheet_id': [active_id]}"
id="act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet"
name="Timesheet Lines"
res_model="hr.analytic.timesheet"
src_model="hr_timesheet_sheet.sheet"/>
<act_window domain="[('sheet_id', '=', active_id)]" id="act_hr_timesheet_sheet_sheet_2_hr_attendance" name="Attendances" res_model="hr.attendance" src_model="hr_timesheet_sheet.sheet"/>
<act_window
context="{'search_default_sheet_id': [active_id]}"
id="act_hr_timesheet_sheet_sheet_2_hr_attendance"
name="Attendances"
res_model="hr.attendance"
src_model="hr_timesheet_sheet.sheet"/>
<record id="hr_timesheet_sheet_tree_simplified" model="ir.ui.view">
<field name="name">hr.timesheet.sheet.tree.simplified</field>

View File

@ -446,18 +446,20 @@
view_type="form"
view_mode="tree,form"
id="act_marketing_campaing_segment_opened"
domain="[('campaign_id','=',active_id)]"
context="{'search_default_campaign_id': [active_id]}"
/>
<!-- Campaign Followups -->
<act_window domain="[('campaign_id', '=', active_id)]"
<act_window
context="{'search_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"
view_type="form" />
<!-- Campaign Statistics -->
<act_window domain="[('campaign_id', '=', active_id)]"
<act_window
context="{'search_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"

View File

@ -917,7 +917,8 @@
groups="base.group_extended"/>
<act_window
domain="[('product_id', '=', active_id),('bom_id','=',False)]"
domain="[('bom_id','=',False)]"
context="{'search_default_product_id': [active_id]}"
id="act_product_product_2_mrp_bom"
name="Bill of Materials"
res_model="mrp.bom"

View File

@ -240,12 +240,16 @@
<field name="search_view_id" ref="warehouse_orderpoint_search" />
</record>
<act_window domain="[('warehouse_id', '=', active_id)]" id="act_stock_warehouse_2_stock_warehouse_orderpoint" name="Minimum Stock Rules" res_model="stock.warehouse.orderpoint" src_model="stock.warehouse"/>
<act_window
context="{'search_default_warehouse_id': [active_id]}"
id="act_stock_warehouse_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
src_model="stock.warehouse"/>
<!-- 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}"
domain="[('product_id', '=', active_id)]"
context="{'product_uom': locals().has_key('uom_id') and uom_id,'search_default_product_id': [active_id]}"
id="act_product_product_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"

View File

@ -9,7 +9,11 @@
<!--
Board for project managers
-->
<act_window domain="[('manager', '=', uid)]" id="act_my_project" name="My projects" res_model="project.project" view_mode="tree,form" view_type="form"/>
<act_window
domain="[('manager', '=', uid)]"
id="act_my_project" name="My projects"
res_model="project.project" view_mode="tree,form"
view_type="form"/>
<act_window domain="[('user_id','=',uid),('state','&lt;&gt;','close')]" id="act_my_account" name="My accounts to invoice" res_model="account.analytic.account" view_id="view_account_analytic_simplified" view_mode="tree,form" view_type="form"/>

View File

@ -360,15 +360,14 @@
</record>
<act_window
context="{'partner_id': active_id}"
domain="[('partner_id', '=', active_id)]"
context="{'search_default_partner_id': [active_id]}"
id="act_res_partner_2_purchase_order"
name="Purchase orders"
res_model="purchase.order"
src_model="res.partner"/>
<act_window
domain="[('product_id','=',active_id)]"
context="{'search_default_product_id': [active_id]}"
id="action_purchase_line_product_tree"
name="Product purchases"
res_model="purchase.order.line"

View File

@ -515,9 +515,20 @@ to your configuration: from the sales order, from the pickings, etc.
<field name="filter" eval="True"/>
</record>
<act_window context="{'partner_id': active_id}" domain="[('partner_id', '=', active_id)]" id="act_res_partner_2_sale_order" name="Sales" res_model="sale.order" src_model="res.partner"/>
<act_window
context="{'search_default_partner_id': [active_id]}"
id="act_res_partner_2_sale_order"
name="Sales"
res_model="sale.order"
src_model="res.partner"/>
<act_window domain="[('product_id','=',active_id)]" id="action_order_line_product_tree" name="Product sales" res_model="sale.order.line" src_model="product.product" groups="base.group_extended"/>
<act_window
context="{'search_default_product_id': [active_id]}"
id="action_order_line_product_tree"
name="Product sales"
res_model="sale.order.line"
src_model="product.product"
groups="base.group_extended"/>
<menuitem id="menu_invoiced" name="Billing" parent="base.menu_base_partner" sequence="5"/>
<menuitem action="action_order_line_tree2" id="menu_invoicing_sales_order_lines" parent="menu_invoiced" sequence="2"/>

View File

@ -303,7 +303,7 @@
<!-- Action of sale journal report in sale journal -->
<act_window name="Monthly sales"
domain="[('journal_id', '=', active_id)]"
context="{'search_default_journal_id': active_id}"
res_model="sale.journal.report"
src_model="sale_journal.sale.journal"
id="act_sale_journal_sale_journal_2_sale_journal_sale_stats"/>
@ -311,7 +311,8 @@
<!-- Action of stock picking in picking journal -->
<act_window name="Assigned picking"
domain="[('journal_id', '=', active_id),('state', '=', 'assigned')]"
domain="[('state', '=', 'assigned')]"
context="{'search_default_journal_id': [active_id]}"
res_model="stock.picking"
src_model="sale_journal.picking.journal"
id="act_sale_journal_picking_journal_2_stock_picking_assigned"/>
@ -319,7 +320,8 @@
<!-- Action of stock picking in picking journal -->
<act_window name="Confirmed picking"
domain="[('journal_id', '=', active_id),('state', '=', 'confirmed')]"
domain="[('state', '=', 'confirmed')]"
context="{'search_default_journal_id': [active_id]}"
res_model="stock.picking"
src_model="sale_journal.picking.journal"
id="act_sale_journal_picking_journal_2_stock_picking_confirmed"/>
@ -327,7 +329,8 @@
<!-- Action of stock picking in sale journal -->
<act_window name="Assigned picking"
domain="[('sale_journal_id', '=', active_id),('state', '=', 'assigned')]"
domain="[('state', '=', 'assigned')]"
context="{'search_default_sale_journal_id': [active_id]}"
res_model="stock.picking"
src_model="sale_journal.sale.journal"
id="act_sale_journal_sale_journal_2_stock_picking_assigned"/>
@ -335,7 +338,8 @@
<!-- Action of stock picking in sale journal -->
<act_window name="Confirmed picking"
domain="[('sale_journal_id', '=', active_id),('state', '=', 'confirmed')]"
domain="[('state', '=', 'confirmed')]"
context="{'search_default_sale_journal_id': [active_id]}"
res_model="stock.picking"
src_model="sale_journal.sale.journal"
id="act_sale_journal_sale_journal_2_stock_picking_confirmed"/>

View File

@ -1851,8 +1851,7 @@
src_model="stock.location"/>
<act_window
context="{'location': active_id, 'search_default_done': 1}"
domain="[('product_id','=',active_id)]"
context="{'location': active_id, 'search_default_done': 1,'search_default_product_id': [active_id]}"
id="act_product_stock_move_open"
name="Stock Moves"
res_model="stock.move"
@ -1866,8 +1865,8 @@
src_model="stock.move"/>
<act_window
context="{'location': active_id, 'search_default_future': 1}"
domain="[('product_id','=',active_id),('state','in',('waiting','confirmed','assigned'))]"
context="{'location': active_id, 'search_default_future': 1,'search_default_product_id': [active_id]}"
domain="[('state','in',('waiting','confirmed','assigned'))]"
id="act_product_stock_move_futur_open"
name="Future Stock Moves"
res_model="stock.move"

View File

@ -1163,20 +1163,23 @@
<field name="view_id" ref="survey_type_tree"></field>
</record>
<act_window domain="[('survey_id', '=', active_id)]"
<act_window
context="{'search_default_survey_id': [active_id]}"
id="act_survey_pages"
name="Pages"
res_model="survey.page"
src_model="survey"/>
<act_window domain="[('survey', '=', active_id)]"
<act_window
context="{'search_default_survey': active_id}"
id="act_survey_question"
name="Questions"
res_model="survey.question"
src_model="survey"/>
<act_window domain="[('page_id', '=', active_id)]"
<act_window
context="{'search_default_page_id': active_id}"
id="act_survey_page_question"
name="Questions"
res_model="survey.question"

View File

@ -245,13 +245,15 @@
<field name="view_mode">tree,form</field>
</record>
<act_window domain="[('wiki_id', '=', active_id)]"
<act_window
context="{'search_default_wiki_id': [active_id]}"
id="act_wiki_wiki_history"
name="Page History"
res_model="wiki.wiki.history"
src_model="wiki.wiki"/>
<act_window domain="[('group_id', '=', active_id)]"
<act_window
context="{'search_default_group_id': [active_id]}"
id="act_wiki_group_open"
name="Search Page"
res_model="wiki.wiki"