mirror of
https://github.com/odoo/runbot.git
synced 2025-03-30 23:05:44 +07:00
[IMP] runbot_merge: repos shoud be unique
Having the same repository in two different projects makes no sense, the two projects will conflict with one another.
This commit is contained in:
parent
e52d08ecdf
commit
933559da04
@ -271,7 +271,7 @@ class Repository(models.Model):
|
|||||||
def _auto_init(self):
|
def _auto_init(self):
|
||||||
res = super(Repository, self)._auto_init()
|
res = super(Repository, self)._auto_init()
|
||||||
tools.create_unique_index(
|
tools.create_unique_index(
|
||||||
self._cr, 'runbot_merge_unique_repo', self._table, ['name', 'project_id'])
|
self._cr, 'runbot_merge_unique_repo', self._table, ['name'])
|
||||||
return res
|
return res
|
||||||
|
|
||||||
class Branch(models.Model):
|
class Branch(models.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user