← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 713227] Re: create invoice from Deliveries to Invoice tree view

 

It seems that the problem is in
/stock/wizard/stock_invoice_onshipping.xml where

<act_window name="Create invoice"
     multi="True"              <--- delete this line
   ... />

is causing the ids to not be passed in context.
So as a quick fix removing the line containing multi or also if you do not want to reinstall the stock module then you can set this field in the database ir_act_window to false. 

Also a related bug in Sale -> Sale Orders , select multiple sale orders
and click "Make invoices" on the right, the same problem. To fix
sale/wizard/sale_make_invoice.xml

<record id="action_sale_order_make_invoice" model="ir.actions.act_window">
            <field name="name">Make Invoices</field>
            <field name="multi" eval="True"/> <-- remove this line
            ...... </record>

-- 
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