Merge lp:~openerp-dev/openobject-addons/trunk-bug-1133540-dhruvit into lp:openobject-addons

Proposed by Dhruvit Darji(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1133540-dhruvit
Merge into: lp:openobject-addons
Diff against target: 14 lines (+3/-1)
1 file modified
stock/stock.py (+3/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1133540-dhruvit
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+151894@code.launchpad.net

Description of the change

Hello,
 i have solved Locations allow duplicatation issue
 -Fixed duplication issue in stock

Thanx,
Dhruvit

To post a comment you must log in.
8597. By Dhruvit Darji(OpenERP)

[FIX] location will not allow duplication

8598. By Dhruvit Darji(OpenERP)

[MERGE] Merge with Addons

Unmerged revisions

8598. By Dhruvit Darji(OpenERP)

[MERGE] Merge with Addons

8597. By Dhruvit Darji(OpenERP)

[FIX] location will not allow duplication

8596. By Dhruvit Darji(OpenERP)

[Fix Locations Not Allow Duplicates]

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2013-03-14 11:27:40 +0000
3+++ stock/stock.py 2013-03-18 06:56:23 +0000
4@@ -228,7 +228,9 @@
5 'icon': False,
6 'scrap_location': False,
7 }
8-
9+ _sql_constraints = [
10+ ('name_unique', 'unique(name,location_id)','The name of the location or parent location must be unique !')
11+ ]
12 def chained_location_get(self, cr, uid, location, partner=None, product=None, context=None):
13 """ Finds chained location
14 @param location: Location id

Subscribers

People subscribed via source and target branches

to all changes: