Comment 8 for bug 1104982

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

This happens when the 'osv_memory.autovacuum' cron is running.

     cron.object.execute('openerp_magento7', 1, '*', u'osv_memory.autovacuum', u'power_on')

It tries to delete the records in the table 'wizard_multi_charts_accounts' but they are referenced by a FK from 'account_bank_accounts_wizard'.

    \d account_bank_accounts_wizard
    [...]
    "account_bank_accounts_wizard_bank_account_id_fkey" FOREIGN KEY (bank_account_id) REFERENCES wizard_multi_charts_accounts(id) ON DELETE SET NULL

   => account_bank_accounts_wizard.bank_account_id should be set to null, but this field is required ('NOT NULL').