Odoo Help

Welcome!

This community 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.

0

Inherits res_partner > partner_id error create action

By
Joaquim lozano
on 5/6/16, 9:24 AM 205 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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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