packing - does not (always) use fiscal year for sequences

Bug #499437 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Won't Fix
Undecided
Unassigned

Bug Description

IMHO the fiscal year is not always respected for all stok moves.

Sometimes the next number from the "master" sequence is used, sometimes the correct one form the fiscal year sequence and sometimes (invoices) from the wrong fiscal year.

it could well be that this depends on how the form is called (from menu or action)

May be this is also (only) a problem of my price_unit branch - although I am not aware that I modified the way sequence numbers are used - but I added a new forms - may be the context is not passed / defined correctly

Revision history for this message
Ferdinand (office-chricar) wrote :

branch-server 1902
branch-addons official 2469
branch-addons chricar_5.0_price_unit 2507

see also
https://bugs.launchpad.net/openobject-addons/+bug/507454

stock.py
- does not handle fiscal years - it's common to start pickings with 1 for each fiscal year
- does not handle multiple sequences - takes random

    def create(self, cr, user, vals, context=None):
        if ('name' not in vals) or (vals.get('name')=='/'):
            vals['name'] = self.pool.get('ir.sequence').get(cr, user, 'stock.picking')

Please could someone check/comment/fix all sequence calls to handel fiscal years if defined !!!

find . -follow -name "*py"|xargs grep self.pool.get |grep 'ir.sequence'
returns 31 lines with high error potential

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

hello,

stock.picking does not take into account fiscal year and we do'nt plan to change this. (it's quite complex to manage, you have no real link to the right fiscal year in multi-company environment.) So the sequence on picking is global.

Changed in openobject-addons:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.