Skip to Content
Menu
This question has been flagged
1 Reply
11747 Views

Question:

I have inherited the res.partner model because i need all the features of res.partner that's why i inherited the res.partner model in my custom module.I assure that i got all the features what i presume before.But the problem is when my module is installed while i can't able to install some other modules .If i try to install like point of sale while the server raise the error.The error is: "Record does not exist or has been deleted."

python code:

 class Residents(models.Model):
  _inherit = 'res.partner'
  _name = "residents.detail"

xml code:

<record id = "add_field_view_partner_form" model = "ir.ui.view">
   <field name = "name">add.fields</field>
   <field name = "model">residents.detail</field>
          <field name = "arch" type = "xml">
                  <form string = "residents">
                  <sheet>
                       <field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}'/>
                 
                       <field name="name" default_focus="1" placeholder="Name" />                              
                  </sheet>
                 </form>
           </field>
</record >


Error:

ParseError: "Record does not exist or has been deleted. None" while parsing /home/sibi/odoo/workspace/odoo-9.0c-20170717/openerp/addons/auth_signup/auth_signup_data.xml:6, near <record id="default_template_user" model="res.users"> <field name="name">Template User</field> <field name="login">portaltemplate</field> <field name="active" eval="False"/> <!-- Avoid auto-including this user in any default group, just like a typical portal member --> <field name="groups_id" eval="[(6, 0, [ref('base.group_portal')])]"/> <!-- allow signuped users to have a alias --> <field name="alias_name">_usertemplate</field> </record>
Avatar
Discard
Best Answer

Hey,

The problem come from the heritage of res.partner. I don't know why, but a heritage from res.partrner to a new object doesn't wor (me it was with a many2many field)

 Just : 

class Residents(models.Model):

  _inherit = 'res.partner'




Avatar
Discard
Related Posts Replies Views Activity
1
Jun 18
5858
0
Aug 17
3179
0
Jul 17
2522
2
Jul 16
7403
0
May 16
2191