Merge lp:~openerp-dev/openobject-addons/trunk-bug-1048558-mma into lp:openobject-addons

Proposed by Mayur Maheshwari(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1048558-mma
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account_payment/account_payment.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1048558-mma
Reviewer Review Type Date Requested Status
Purnendu Singh (OpenERP) (community) Approve
Review via email: mp+123521@code.launchpad.net

Description of the change

Hello,

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

Thanks,
Mayur

To post a comment you must log in.
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

Seems ok

Thanks,
Purnendu Singh

review: Approve

Unmerged revisions

7388. By Vincent Renaville

[FIX]account_payment :set a company_id in sql constraints for multi company lp:1048558

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_payment/account_payment.py'
2--- account_payment/account_payment.py 2012-07-25 11:39:00 +0000
3+++ account_payment/account_payment.py 2012-09-10 10:33:31 +0000
4@@ -342,7 +342,7 @@
5 'date': _get_date,
6 }
7 _sql_constraints = [
8- ('name_uniq', 'UNIQUE(name)', 'The payment line name must be unique!'),
9+ ('name_uniq', 'UNIQUE(name,company_id)', 'The payment line name must be unique!'),
10 ]
11
12 def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_scheduled, currency=False, company_currency=False, context=None):

Subscribers

People subscribed via source and target branches

to all changes: