PostgreSQL MAKE NO FIELD IN THE DATABASE
HOLA COMUNIDAD:
The following problem happens to me to want to keep a record in the database
data, and I was looking in postgres and I do not generate columns
x_placa, x_marca en la tabla modulo_autos:
Environment Information :
System : Windows-
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : es_CO.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.10
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "netsvc.pyo", line 245, in dispatch
File "netsvc.pyo", line 74, in __call__
File "service\
File "osv\osv.pyo", line 58, in wrapper
File "osv\osv.pyo", line 119, in execute
File "osv\osv.pyo", line 111, in execute_cr
File "osv\orm.pyo", line 2842, in create
File "sql_db.pyo", line 77, in wrapper
File "sql_db.pyo", line 122, in execute
ProgrammingError: column "x_modelo" of relation "modulo_autos" does not exist
LINE 1: insert into "modulo_autos" (id,"x_
This is the Python code:
from osv import osv, fields
class modulo_
_name = 'modulo.autos'
_auto = 'False'
_columns = {
'x_placa': fields.
'x_marca': fields.
'x_modelo': fields.
}
modulo_autos()
CODE XML:
<terp>
<data>
<record model="ir.ui.view" id="view_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
<form string=
<!--<field name="assumpte" select="1">-->
<field name="x_placa" required="1"/>
<field name="x_marca"/>
<field name="x_modelo"/>
<!--</field>-->
</form>
</field>
</record>
<record model="ir.ui.view" id="view_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
<tree string=
<!--<field name="assumpte">-->
<field name="x_placa" required="1"/>
<field name="x_marca"/>
<field name="x_modelo"/>
<!--</field>-->
</tree>
</field>
</record>
<record model="
<field name="name"
<field name="res_
<field name="view_
<field name="view_
</record>
<menuitem name="GESTION VEHICULOS/
id="menu_
</data>
</terp>
I can not find the solution to this problem thanks in advance
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Nestor Diaz for more information if necessary.