← Back to team overview

openerp-india team mailing list archive

[Bug 1079205] Re: Number always skip when create new Sales Order

 

My opinion: This not a good patch, you just move away of the real
problem.

the real problem is, when we push create button, openerp get default
value, when we push save button, openerp need to NO get default value
again for field with value.

IF invoice get SO001 from push create (get default), when we save,
openerp need to save value from form value, not get default again.  In
your patch you just remove getting sequence in default value, correct
this problem, but problem still there for other case.


By the wait this patch solve a other problem, push create, and push cancel lost a sale number, so patch is good for this point.  But problem with default value for other case still there.

The best solution is to found a correct the real bug, WHY openerp GET
default on SAVE when we already HAVE a value.

So my two cents, have a good day.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1079205

Title:
  Number always skip when create new Sales Order

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Based on trunk
  (Build 25025)
  server (4563)
  addons (8057)
  web (3431)

  Steps:
  1. Create new Sales Order, i.e., Number = SO001
  2. Save this document, Number = SO002
  3. Create new Sales Order again, i.e., Number = SO003
  4. Save this document, Number = SO004

  We end up having 2 documents, SO002...SO004 !!!

  This based on the following Sequence configuration

  Prefix: SO, Suffix: n/a
  Number Padding: 3	
  Increment Number: 1	
  Implementation: No gap

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1079205/+subscriptions


References