Modèle non trouvé : produit Contexte de l'erreur : Vue `produit_list` [view_id: 239, xml_id: n/a, model: produit, parent_id: n/a] None" while parsing file:/c:/program files (x86)/odoo 12.0/server/odoo/addons/gestion_des_stocks/views/views.xml:6, near <record model="ir.ui.view" id=">produit_list"> <field name="name">produit_list</field> <field name="model">produit</field> <field name="arch" type="xml"> <tree string="Liste des produits"> <field name="id_produit"/> <field name="nom_produit"/> <field name="Type_produit"/> <field name="quantite_produit"/> <field name="enter_produit"/> <field name="des_produit"/> </tree> </field> </record>
this is the models produit# -*- coding: utf-8 -*-import datetimefrom datetime import datefrom odoo import models, fields, apiclass Produit(models.Model):_name = 'produit'id_produit=fields.Integer("Identifiant du produit",required=True)nom_produit = fields.Char("Nom du produit ",required=True)Type_produit=fields.Selection([("mp","Matières première "),("pieces de rechange","Pièces de rechange"),("ot","Outile"),("kj","Matière semi finie")],help="La gamme ou le type du produit",required=True)quantite_produit = fields.Integer("Quantité", help="La quantite du produit disponible dans le stock",required=True)enter_produit = fields.Date("Date d'enter dans le stock",required=True)des_produit=fields.Char("Description")
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
really it's written like this
<record model="ir.ui.view" id=">produit_list">
<field name="name">produit_list</field>
<field name="model">produit</field>
<field name="arch" type="xml">
<tree string="Liste des produits">
<field name="id_produit"/>
<field name="nom_produit"/>
<field name="Type_produit"/>
<field name="quantite_produit"/>
<field name="enter_produit"/>
<field name="des_produit"/>
</tree>
</field>
</record>
I don't know why it's display like this in the context of the error
Why is there a '>' in your view id, try the following:
<record model="ir.ui.view" id="&produit_list">
<field name="name">produit_list</field>
<field name="model">produit</field>
<field name="arch" type="xml">
<tree string="Liste des produits">
<field name="id_produit"/>
<field name="nom_produit"/>
<field name="Type_produit"/>
<field name="quantite_produit"/>
<field name="enter_produit"/>
<field name="des_produit"/>
</tree>
</field>
</record>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Inherit from inherited view
Đã xử lý
|
|
5
thg 6 20
|
6729 | |
|
1
thg 2 18
|
3341 | ||
|
1
thg 4 16
|
4941 | ||
|
1
thg 2 16
|
3534 | ||
|
1
thg 2 16
|
7113 |
really it's written like this
<record model="ir.ui.view" id=">produit_list">
<field name="name">produit_list</field>
<field name="model">produit</field>
<field name="arch" type="xml">
<tree string="Liste des produits">
<field name="id_produit"/>
<field name="nom_produit"/>
<field name="Type_produit"/>
<field name="quantite_produit"/>
<field name="enter_produit"/>
<field name="des_produit"/>
</tree>
</field>
</record>
I don't know why it's display like this in the context of the error
see: https://www.youtube.com/watch?v=m7AZtSLv-wk&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO&index=3