Merge lp:~openerp-dev/openobject-addons/6.0-opw-381849-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-381849-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
warning/warning.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-381849-ado
Reviewer Review Type Date Requested Status
Amit Dodiya (OpenERP) (community) Needs Resubmitting
Jean-Christophe VASSORT (community) Needs Fixing
Naresh(OpenERP) (community) Approve
nel Pending
Review via email: mp+90088@code.launchpad.net

Description of the change

Hello,

[FIX] In warning module onchange_partner_id has some re assignation of values"

Thanks,
Amit Dodiya

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Jean-Christophe VASSORT (jc-vassort) wrote :

In parent class, on account/invoice.py file, onchange_partner_id method signature is like this:

def onchange_partner_id(self, cr, uid, ids, type, partner_id,\
            date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False):

I think it is better to not forget the company_id parameter in the super() function, and wrote:

result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,
            date_invoice=date_invoice, payment_term=payment_term, partner_bank_id=partner_bank_id, company_id=company_id)

What do you think about this ?

review: Needs Fixing
5106. By Xavier ALT

[MERGE] OPW 16328 - do not request write off when generating fy opening entries

5107. By Xavier ALT

[MERGE] OPW 382063 - account fiscal year closing: fix default date in opening entries

5108. By Xavier ALT

[MERGE] OPW 279130 - translate errors raised inside product_id_change (sale/purchase) dep. on user lang., not partner lang.

5109. By Xavier ALT

[MERGE] OPW 51075 - account.move.line: reconcile_partial() error msg when lines are already reconciled

5110. By Xavier ALT

[MERGE] OPW 51189 - on invoice 'refund', keep original salesman and fiscal position

5111. By Xavier ALT

[MERGE] OPW 18001: do not lock-out user when payment.order is 'done', allow it to cancel it

  - When 'Payment Order' is in 'done' state, the workflow is frozen and the
    user is unable to cancel it (required in case bank refuse the payment).
    This allow to cancel the payment order except when some lines are already
    imported in a bank statement (i.e payment done bank-side: modification
    forbidden).

5112. By Xavier ALT

[MERGE] OPW 18001: l10n_ch: create_date wizard was not saving file inside wizard

5113. By Xavier ALT

[MERGE] OPW 381524 - on picking invoicing, do not invoice scrapped products

5114. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5115. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5116. By nel

[MERGE]

5117. By nel

[MERGE]

5118. By nel

[MERGE]

5119. By nel

[MERGE]

5120. By nel

[MERGE]

5121. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5122. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5123. By Jean-Christophe VASSORT

[MERGE] OPW 51090 Freight tax not calculating automatically on invoice

5124. By Amit Dodiya (OpenERP)

[FIX] In warning module onchange_partner_id has some re assignation of values

Revision history for this message
Amit Dodiya (OpenERP) (ado-openerp) wrote :

Hello,

The code is changed as per your suggestion.

Regards,
Amit

review: Needs Resubmitting

Unmerged revisions

5124. By Amit Dodiya (OpenERP)

[FIX] In warning module onchange_partner_id has some re assignation of values

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'warning/warning.py'
2--- warning/warning.py 2011-01-14 00:11:01 +0000
3+++ warning/warning.py 2012-03-12 11:00:38 +0000
4@@ -138,7 +138,7 @@
5 'message': message
6 }
7 result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,
8- date_invoice=False, payment_term=False, partner_bank_id=False)
9+ date_invoice, payment_term, partner_bank_id, company_id)
10
11 if result.get('warning',False):
12 warning['title'] = title and title +' & '+ result['warning']['title'] or result['warning']['title']