Account_move_line : Maturity date is not displayed on onchange of partner_id, even if payment term is defined in related partner.

Bug #588146 reported by eda(Axelor)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
JMA(Open ERP)

Bug Description

Here pb is in onchange_partner_id method . In this method compute method of payment term is called
and in this method instead of payment term id, payment term line id is passed as parameter,
which is wrong.

Just a little modification as defined in below patch :

=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2010-03-04 11:50:58 +0000
+++ account/account_move_line.py 2010-06-01 06:20:23 +0000
@@ -474,7 +474,7 @@

         if part.property_payment_term and part.property_payment_term.line_ids:
             payterm = part.property_payment_term.line_ids[0]
- res = self.pool.get('account.payment.term').compute(cr, uid, payterm.id, 100, date)
+ res = self.pool.get('account.payment.term').compute(cr, uid, part.property_payment_term.id, 100, date)
             if res:
                 val['date_maturity'] = res[0][0]
         if not account_id:

Related branches

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2746 <email address hidden>.
Thanks.

Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
importance: Undecided → Medium
milestone: none → 5.0.11
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.