Logical error on printing/re-printing invoice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Harry (OpenERP) |
Bug Description
OpenERP-Server Version : 5.0.1
Normaly if you reprinting an invoice when you have already printed one time, OpenERP resend to you the first version of invoice (if you have let the 'attachment_use' field filled).
This functionnality works only in you have put an invoice description. If you doesn't filled the description field, OpenERP recreate the requested invoice on the fly.
I propose to modify 'document.py' file like bellow:
-------
diff --git a/addons/
index 1a66145..dd36fd7 100644
--- a/addons/
+++ b/addons/
@@ -667,7 +667,8 @@ class document_
result = obj_model.read(cr, uid, [vals['res_id']], context=context)
if len(result):
- vals['title'] = (obj.get(
+ if obj.get('name',''): #[HNM] without this test If 'Description' field of invoice object isn't filled you cannot create attachment.
+ vals['title'] = (obj.get(
if obj_model.
-------
Regards
Related branches
affects: | openobject-server → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → Harry (Open ERP) (hmo-tinyerp) |
Thanks to reporting and patch. addons/ 5.0/
Fix Release :
revision-id: <email address hidden>
date: 2009-08-03 16:14:40 +0530
build-date: 2009-08-03 16:15:15 +0530
revno: 2405
branch : openobject-
branch-nick: 5.0