c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15588
Re: [Bug 713227] Re: create invoice from Deliveries to Invoice tree view
How odd, it always happens for me.
I'm using the web client. I am in the menu:
Sales / Invoicing / Deliveries to Invoice
and I click in the box next to my delivery (I stay in the tree view).
Then from the menu at right i choose the action:
Create Invoice
and IMMEDIATELY I get the error:
167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw)
File "/mnt/data/usr/local/src/rc2/server/bin/osv/orm.py", line 958, in
default_get self.view_init(cr, uid, fields_list, context) File
"/mnt/data/usr/local/src/rc2/server/bin/addons/stock/wizard/stock_invoice_onshipping.py",
line 80, in view_init if pick.invoice_state != '2binvoiced': File
"/mnt/data/usr/local/src/rc2/server/bin/osv/orm.py", line 287, in
__getattr__ raise AttributeError(e) AttributeError: 'Field invoice_state
not found in browse_record(stock.picking, 343)'
When I look in the DB, there is no stock picking (or stock move) with id
= 343. BUT, in the table ir_ui_menu,
the item with id = 343 is :
343 | 340 | Deliveries to Invoice | STOCK_JUSTIFY_FILL |
1 | 2010-12-22 16:20:24.071451 | 2011-01-21 17:25:09.242583 | 1
| | | 20 | |
(1 row)
So the id of the action is being passed into the context in the file
stock_invoice_onshipping.py
Hope that you can re-create this...
Leigh
On 11-02-08 12:19 AM, Amit Parik (OpenERP) wrote:
> Hello,
>
> I have tested your scenario in web-client with stable 6.0 and trunk at
> my end. But all are working fine and I am not able to reproduce this
> type of error.
>
> So would you please elaborate with more or provide more information on
> this.
>
> Thanks.
>
> ** Changed in: openobject-addons
> Status: New => Incomplete
>
--
--------------------------------------------------------------------------------
Leigh Willard, BSc, MSc Leigh Willard, BSc, MSc
Director, Business Solutions Directrice, solutions d'affaires
telephone: (418) 780-1815 #226 téléphone: (418) 780-1815 #226
skype: agil-it.com
http://www.epsilon-ti.com
lwillard@xxxxxxxxxxxxxx
--------------------------------------------------------------------------------
--
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/713227
Title:
create invoice from Deliveries to Invoice tree view
Status in OpenERP Modules (addons):
Incomplete
Bug description:
version 6.0.1 web client
I choose my Delivery to invoice (from the tree view - search screen).
I click at right on the action Create Invoice (still in the tree
view). Note that the ID of my Delivery is 204, but the wizard gets
passed the WRONG id of the delivery. Here is the stack trace:
"/mnt/data/usr/local/src/rc2/server/bin/osv/orm.py", line 958, in
default_get self.view_init(cr, uid, fields_list, context) File
"/mnt/data/usr/local/src/rc2/server/bin/addons/stock/wizard/stock_invoice_onshipping.py",
line 80, in view_init if pick.invoice_state != '2binvoiced': File
"/mnt/data/usr/local/src/rc2/server/bin/osv/orm.py", line 287, in
__getattr__ raise AttributeError(e) AttributeError: 'Field
invoice_state not found in browse_record(stock.picking, 343)'
The record stock.picking ID 343 doesn't even exist.
References