c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22078
[Bug 753634] Re: cannot add an invoice line in a draft supplier invoice
Hi,
My customer is running on the version 6.0.2 and he gets the same problem.
Scenario to test:
- create a draft supplier invoice with 1 line relevant to taxe
- Save the draft the invoice
- Edit the invoice again and add a new line.
Then you get the traceback, as detailed above.
Thx, Kevin
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/753634
Title:
cannot add an invoice line in a draft supplier invoice
Status in OpenERP Web Client:
Invalid
Status in OpenERP Web Client 6.0 series:
Confirmed
Bug description:
To test :
Install purchase ans invoicing :
-create a purchase order and convert it
- go to the invoice (supplier invoice)
- it is in draft so add a new invoice line by clicking "Create"
bug :
AVERTISSEMENT
Traceback (most recent call last): File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/odoo/openerp/server/bin/addons/use_control/services.py", line 41, in dispatch return super(recording_objects_proxy, self).dispatch(func, auth, params) File "/home/odoo/openerp/server/bin/service/web_services.py", line 608, in dispatch res = fn(db, uid, *params) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 511, in execute res = my_fct(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 489, in my_fct return fct_src(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/odoo/openerp/server/bin/osv/orm.py", line 981, in default_get defaults[f] = self._defaults[f](self, cr, uid, context) File "/home/odoo/openerp/server/bin/addons/account/invoice.py", line 1262, in _price_unit_default for tax in tax_obj.compute_all(cr, uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id', False), l[2].get('product_id', False), context.get('partner_id', False))['taxes']: File "/home/odoo/openerp/server/bin/addons/account/account.py", line 1904, in compute_all if tax.price_include: AttributeError: 'NoneType' object has no attribute 'price_include'
References