Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

openerp coloum relation does n't exist..

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
1 Răspunde
8316 Vizualizări
Imagine profil
charlesraj

hi . i create a model named x_customer it has two field x_custprice and x_custproduct and creating the form view,tree view for this. while entering values to this field an error message is shown like this.

ProgrammingError: column "x_custprice" of relation "x_customer" does not exist LINE 1: insert into "x_customer" (id,"x_custprice","x_custproduct",c...

please help me to find the problem

0
Imagine profil
Abandonează
sridhar

update ur code here or clear error message show me.

charlesraj
Autor

OpenERP Server Error Client Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\controllers\main.py", line 1129, in call_kw File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\controllers\main.py", line 1121, in _call_kw File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 43, in proxy File "C:\Program Files\OpenERP 7.0-2013

charlesraj
Autor

Server Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 90, in send File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\netsvc.py", line 293, in dispatch_rpc File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py", line 188, in execute_kw File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py"

charlesraj
Autor

ProgrammingError: column "x_custprice" of relation "x_customer" does not exist LINE 1: insert into "x_customer" (id,"x_custprice","x_custproduct",c... ^

sridhar

send ur xml file and py file

charlesraj
Autor

Tree view. <?xml version="1.0"?> <tree string="Purchase Order" version="7.0">

       <field name="x_custproduct"/>
       <field name="x_custprice"/>
            </tree>
charlesraj
Autor

Form view. <?xml version="1.0"?> <form string="Purchase Order" version="7.0"> <group> <field name="x_custproduct"/> <field name="x_custprice" /> </group> </form>

charlesraj
Autor

i did n't have the py file.

sridhar

dont having py means how it will work

charlesraj
Autor

i just create a new model, then create 2 fields then add it under to a menu. Edited the corresponding views and add the field names to it ( above mentioned form view and tree view).

sridhar

in purchase order which place do u want this fields...

charlesraj
Autor

i dont want these in purchase order. I just created it as a new module..

sridhar

that means no inheritance correct.

charlesraj
Autor

here no relation with inheritance. just created a UI for adding product, price , it will be displayed , product will be listed under the product. But cant able to save. At that time the above mentioned error will be displayed

sridhar

i think concept is wrong u didn't inherit means how it will work... u doing a which module, product or purchase...

charlesraj
Autor

products..

Imagine profil
sridhar
Cel mai bun răspuns
create the module like this,

    {
        'name': 'Inheritance Error Solving',
        'version': '1.1',
        'category': 'Generic Modules',
        'description': """
        Product master two field adding
           """,
        'author': 'Sridhar',
        'depends': ['base','product'],
        'update_xml': ['product_inheritance_view.xml'],
        'installable': True,
        'active': False,
    } 

save this file __openerp__.py
import time
from datetime import datetime, timedelta
from openerp.osv import fields, osv
from tools.translate import _


class product_inheritance(osv.osv):
    _inherit = 'product.product'
    _columns = {
        'x_custproduct':fields.char('Product',size=8),
        'x_custprice':fields.integer('Price'),

    }

product_inheritance()
save this file as product_inheritace.py

<?xml version="1.0"?>
<openerp>
    <data>
    <record model="ir.ui.view" id="product_order_formss">
        <field name="name">product.product.form</field>
        <field name="model">product.product</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="product.product_normal_form_view"/>
        <field name="arch" type="xml">
            <field name="name" position="after">
                <group>
            <field name="x_custproduct"></field>
            <field name="x_custprice"></field>
            </group>
            </field>
        </field>
    </record>
    </data>
</openerp>
save this file as product_inheritance_view.xml it will work 
finally __init__.py in this py file add the line

import product_inheritance

dont do base file if do base file means it make error so inherit the file and do ur customization.
1
Imagine profil
Abandonează
charlesraj
Autor

thanks....

sridhar

vote me for my future reference...

charlesraj
Autor

sir i need another help.

charlesraj
Autor

do you help me in my new question

sridhar

ask me... answer correct means put right mark.

charlesraj
Autor

ok. question is posted.

Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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