奥杜9c。列表视图无法加载

时间:2019-03-20 14:12:59

标签: odoo odoo-9

尝试在Odoo中打开视图时收到错误。早期起泡效果很好。我添加了一些数据。

今天,我尝试再次执行此操作并收到错误消息:

  

错误

     

无法加载列表视图

型号:

class partner_advert(models.Model):
    _name = 'pr_filials.partner_advert'

    name = fields.Char(string="Name")
    image = fields.Binary(string="Logo", required=True)
    adv_banner_data_ids = fields.One2many('pr_filials.adv_banner_data', 'partner_advert_id', 'Related advertising banners')
    landing_page_ids   = fields.One2many('pr_filials.landing_page', 'partner_advert_id', 'Related advertising pages')

观看次数:

<menuitem id="partner_advert_menu" name="Advertising partners" parent="advert_pages_menu" action="partner_advert_list_action"/>
<record model="ir.actions.act_window" id="partner_advert_list_action">
    <field name="name">Advertising partners</field>
    <field name="res_model">pr_filials.partner_advert</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>
    <field name="help" type="html">
        <p class="oe_view_nocontent_create">Add advertising partner
        </p>
    </field>
</record>
<record model="ir.ui.view" id="partner_advert_tree_view">
    <field name="name">partner_advert.tree</field>
    <field name="model">pr_filials.partner_advert</field>
    <field name="arch" type="xml">
        <tree string="Advertising partners list">
            <field name="id"/>
            <field name="name" string="Name"/>
        </tree>
    </field>
</record>
<record model="ir.ui.view" id="partner_advert_form_view">
    <field name="name">partner_advert.form</field>
    <field name="model">pr_filials.partner_advert</field>
    <field name="arch" type="xml">
        <form string="Advertising partner">
            <sheet>
                <group>
                    <field name="name" string="Name"/>
                </group>
            </sheet>
        </form>
    </field>
</record>

其他字段已被删除。但是,即使使用单个字段“名称”,该视图也不起作用。

当我尝试使用其他模型更改pr_filials.partner_advert时,一切正常。

您能帮我吗?

PS:

  

pr_odoo_v9 =#从public.pr_filials_partner_advert;中选择计数(id);

     

计数

 3 (1 row)
     

pr_odoo_v9 =#

0 个答案:

没有答案