Odoo Help

0

Inherits res_partner > partner_id error create action

By
Joaquim lozano
on 5/6/16, 9:24 AM 473 views

Hello, 

I encounter a problem I explain: I have a model 'Patient' inherits from res_partner I had a link to have visibility of the total charged to the patient the problem is that when I make up the field ' partner_id '  my link works but to create a record , the field must be filled partner_id.

I do not know how to fix the problem

<div class="oe_button_box" name="button_box">  
<field name="partner_id" attrs="{'invisible':1}" />
<button class="oe_stat_button" type="object" name="consultation_meeting" icon="fa-calendar">
<field string="Visite(s)" name="consultation_count" widget="statinfo" modifiers="{'readonly': true}"/>
</button>
<button type="action" class="oe_stat_button" id="invoice_button" icon="fa-pencil-square-o" name="205" context="{'search_default_partner_id':partner_id,'default_partner_id':partner_id}">
<div class="o_form_field o_stat_info">
<span class="o_stat_value">
<field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}" modifiers="{'readonly': true}"/>
</span>
<span class="o_stat_text"> Facturé </span>
</div>
</button>
</div>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/6/16, 9:24 AM
Seen: 473 times
Last updated: 5/6/16, 9:26 AM