Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2632 Lượt xem

after the generate the set and get for my class entrprise and lanuch the odoo server ./odoo.py i have a bug the bug is filed not exist the get method is  

def get_ent_description(self):

return self.__ent_description


and  the definition in  the XML fil is


<record model="ir.ui.view" id="Entreprise_tree_view">

<field name="name">Entreprise.tree</field>

<field name="model">fs_calcul_cout_de_revient.entreprise</field>

<field name="type">tree</field>

<field name="arch" type="xml">

<tree string="tree_entreprise">

<field name="get_name(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_description(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_form_juridique(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_etablissement(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_rue(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_region(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_ville(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_pays(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_code_postal(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_telephone(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_fax(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_mail(fs_calcul_cout_de_revient.entreprise)"/>

<field name="get_ent_site(fs_calcul_cout_de_revient.entreprise)"/>

</tree>

</field>

</record>


help plz

Ảnh đại diện
Huỷ bỏ