İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

create a module "password"

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
modulecreationcreatenewmodulenewtab
2 Cevaplar
8847 Görünümler
Avatar
Quentin

I would like to make a simple module allowing to the customer to add his passwords in the database.

Firstly, as beginner in OpenERP programming, I would like just to do a module where I can associate to a name : an username, a password, a IP/Hostname, a comment.

I programmed like the following but it's not working, I have the error : ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

I read and I tried lots of things about this error but I didn't fix it.

my "password.py" :

from osv import osv
from osv import fields
class password(osv.osv):
 "'password Class"'

    _name='password'
    _columns=
    {
            'name':fiels.char("Name",size=128),
            'user':fields.char("Username",size=128),
            'host':fields.char("IP/HostName",size=128),
            'pass':fields.char("Password",size=128),
            'com':fields.char("Comment",size=128),            
    }
password()

my "password_view.xml ":

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

<openerp>
    <data>
        <record id="password_tree_view" model="ir.ui.view">
           <field name="name">password.tree</field>
               <field name="model">password</field>
               <field name="arch" type="xml">
                   <tree string="Password Tree" version="1.0">
                       <field name="name"/>
               <field name="user"/>
                       <field name="host"/>
                       <field name="pass"/>
                       <field name="com"/>
                   </tree>
            </field>
        </record>
        <record id="password_action" model="ir.actions.act_window">
            <field name="name">password</field>
            <field name="res_model">password</field>
            <field name="view_type">tree</field>
        </record>
    </data>
</openerp>

my __init__.py is empty

and my __openerp__.py :

{
    'name': 'Password module',
    'version': '1.0',
    'category': 'Partner/Customer Management',
    'description': """""",
    'author': '',
    'website': '',
    'depends': ['base'],
    'data': ['password/password_view.xml'],

    'installable': True,
    'auto_install': False,
    'application': False,
}

Thanks for your help !

0
Avatar
Vazgeç
Avatar
Ghanshyam Prajapati
En İyi Yanıt
  • Remove version="1.0" from tree view and then update your module password.

  • Replace from osv import osv and from osv import fields with from openerp.osv import osv, fields

  • Add import password in __init__.py

Now check your problem is solved or not if not then try following,

Make Form view of your object,

        <record id="password_form_view" model="ir.ui.view">
           <field name="name">password.form</field>
               <field name="model">password</field>
               <field name="arch" type="xml">
                   <form string="Password Form" version="7.0">
                       <field name="name"/>
                       <field name="user"/>
                       <field name="host"/>
                       <field name="pass"/>
                       <field name="com"/>
                   </form>
            </field>
        </record>

   <record id="password_action" model="ir.actions.act_window">
        <field name="name">password</field>
        <field name="res_model">password</field>
        <field name="view_type">tree</field>
        <field name="view_mode">tree,form</field>
    </record>

then update your module password

Hope it work for you.

1
Avatar
Vazgeç
Quentin
Üretici

Thanks Ghanshyam Prajapati, I don't have anymore error ! It's working (by adding the form view).

Avatar
Quentin
Üretici En İyi Yanıt

Ok, so it's working. During this week I was looking for a way to add a tab to the customer's notepad where he could see his username, password, etc. I didn't find. When I modify my res_partner_view.xml :

<notebook colspan="4">
    <page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus"> 
     [..................................]                               
    </page>
    <page string="Internal Notes">
     [..................................]
    </page>
    <page string="Sales & Purchases">
     [..................................]
    </page>
    <!-- The History page becomes visible as soon as there is something to display inside -->
    <page string="History" name="page_history" invisible="True">
    [..................................]
    </page>
    <page string="Password">
    [..................................]
     </page>
</notebook>

It doesn't change anything.

And in this tab I would like have the same view that in my password_view. A line with : Name, Username, host, password and comment but one time more it's not working.

Thanks

1
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
How i can create module openerp 7 / Odoo 8 ? Çözüldü
module create newmodule new openerp
Avatar
Avatar
Avatar
Avatar
Avatar
17
Nis 23
70363
What is the best way of getting started with openERP?
create newmodule
Avatar
Avatar
1
Haz 15
5820
Error "Invalid XML for View Architecture" in custom form view Çözüldü
module newmodule
Avatar
Avatar
Avatar
Avatar
Avatar
5
Oca 24
16905
Invalid XML for View Architecture , problem with my new module
module newmodule
Avatar
Avatar
Avatar
Avatar
4
Mar 15
6511
OpenERP module xml ValidateError
module newmodule
Avatar
Avatar
1
Mar 15
8170
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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