← Back to team overview

credativ team mailing list archive

[Merge] lp:~therp-nl/openupgrade-addons/7.0-account_no_cashbox into lp:openupgrade-addons

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/7.0-account_no_cashbox into lp:openupgrade-addons.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-account_no_cashbox/+merge/175822
-- 
https://code.launchpad.net/~therp-nl/openupgrade-addons/7.0-account_no_cashbox/+merge/175822
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/7.0-account_no_cashbox into lp:openupgrade-addons.
=== added file 'account/migrations/7.0.1.1/openupgrade_analysis_work.txt'
--- account/migrations/7.0.1.1/openupgrade_analysis_work.txt	1970-01-01 00:00:00 +0000
+++ account/migrations/7.0.1.1/openupgrade_analysis_work.txt	2013-07-19 13:04:29 +0000
@@ -0,0 +1,324 @@
+---Fields in module 'account'---
+### TODO: migrate cashbox opening and closing items
+account      / account.bank.statement   / closing_details_ids (one2many): NEW relation: account.cashbox.line
+account      / account.bank.statement   / details_ids (one2many)        : NEW relation: account.cashbox.line
+account      / account.bank.statement   / ending_details_ids (one2many) : DEL relation: account.cashbox.line
+account      / account.bank.statement   / opening_details_ids (one2many): NEW relation: account.cashbox.line
+account      / account.bank.statement   / starting_details_ids (one2many): DEL relation: account.cashbox.line
+account      / account.cashbox.line     / bank_statement_id (many2one)  : NEW relation: account.bank.statement
+account      / account.cashbox.line     / ending_id (many2one)          : DEL relation: account.bank.statement
+account      / account.cashbox.line     / number (integer)              : DEL 
+account      / account.cashbox.line     / number_closing (integer)      : NEW 
+account      / account.cashbox.line     / number_opening (integer)      : NEW 
+account      / account.cashbox.line     / starting_id (many2one)        : DEL relation: account.bank.statement
+account      / account.journal          / cash_control (boolean)        : NEW 
+account      / account.journal          / cashbox_line_ids (one2many)   : NEW relation: account.journal.cashbox.line
+account      / account.journal          / with_last_closing_balance (boolean): NEW 
+account      / account.journal.cashbox.line / journal_id (many2one)         : NEW relation: account.journal, required: required
+account      / account.journal.cashbox.line / pieces (float)                : NEW 
+account      / account.journal          / internal_account_id (many2one): NEW relation: account.account
+
+### Ignore, no existing data to push as messages
+account      / account.bank.statement   / message_ids (one2many)        : NEW relation: mail.message
+
+### Ignore obsolete field
+account      / account.chart.template   / property_reserve_and_surplus_account (many2one): DEL relation: account.account.template
+
+### Migrated address to partner
+account      / account.invoice          / address_contact_id (many2one) : DEL relation: res.partner.address
+account      / account.invoice          / address_invoice_id (many2one) : DEL relation: res.partner.address, required: required
+
+### Migrated note to chatter
+account      / account.invoice          / message_ids (one2many)        : NEW relation: mail.message
+account      / account.invoice.line     / note (text)                   : DEL 
+
+### Leave 'sent' field unset on invoice, as it will be hard to determine and should be harmless
+account      / account.invoice          / sent (boolean)                : NEW 
+
+### Ignore new fields
+account      / account.invoice          / supplier_invoice_number (char): NEW 
+
+### Migrated char field to text
+account      / account.invoice.line     / name (char)                   : type is now 'text' ('char')
+
+### Ignore changes to invoice statistics, which is a view
+account      / account.invoice.report   / address_contact_id (many2one) : DEL relation: res.partner.address
+account      / account.invoice.report   / address_invoice_id (many2one) : DEL relation: res.partner.address
+account      / account.invoice.report   / delay_to_pay (float)          : DEL 
+account      / account.invoice.report   / due_delay (float)             : DEL 
+
+### Ignore new analytic options on tax
+account      / account.invoice.tax      / account_analytic_id (many2one): NEW relation: account.analytic.account
+account      / account.tax              / account_analytic_collected_id (many2one): NEW relation: account.analytic.account
+account      / account.tax              / account_analytic_paid_id (many2one): NEW relation: account.analytic.account
+
+# Ignore obsolete view configuration for journals
+account      / account.journal          / view_id (many2one)            : DEL relation: account.journal.view, required: required
+
+# Ignore obsolete, cosmetic fields on payment term lines
+account      / account.payment.term.line / name (char)                   : DEL required: required
+account      / account.payment.term.line / sequence (integer)            : DEL required: required, req_default: 5
+
+# Default values are set by the ORM for these fields. Mention rounding method in user notes
+account      / res.company              / expects_chart_of_accounts (boolean): NEW 
+account      / res.company              / tax_calculation_rounding_method (selection): NEW selection_keys: ['round_globally', 'round_per_line']
+
+# Mention these new journal settings, used in point of sale
+account      / account.journal          / loss_account_id (many2one)    : NEW relation: account.account
+account      / account.journal          / profit_account_id (many2one)  : NEW relation: account.account
+
+# Lock existing closing reconciliations by setting this new field
+account      / account.move.reconcile   / opening_reconciliation (boolean): NEW 
+
+---XML records in module 'account'---
+### ignore custom template records. These were loaded dynamically in
+### OpenERP 6.1, and now loaded by default.
+### Changes in templates do not affect existing setups anyway.
+NEW account.account.template: account.conf_a_expense
+NEW account.account.template: account.conf_a_pay
+NEW account.account.template: account.conf_a_recv
+NEW account.account.template: account.conf_a_reserve_and_surplus
+NEW account.account.template: account.conf_a_salary_expense
+NEW account.account.template: account.conf_a_sale
+NEW account.account.template: account.conf_bal
+NEW account.account.template: account.conf_bnk
+NEW account.account.template: account.conf_cas
+NEW account.account.template: account.conf_chart0
+NEW account.account.template: account.conf_cli
+NEW account.account.template: account.conf_cog
+NEW account.account.template: account.conf_cos
+NEW account.account.template: account.conf_fas
+NEW account.account.template: account.conf_gpf
+NEW account.account.template: account.conf_iva
+NEW account.account.template: account.conf_nca
+NEW account.account.template: account.conf_o_expense
+NEW account.account.template: account.conf_o_income
+NEW account.account.template: account.conf_ova
+NEW account.account.template: account.conf_ovr
+NEW account.account.template: account.conf_rev
+NEW account.account.template: account.conf_stk
+NEW account.account.template: account.conf_xfa
+NEW account.chart.template: account.configurable_chart_template
+NEW account.fiscal.position.tax.template: account.fiscal_position_normal_taxes
+NEW account.fiscal.position.tax.template: account.fiscal_position_tax_exempt
+NEW account.fiscal.position.template: account.fiscal_position_normal_taxes_template1
+NEW account.fiscal.position.template: account.fiscal_position_tax_exempt_template2
+NEW account.tax.code.template: account.tax_code_balance_net
+NEW account.tax.code.template: account.tax_code_base_net
+NEW account.tax.code.template: account.tax_code_base_purchases
+NEW account.tax.code.template: account.tax_code_base_sales
+NEW account.tax.code.template: account.tax_code_chart_root
+NEW account.tax.code.template: account.tax_code_input
+NEW account.tax.code.template: account.tax_code_input_O
+NEW account.tax.code.template: account.tax_code_input_R
+NEW account.tax.code.template: account.tax_code_input_S
+NEW account.tax.code.template: account.tax_code_input_X
+NEW account.tax.code.template: account.tax_code_output
+NEW account.tax.code.template: account.tax_code_output_O
+NEW account.tax.code.template: account.tax_code_output_R
+NEW account.tax.code.template: account.tax_code_output_S
+NEW account.tax.code.template: account.tax_code_output_X
+NEW account.tax.code.template: account.tax_code_purch_O
+NEW account.tax.code.template: account.tax_code_purch_R
+NEW account.tax.code.template: account.tax_code_purch_S
+NEW account.tax.code.template: account.tax_code_purch_X
+NEW account.tax.code.template: account.tax_code_sales_O
+NEW account.tax.code.template: account.tax_code_sales_R
+NEW account.tax.code.template: account.tax_code_sales_S
+NEW account.tax.code.template: account.tax_code_sales_X
+NEW account.tax.template: account.itaxo
+NEW account.tax.template: account.itaxr
+NEW account.tax.template: account.itaxs
+NEW account.tax.template: account.itaxx
+NEW account.tax.template: account.otaxo
+NEW account.tax.template: account.otaxr
+NEW account.tax.template: account.otaxs
+NEW account.tax.template: account.otaxx
+### Ignore newly added account types
+NEW account.account.type: account.account_type_asset_view1
+NEW account.account.type: account.account_type_expense_view1
+NEW account.account.type: account.account_type_income_view1
+NEW account.account.type: account.account_type_liability_view1
+NEW account.account.type: account.conf_account_type_chk
+NEW account.account.type: account.conf_account_type_equity
+NEW account.account.type: account.conf_account_type_tax
+### Ignore configuration of dropped dynamic journal views
+DEL account.journal.column: account.bank_col1
+DEL account.journal.column: account.bank_col10
+DEL account.journal.column: account.bank_col10_multi
+DEL account.journal.column: account.bank_col17_multi
+DEL account.journal.column: account.bank_col18_multi
+DEL account.journal.column: account.bank_col1_multi
+DEL account.journal.column: account.bank_col2
+DEL account.journal.column: account.bank_col20
+DEL account.journal.column: account.bank_col20_multi
+DEL account.journal.column: account.bank_col23
+DEL account.journal.column: account.bank_col23_multi
+DEL account.journal.column: account.bank_col2_multi
+DEL account.journal.column: account.bank_col3
+DEL account.journal.column: account.bank_col3_multi
+DEL account.journal.column: account.bank_col4
+DEL account.journal.column: account.bank_col4_multi
+DEL account.journal.column: account.bank_col5
+DEL account.journal.column: account.bank_col5_multi
+DEL account.journal.column: account.bank_col6
+DEL account.journal.column: account.bank_col6_multi
+DEL account.journal.column: account.bank_col7
+DEL account.journal.column: account.bank_col7_multi
+DEL account.journal.column: account.bank_col9
+DEL account.journal.column: account.bank_col9_multi
+DEL account.journal.column: account.journal_col1
+DEL account.journal.column: account.journal_col11
+DEL account.journal.column: account.journal_col2
+DEL account.journal.column: account.journal_col24
+DEL account.journal.column: account.journal_col3
+DEL account.journal.column: account.journal_col4
+DEL account.journal.column: account.journal_col5
+DEL account.journal.column: account.journal_col6
+DEL account.journal.column: account.journal_col8
+DEL account.journal.column: account.journal_col9
+DEL account.journal.column: account.sp_journal_col1
+DEL account.journal.column: account.sp_journal_col10
+DEL account.journal.column: account.sp_journal_col11
+DEL account.journal.column: account.sp_journal_col2
+DEL account.journal.column: account.sp_journal_col20
+DEL account.journal.column: account.sp_journal_col24
+DEL account.journal.column: account.sp_journal_col3
+DEL account.journal.column: account.sp_journal_col4
+DEL account.journal.column: account.sp_journal_col5
+DEL account.journal.column: account.sp_journal_col6
+DEL account.journal.column: account.sp_journal_col7
+DEL account.journal.column: account.sp_journal_col8
+DEL account.journal.column: account.sp_journal_col9
+DEL account.journal.column: account.sp_refund_journal_col1
+DEL account.journal.column: account.sp_refund_journal_col10
+DEL account.journal.column: account.sp_refund_journal_col11
+DEL account.journal.column: account.sp_refund_journal_col2
+DEL account.journal.column: account.sp_refund_journal_col20
+DEL account.journal.column: account.sp_refund_journal_col24
+DEL account.journal.column: account.sp_refund_journal_col3
+DEL account.journal.column: account.sp_refund_journal_col4
+DEL account.journal.column: account.sp_refund_journal_col5
+DEL account.journal.column: account.sp_refund_journal_col6
+DEL account.journal.column: account.sp_refund_journal_col7
+DEL account.journal.column: account.sp_refund_journal_col8
+DEL account.journal.column: account.sp_refund_journal_col9
+DEL account.journal.view: account.account_journal_bank_view
+DEL account.journal.view: account.account_journal_bank_view_multi
+DEL account.journal.view: account.account_journal_view
+DEL account.journal.view: account.account_sp_journal_view
+DEL account.journal.view: account.account_sp_refund_journal_view
+### Ignore changes in default payment terms
+### TODO: verify that dropped XML-IDs for noupdate data does
+### not remove the related resources from the database
+NEW account.payment.term: account.account_payment_term_15days
+NEW account.payment.term: account.account_payment_term_immediate
+DEL account.payment.term: account.account_payment_term
+DEL account.payment.term: account.account_payment_term_advance
+NEW account.payment.term.line: account.account_payment_term_line_15days
+NEW account.payment.term.line: account.account_payment_term_line_immediate
+DEL account.payment.term.line: account.account_payment_term_line
+DEL account.payment.term.line: account.account_payment_term_line_advance1
+DEL account.payment.term.line: account.account_payment_term_line_advance2
+### Ignore interface and access records
+NEW ir.actions.act_window: account.action_account_config
+NEW ir.actions.act_window: account.action_account_fiscalyear
+NEW ir.actions.act_window: account.action_account_items
+NEW ir.actions.act_window: account.action_account_period
+NEW ir.actions.act_window: account.action_cash_box_in
+NEW ir.actions.act_window: account.action_cash_box_out
+NEW ir.actions.act_window: account.action_tax_code_items
+NEW ir.actions.act_window: account.open_account_charts_modules
+DEL ir.actions.act_window: account.act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal
+DEL ir.actions.act_window: account.act_account_acount_move_line_open
+DEL ir.actions.act_window: account.action_account_analytic_journal_tree
+DEL ir.actions.act_window: account.action_account_fiscalyear_form
+DEL ir.actions.act_window: account.action_account_journal_view
+DEL ir.actions.act_window: account.action_account_moves_bank
+DEL ir.actions.act_window: account.action_account_moves_purchase
+DEL ir.actions.act_window: account.action_account_moves_sale
+DEL ir.actions.act_window: account.action_account_period_form
+DEL ir.actions.act_window: account.action_aged_income
+DEL ir.actions.act_window: account.action_aged_receivable
+DEL ir.actions.act_window: account.action_bank_statement_periodic_tree
+DEL ir.actions.act_window: account.action_move_line_search
+DEL ir.actions.act_window: account.action_move_line_tree1
+DEL ir.actions.act_window: account.action_review_financial_journals_installer
+DEL ir.actions.act_window: account.action_review_payment_terms_installer
+DEL ir.actions.act_window: account.action_treasory_graph
+DEL ir.actions.act_window: account.action_view_account_use_model
+DEL ir.actions.act_window: account.action_view_financial_accounts_installer
+DEL ir.actions.act_window: account.action_view_move_line
+DEL ir.actions.act_window.view: account.action_bank_statement_periodic_form_bank
+DEL ir.actions.act_window.view: account.action_bank_statement_periodic_tree_bank
+DEL ir.actions.act_window.view: account.action_move_line_search_view1
+DEL ir.actions.act_window.view: account.action_move_line_search_view2
+DEL ir.actions.report.xml: account.account_account_balance_landscape
+DEL ir.actions.report.xml: account.account_aged_partner_balance
+DEL ir.actions.report.xml: account.account_financial_report
+DEL ir.actions.server: account.ir_actions_server_action_wizard_multi_chart
+DEL ir.actions.server: account.ir_actions_server_edi_invoice
+NEW ir.actions.todo: account.action_wizard_multi_chart_todo
+DEL ir.actions.todo: account.account_configuration_bank_todo
+DEL ir.actions.todo: account.review_financial_journals_todo
+DEL ir.actions.todo: account.review_payment_terms_todo
+DEL ir.actions.todo: account.view_financial_accounts_todo
+DEL ir.actions.todo.category: account.category_accounting_configuration
+NEW ir.model.access: account.access_account_journal_cashbox_line
+DEL ir.model.access: account.access_account_journal_column
+DEL ir.model.access: account.access_account_journal_column_invoice
+DEL ir.model.access: account.access_account_journal_view
+DEL ir.model.access: account.access_account_journal_view_invoice
+DEL ir.model.access: account.access_res_partner_address_accountant
+DEL ir.model.access: account.access_res_partner_address_invoice
+NEW ir.rule: account.entry_analysis_comp_rule
+NEW ir.ui.menu: account.menu_account_config
+NEW ir.ui.menu: account.menu_action_account_fiscalyear
+NEW ir.ui.menu: account.menu_action_account_period
+NEW ir.ui.menu: account.menu_finance_reports
+DEL ir.ui.menu: account.menu_act_ir_actions_bleble
+DEL ir.ui.menu: account.menu_action_account_fiscalyear_form
+DEL ir.ui.menu: account.menu_action_account_journal_view
+DEL ir.ui.menu: account.menu_action_account_moves_bank
+DEL ir.ui.menu: account.menu_action_account_period_form
+DEL ir.ui.menu: account.menu_action_manual_recurring
+DEL ir.ui.menu: account.menu_dashboard_acc
+DEL ir.ui.menu: account.menu_eaction_account_moves_purchase
+DEL ir.ui.menu: account.menu_eaction_account_moves_sale
+DEL ir.ui.menu: account.menu_finance_statistic_report_statement
+DEL ir.ui.menu: account.menu_menu_Bank_process
+NEW ir.ui.view: account.cash_box_in_form
+NEW ir.ui.view: account.cash_box_out_form
+NEW ir.ui.view: account.view_account_config_settings
+NEW ir.ui.view: account.view_bank_statement_form_journal_items
+NEW ir.ui.view: account.view_move_line_tree_reconcile
+DEL ir.ui.view: account.account_move_graph
+DEL ir.ui.view: account.analytic_accounts_graph
+DEL ir.ui.view: account.report_hr_timesheet_invoice_journal_form
+DEL ir.ui.view: account.report_hr_timesheet_invoice_journal_graph
+DEL ir.ui.view: account.report_hr_timesheet_invoice_journal_search
+DEL ir.ui.view: account.report_hr_timesheet_invoice_journal_tree
+DEL ir.ui.view: account.view_account_analytic_account_form
+DEL ir.ui.view: account.view_account_journal_view_form
+DEL ir.ui.view: account.view_account_journal_view_search
+DEL ir.ui.view: account.view_account_journal_view_tree
+DEL ir.ui.view: account.view_account_move_journal_form
+DEL ir.ui.view: account.view_bank_statement_periodic_form
+DEL ir.ui.view: account.view_company_inherit_1_form
+DEL ir.ui.view: account.view_journal_column_form
+DEL ir.ui.view: account.view_journal_column_tree
+DEL ir.ui.view: account.view_move_line_tax_tree
+DEL ir.ui.view: account.view_res_partner_reconcile
+DEL ir.ui.view: account.view_treasory_graph
+### Sequences have been renamed in the analytic module migration scripts
+DEL ir.sequence: account.seq_analytic_account
+DEL ir.sequence.type: account.seq_type_analytic_account
+NEW ir.values: account.ir_values_account_partner_ledger
+DEL ir.values: account.ir_account_move_line_select
+DEL ir.values: account.ir_open_tax_move_line
+### Ignore added chatter configuration
+NEW mail.message.subtype: account.mt_invoice_paid
+NEW mail.message.subtype: account.mt_invoice_validated
+### Add comments about these new feature groups in the user notes
+NEW res.groups: account.group_proforma_invoices
+NEW res.groups: account.group_supplier_inv_check_total

