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, api
class 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
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Регистрация| Related Posts | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
Inherit from inherited view
Решено
|
|
5
июн. 20
|
7429 | |
|
|
1
февр. 18
|
3814 | ||
|
|
1
апр. 16
|
5549 | ||
|
|
1
февр. 16
|
4048 | ||
|
|
1
февр. 16
|
7756 |
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