diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 716369c429b..3ae70200ffb 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -818,7 +818,7 @@ - + diff --git a/addons/account/invoice.py b/addons/account/invoice.py index ef056e454a9..b15c8667972 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -1171,7 +1171,7 @@ class account_invoice(osv.osv): ((move_id, invoice.move_id.id),)) lines = line.browse(cr, uid, map(lambda x: x[0], cr.fetchall()) ) for l in lines+invoice.payment_ids: - if l.account_id.id==src_account_id: + if l.account_id.id == src_account_id: line_ids.append(l.id) total += (l.debit or 0.0) - (l.credit or 0.0) diff --git a/addons/account/test/account_customer_invoice.yml b/addons/account/test/account_customer_invoice.yml index 0cbcc0f944d..e5920d0caed 100644 --- a/addons/account/test/account_customer_invoice.yml +++ b/addons/account/test/account_customer_invoice.yml @@ -32,6 +32,12 @@ - !assert {model: account.invoice, id: account_invoice_customer0}: - state == 'proforma2' +- + I check that there is no move attached to the invoice +- + !python {model: account.invoice}: | + acc_id=self.browse(cr, uid, ref("account_invoice_customer0")) + assert acc_id.move_id, "Move not created" - I create invoice by clicking on Create button - @@ -41,6 +47,13 @@ - !assert {model: account.invoice, id: account_invoice_customer0}: - state == 'open' + +- + I check that now there is a move attached to the invoice +- + !python {model: account.invoice}: | + acc_id=self.browse(cr, uid, ref("account_invoice_customer0")) + assert acc_id.move_id, "Move created" - I create a record for partial payment of 1000 EUR. - diff --git a/addons/account/test/account_fiscalyear_close.yml b/addons/account/test/account_fiscalyear_close.yml index 6a619a8df5c..fa4f24effc1 100644 --- a/addons/account/test/account_fiscalyear_close.yml +++ b/addons/account/test/account_fiscalyear_close.yml @@ -59,33 +59,33 @@ "tz": False, "active_id": ref("account.menu_action_move_journal_line_form"), }) -- - In order to test Cancel Opening Entries I cancelled the opening entries created for "Fiscal Year 2011" -- - !record {model: account.open.closed.fiscalyear, id: account_open_closed_fiscalyear_1}: - fyear_id: account.data_fiscalyear -- - I clicked on Open button -- - !python {model: account.open.closed.fiscalyear}: | - self.remove_entries(cr, uid, [ref("account_open_closed_fiscalyear_1")], {"lang": - 'en_US', "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_wizard_open_closed_fy")], - "tz": False, "active_id": ref("account.menu_wizard_open_closed_fy"), }) -- - I check the opening entries By using "Entries by Line wizard" -- - !record {model: account.move.journal, id: account_move_journal_2}: - journal_id: account.sales_journal - period_id: account_period_jan11 - -- - I checked the Opening entries are cancelled successfully -- - !python {model: account.move.journal}: | - self.action_open_window(cr, uid, [ref("account_move_journal_2")], {"lang": 'en_US', - "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_move_journal_line_form")], - "tz": False, "active_id": ref("account.menu_action_move_journal_line_form"), - }) +#- +# In order to test Cancel Opening Entries I cancelled the opening entries created for "Fiscal Year 2011" +#- +# !record {model: account.open.closed.fiscalyear, id: account_open_closed_fiscalyear_1}: +# fyear_id: account.data_fiscalyear +#- +# I clicked on Open button +#- +# !python {model: account.open.closed.fiscalyear}: | +# self.remove_entries(cr, uid, [ref("account_open_closed_fiscalyear_1")], {"lang": +# 'en_US', "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_wizard_open_closed_fy")], +# "tz": False, "active_id": ref("account.menu_wizard_open_closed_fy"), }) +#- +# I check the opening entries By using "Entries by Line wizard" +#- +# !record {model: account.move.journal, id: account_move_journal_2}: +# journal_id: account.sales_journal +# period_id: account_period_jan11 +# +#- +# I checked the Opening entries are cancelled successfully +#- +# !python {model: account.move.journal}: | +# self.action_open_window(cr, uid, [ref("account_move_journal_2")], {"lang": 'en_US', +# "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_move_journal_line_form")], +# "tz": False, "active_id": ref("account.menu_action_move_journal_line_form"), +# }) diff --git a/addons/base_action_rule/base_action_rule_view.xml b/addons/base_action_rule/base_action_rule_view.xml index 62e858a8349..710fc9d0075 100644 --- a/addons/base_action_rule/base_action_rule_view.xml +++ b/addons/base_action_rule/base_action_rule_view.xml @@ -1,9 +1,9 @@ - + parent="base.menu_base_config" sequence="3" /> - Action Rules + Automated Actions base.action.rule form tree,form @@ -113,7 +113,7 @@ + parent="base.menu_base_action_rule" action="base_action_rule_act" sequence="1"/> diff --git a/addons/base_calendar/base_calendar_view.xml b/addons/base_calendar/base_calendar_view.xml index cb754080c02..2324be6adbd 100644 --- a/addons/base_calendar/base_calendar_view.xml +++ b/addons/base_calendar/base_calendar_view.xml @@ -157,7 +157,7 @@ + parent="base.menu_base_config" sequence="6" /> @@ -201,7 +201,7 @@ - Available Alarms + Alarms ir.actions.act_window res.alarm form diff --git a/addons/crm/__openerp__.py b/addons/crm/__openerp__.py index 35870801ae6..0b170a85924 100644 --- a/addons/crm/__openerp__.py +++ b/addons/crm/__openerp__.py @@ -86,6 +86,7 @@ Create dashboard for CRM that includes: 'wizard/crm_send_email_view.xml', 'wizard/crm_forward_to_partner_view.xml', 'wizard/crm_custom_create_menu_view.xml', + 'wizard/crm_merge_opportunities_view.xml', 'crm_view.xml', diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 6897a3d1a23..9ddc87b2efd 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -15,7 +15,7 @@ + parent="base.menu_crm_config_lead" /> @@ -31,7 +31,7 @@ + parent="base.menu_crm_config_lead" /> diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml index 2c6fbd02cc9..66bbc061009 100644 --- a/addons/crm/crm_meeting_view.xml +++ b/addons/crm/crm_meeting_view.xml @@ -13,8 +13,8 @@ {'object_id':'crm.meeting'} - + diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml index 3ccfb1b1e18..411ae9ec58d 100644 --- a/addons/crm/crm_opportunity_view.xml +++ b/addons/crm/crm_opportunity_view.xml @@ -35,6 +35,8 @@ +