=== added file 'account/migrations/7.0.1.1/post-migration.py'
--- account/migrations/7.0.1.1/post-migration.py	1970-01-01 00:00:00 +0000
+++ account/migrations/7.0.1.1/post-migration.py	2013-07-19 13:04:29 +0000
@@ -0,0 +1,87 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Therp BV (<http://therp.nl>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp import pooler, SUPERUSER_ID
+from openerp.openupgrade import openupgrade, openupgrade_70
+
+def migrate_invoice_addresses(cr, pool):
+    # Contact id takes precedence over old partner id
+    openupgrade_70.set_partner_id_from_partner_address_id(
+        cr, pool, 'account_invoice',
+        'partner_id', openupgrade.get_legacy_name('address_contact_id'))
+    # Invoice id takes precedence over contact id
+    openupgrade_70.set_partner_id_from_partner_address_id(
+        cr, pool, 'account_invoice',
+        'partner_id', openupgrade.get_legacy_name('address_invoice_id'))
+
+def migrate_invoice_notes(cr, pool):
+    invoice_obj = pool.get('account.invoice')
+    note_column = openupgrade.get_legacy_name('note')
+    cr.execute(
+        """
+        SELECT id, %s
+        FROM account_invoice
+        WHERE %s is not NULL
+        """, (note_column, note_column))
+    for (invoice_id, note) in cr.fetchall():
+        invoice_obj.message_post(
+            cr, SUPERUSER_ID, [invoice_id],
+            body=note)
+
+def migrate_invoice_names(cr, pool):
+    """ column type changed from char to text """
+    openupgrade.logged_query(
+        cr,
+        """UPDATE account_invoice
+        SET %s = %s""", (
+            'name',
+            openupgrade.get_legacy_name('name'))
+        )
+
+def lock_closing_reconciliations(cr, pool):
+    """
+    Reconciliations on closing entries are now locked
+    for deletion. Therefore, lock existing closing entries.
+    """
+    fiscalyear_obj = pool.get('account.fiscalyear')
+    period_obj = pool.get('account.period')
+    move_line_obj = pool.get('account.move.line')
+    reconcile_obj = pool.get('account.move.reconcile')
+    for fiscalyear_id in fiscalyear_obj.search(
+            cr, SUPERUSER_ID, []):
+        move_line_ids = move_line_obj.search(
+            cr, SUPERUSER_ID,
+            [('period_id.special', '=', True),
+             ('period_id.fiscalyear_id', '=', fiscalyear_id)])
+        reconcile_ids = reconcile_obj.search(
+            cr, SUPERUSER_ID,
+            [('line_id', '=', move_line_ids)])
+        reconcile_obj.write(
+            cr, SUPERUSER_ID, reconcile_ids,
+            {'opening_reconciliation': True})
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    pool = pooler.get_pool(cr.dbname)
+    migrate_invoice_addresses(cr, pool)
+    migrate_invoice_notes(cr, pool)
+    migrate_invoice_names(cr, pool)
+    lock_closing_reconciliations(cr, pool)

=== added file 'account/migrations/7.0.1.1/pre-migration.py'
--- account/migrations/7.0.1.1/pre-migration.py	1970-01-01 00:00:00 +0000
+++ account/migrations/7.0.1.1/pre-migration.py	2013-07-19 13:04:29 +0000
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Therp BV (<http://therp.nl>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.openupgrade import openupgrade
+
+column_renames = {
+    # Using magic None value to trigger call to get_legacy_name()
+    'account_invoice':
+        [
+        ('address_contact_id', None),
+        ('address_invoice_id', None),
+        ('note', None),
+        ('name', None),
+        ],
+    }        
+
+xmlid_renames = [
+    ('account.account_payment_term_15days', 'account.account_payment_term'),
+    ]
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    openupgrade.rename_columns(cr, column_renames)

=== added file 'account/migrations/7.0.1.1/user_notes.txt'
--- account/migrations/7.0.1.1/user_notes.txt	1970-01-01 00:00:00 +0000
+++ account/migrations/7.0.1.1/user_notes.txt	2013-07-19 13:04:29 +0000
@@ -0,0 +1,5 @@
+This is an incomplete migration of the account module. You can only use this version safely if you have not used cash boxes.
+
+Two features are now only available for users that are allowed to use them on their user records: creation of pro-forma invoices, and checking the total amount of a supplier invoice.
+Invoice rounding before tax application can now be configured globally or per line. Please review this setting in your financial configuration.
+If you use point of sale, you will want to configure profit and loss accounts on the relevant journals.


Follow ups