This question has been flagged

Hello,

I have a bug with Recurring documents and Structured Bank Communication.

My invoice template have BBA selected with "Date : +++DOY/YEAR/SSSDD+++ DOY = Day of the Year, SSS = Sequence Number, DD = Check Digits "

In the cron job, I have this report :

2013-07-09 12:18:32,694 1280 ERROR openerp.addons.base.ir.ir_cron: Call of self.pool.get('subscription.subscription').model_copy(cr, uid, *([6],)) failed in Job 22 Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server\openerp\addons\base\ir\ir_cron.py", line 136, in _callback File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server\openerp\addons\subscription\subscription.py", line 139, in model_copy File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server\openerp\addons\account\account_invoice.py", line 717, in copy File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server\openerp\addons\mail\mail_thread.py", line 302, in copy File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server.\openerp\osv\orm.py", line 5026, in copy File "C:\Program Files (x86)\OpenERP 7.0-20130704-231028\Server\server\openerp\addons\l10n_be_invoice_bba\invoice.py", line 181, in create except_osv: (u'Attention !', u'The BBA Structured Communication has already been used!\nPlease create manually a unique BBA Structured Communication.')

I think the module tries to copy structured instead of generating communication ?

Avatar
Discard
Author

https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-586266-cbi/+merge/149487

Author Best Answer

solution for the impatient:

Select the invoice template in PostgreSQL \ DataBase \ xxxxx \ Schemas \ public \ Tables \ account_invoice : change the "reference_type" BBA to none

you can keep the original structured communication will be considered a free communication

Avatar
Discard
Author

Better solution : in the Documents Type, you add :

Champ : Communication Type ; Valeur par défaut : Faux