How i can display customer balance on sale orders in odoo?
<p>I want to display <strong>customer balance</strong> in sale orders but don't know how to do that. Also i want to display customer's <strong>credit limit</strong> and <strong>next payment date</strong>. Anybody have idea how i can do that, Thanks in advance...</p>

<p>You can add it by related fields as follow.</p>

<p><strong>Balance Field :</strong></p>

<pre><code>customer_balance = fields.Float(related="partner_id.credit",string="Balance")
</code></pre>

<p><strong>Credit Limit</strong></p>

<pre><code>customer_credit_limit = fields.Float(related="partner_id.credit_limit",string="Credit Limit")
</code></pre>

<p>Thanks.</p>

python openerp odoo-8