openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16331
[Bug 1062119] Re: Advance invoice generates account.invoice.line with origin set to NULL
Hello Andrei,
I agree with you invoice line have a 'origin' field and we missed to
write this on invoice line but same thing we have write on
account.invoice.
Same problem exist on trunk also , And your suggestion will correct it.
Thanks for the contribution!
** Changed in: openobject-addons
Importance: Undecided => Low
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)
--
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/1062119
Title:
Advance invoice generates account.invoice.line with origin set to NULL
Status in OpenERP Addons (modules):
Confirmed
Bug description:
For some reason function create_invoices() in class
sale_advance_payment_inv (module sale) don't write origin in
account.invoice.line. This problem can be corrected this way:
--- sale/wizard/sale_make_invoice_advance.py 2011-01-14 00:11:01 +0000
+++ sale/wizard/sale_make_invoice_advance.py 2012-10-05 08:37:52 +0000
@@ -67,6 +67,7 @@
uom = False, partner_id = sale.partner_id.id, fposition_id = sale.fiscal_position.id)
line_id = obj_lines.create(cr, uid, {
'name': val['value']['name'],
+ 'origin': sale.name,
'account_id': val['value']['account_id'],
'price_unit': sale_adv_obj.amount,
'quantity': sale_adv_obj.qtty,
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1062119/+subscriptions
References