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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With