← Back to team overview

openerp-india team mailing list archive

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

 

Hello Divyesh,

I am agree with the Ferdinand 's comment #7, We need to improve MO and
Picking also.

For invoice the invoice number is a read-only field and it will create
automatically, So I suggest that would you please add new
_sql_constraint for mrp and picking(Both object has company_id field).

We have set a same behaviour for most of the all applications so this
need to be improve.

Thanks.

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

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

Status in OpenERP Addons (modules):
  Fix Committed

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