← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

have to correct myself

1) the demo data inserts SO lines, but does NOT adjust the sequences
accordingly - hence error trying the demo

2) having different prefixes for multi company seems a rarely used
praxis here.

we are running multi company for many years and all documents have the
same prefix - the documents can be visually identified by the different
companies document header.

and I wouldn't know what to put there as unique company identifier
(res_company.id?)

and if we would have one it should be defined in res_company and be
available as variable (%ci) in sequences

and it makes the number longer

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/800100

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

Status in OpenERP Addons (modules):
  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