openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09875
[Bug 941428] Re: [6.1.1.0] Invoice Email is send without attachment
Hello Mykola Lys (job-mlys) ,
I have checked you patch with trunk. But I have found another
problem. I got a traceback when open a messages after apply a patch.
Traceback (most recent call last):
File "/home/jir/workspace/trunk6/server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jir/workspace/trunk6/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jir/workspace/trunk6/server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jir/workspace/trunk6/server/openerp/osv/orm.py", line 2201, in search_count
res = self.search(cr, user, args, context=context, count=True)
File "/home/jir/workspace/trunk6/server/openerp/osv/orm.py", line 2248, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/jir/workspace/trunk6/server/openerp/addons/base/ir/ir_attachment.py", line 79, in _search
model_attachments.setdefault(target_dict['res_model'],{}).setdefault(target_dict['res_id'],set()).add(target_dict['id'])
TypeError: string indices must be integers, not str
Steps to produce.
---------------------------
1) Set Outgoing server.
2) Set Email template with attached a report ,
Give a report name.
3) Create sale Order , Click send button
4) Open Messages.
-> Trackback.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/941428
Title:
[6.1.1.0] Invoice Email is send without attachment
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hi all,
I have installed the following modules:
crm Customer Relationship Management 6.1.1.0
account_voucher Accounting & Finance 6.1.1.0
account_accountant Accounting & Finance 6.1.1.1
sale Sales Management 6.1.1.0
stock Warehouse Management 6.1.1.1
purchase Purchase Management 6.1.1.1
account Accounting & Finance 6.1.1.1
base_action_rule Sales Management 6.1.1.0
document Knowledge Management 6.1.2.1
edi Tools 6.1.1.0
email_template Marketing 6.1.1.1
fetchmail Tools 6.1.1.0
l10n_de Account Charts 6.1.1.0
product Sales Management 6.1.1.1
1) Steps to reproduce the issue you have observed
1. Go to Settings | Configuration | Email | Outgoing Mail Server |
2. Set a Email server (Googleapps)
3. Go to Settings | Configuration | Email | Templates | Invoice
4. Click Edit | Advanced
5. Attach Report | Optional report to print and attach: Invoices | Report Filename: Invoice
6. Save
7. Create an Invoice
8. E-Mail is send out without attachment
2) The result you observed
Email is send without an attachment (no entries within the logfile)
3) The result you expected
Receive an email with invoice attachment without clicking on a seperate link
4) The platform your are using
Linux ubuntu 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux
Ubuntu 10.04.4 LTS
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/941428/+subscriptions
References