packing - does not (always) use fiscal year for sequences
Bug #499437 reported by
Ferdinand
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
To post a comment you must log in.
branch-server 1902 5.0_price_ unit 2507
branch-addons official 2469
branch-addons chricar_
see also /bugs.launchpad .net/openobject -addons/ +bug/507454
https:/
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): 'name') =='/'):
vals[ 'name'] = self.pool. get('ir. sequence' ).get(cr, user, 'stock.picking')
if ('name' not in vals) or (vals.get(
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