← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 800100] Re: Sale: Constraint Error-Order Reference must be unique

 

Hello Meera,

As per I think sale order name field is a sequence field and not a read only field So end user can change.
Now if we trying to create two SO with different company then we can add the related unique prefix (eg: company name /code -sequence).

So the constraint will not block the end user for inserting two
different company SO with the same name.

So currently I am setting this issue as an "Opinion" status for more
discussion.

Thanks.

** Changed in: openobject-addons
       Status: New => Opinion

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

Title:
  Sale: Constraint Error-Order Reference must be unique

Status in OpenERP Modules (addons):
  Opinion

Bug description:
  1.Create a new db and install the multi-company module.
  2.Change the user company to Shop1.
  3.Create a Sale order and Save the record.

  It gives the following error:-
  IntegrityError: duplicate key value violates unique constraint "sale_order_name_uniq"

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


References