Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1048558-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1048558 in OpenERP Addons: "[Trunk] Import payment Line : Multi-company 
-> name constraint"
  https://bugs.launchpad.net/openobject-addons/+bug/1048558

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1048558-mma/+merge/123521

Hello,

    I Have set company_id in constraints for for multi company and fix the 
issue lp:1048558

Thanks,
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1048558-mma/+merge/123521
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1048558-mma.
=== modified file 'account_payment/account_payment.py'
--- account_payment/account_payment.py	2012-07-25 11:39:00 +0000
+++ account_payment/account_payment.py	2012-09-10 10:33:31 +0000
@@ -342,7 +342,7 @@
         'date': _get_date,
     }
     _sql_constraints = [
-        ('name_uniq', 'UNIQUE(name)', 'The payment line name must be unique!'),
+        ('name_uniq', 'UNIQUE(name,company_id)', 'The payment line name must be unique!'),
     ]
 
     def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_scheduled, currency=False, company_currency=False, context=None):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to