Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Uncaught TypeError: object is not a function

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
1 Répondre
18408 Vues
Avatar
aci aisha

Uncaught TypeError: object is not a function

http://localhost:8069/web/js/web.assets_backend/aa4249b:3478

 

0
Avatar
Ignorer
Ankit H Gandhi(AHG)

Hello aci aisha, can you explain more details ?

Emipro Technologies Pvt. Ltd.

Provide more details.

aci aisha
Auteur

I created a custom module for project... Add a menu password & create view for password.. when i click on password this error occured?

Avatar
aci aisha
Auteur Meilleure réponse

This is my .py file...

from openerp.osv import fields, osv
#from datetime import datetime
#from gdata.data import Visibility
#from docutils.nodes import Invisible


class project_password(osv.osv):
    
    _name = 'project.password'
    
    _inherit = ['project.project','res.partner','res.users']
    
    _description = 'Password'
    
    _columns = {
        'name': fields.many2one('res.partner','Customer Name', domain=[('customer', '=', True)], required=True),
        'password1': fields.char('Password 1', required=True),
        'password2': fields.char('Password 2'),
        'password3': fields.char('Password 3'),
        'viewed_by1': fields.many2many('res.users','name'),
    }
project_password()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

 

& this is my .xml file,

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>


        <menuitem id="menu_project_password_sub" name="Password" parent="base.menu_main_pm"/>
        
        
         <record id="view_password" model="ir.ui.view">
            <field name="name">project.password.tree</field>
            <field name="model">project.password</field>
            <field name="arch" type="xml">
                <tree string="Password">
                      <field name="name"/>
                      <field name="password1"/>
                      <field name="password2"/>
                      <field name="password3"/>  
                </tree>
            </field>
       </record>
    
        <record id="view_password" model="ir.ui.view">
            <field name="name">project.password.form</field>
            <field name="model">project.password</field>
            <field name="arch" type="xml">
                <form string="Password">
                   <group>
                      <field name="name"/> 
                      <field name="password1"/>
                      <field name="password2"/>
                      <field name="password3"/>                
                  </group>                              
           <notebook>
              <page string="Viewers">
                  <kanban quick_create="false" create="true" delete="true">
                                    <templates>
                                        <t t-name="kanban-box">
                                            <div style="position: relative">
                                                <a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
                                                <div class="oe_module_vignette">
                                                    <img t-att-src="kanban_image('res.users', 'image_small', record.id.value)" class="oe_avatar oe_kanban_avatar_smallbox"/>
                                                    <div class="oe_module_desc">
                                                        <field name="viewed_by1">
                                                         <tree>
                                                           <field name="name"/>
                                                         </tree>
                                                        </field>
                                                    </div>
                                                </div>
                                            </div>
                                        </t>
                                    </templates>
                  </kanban>
              </page>
           </notebook>
                  
                </form>
            </field>     
       </record>

        <record id="project_password_action" model="ir.actions.act_window">
            <field name="name">Password</field>
            <field name="res_model">project.password</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>           
        </record>
        
        <menuitem action="project_password_action" id="menu_passwords" name="Password" parent="menu_project_password_sub"/>
    </data>
</openerp>

-1
Avatar
Ignorer
Akhil P Sivan

You have given the same record id for both tree and form views. Any problem with that?

aci aisha
Auteur

Let me try Akhil..Thanks

aci aisha
Auteur

Great Akhil.... Perfect Observation.. If u put it as an answer i will mark it as true & will give u 1 vote!!! Thanks again...

aci aisha
Auteur

But 1 more prblm occured... When i try to create a customer in this form it cause an error as follows, MissingError One of the documents you are trying to access has been deleted, please try again after refreshing.

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now