journal invoice_sequence_id must exist for invoices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
branch-server 1902
branch-addons official 2469
branch-addons chricar_
trunk-extra-addons 3977
pls see FIXME comments below
account/invoice.py
def action_number(self, cr, uid, ids, *args):
obj_inv = self.browse(cr, uid, ids)[0]
for (id, invtype, number, move_id, reference) in cr.fetchall():
if not number:
if obj_inv.
I suggest to raise an error instead
BTW - we do not understand why we need to iterate cr.fetchall - it can only be the one which is fetched by obj_inv - or do I miss something?
It can always be only one resource