Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I got this "LINE 1: ...partner"."picking_warn_msg" as "picking_warn_msg","res_partn..." error while inherit res.partner

my .py file is

class Suppiler(models.Model):

     _inherit = "res.partner"

     author= fields.Boolean(string='Author')

and xml file is

 <data>
    <record id="add_supplier_view_inherit" model="ir.ui.view">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <!--<field name="priority">100</field>-->
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='user_id']" position="before">
                <field name="author"/>
            </xpath>
        </field>
    </record>
    <record id="supplier_action" model="ir.actions.act_window">
        <field name="name">inherit_id</field>
        <field name="res_model">res.partner</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="help" type="html">
            <p class="oe_view_nocontent_create">
                click here to create new item!
            </p>
        </field>
    </record>
<menuitem name="suppler_menu" id="new_supplier" parent="custom_Top_menu" action="supplier_action"/>
</data>

i got this

LINE 1: ...partner"."picking_warn_msg" as "picking_warn_msg","res_partn...

as error message and i can't move forward with my project 'odoo' is not running at all

like image 734
Jiju Sebastian Avatar asked Oct 16 '22 15:10

Jiju Sebastian


1 Answers

if you are using pycharm try to directly update your module by giving -u your_module_name on edit configurations this may solve the problem,have a try

like image 66
Anand Mohan Avatar answered Nov 15 '22 05:11

Anand Mohan