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
update ur code here or clear error message show me.
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
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"
ProgrammingError: column "x_custprice" of relation "x_customer" does not exist LINE 1: insert into "x_customer" (id,"x_custprice","x_custproduct",c... ^
send ur xml file and py file
Tree view. <?xml version="1.0"?> <tree string="Purchase Order" version="7.0">
Form view. <?xml version="1.0"?> <form string="Purchase Order" version="7.0"> <group> <field name="x_custproduct"/> <field name="x_custprice" /> </group> </form>
i did n't have the py file.
dont having py means how it will work
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).
in purchase order which place do u want this fields...
i dont want these in purchase order. I just created it as a new module..
that means no inheritance correct.
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
i think concept is wrong u didn't inherit means how it will work... u doing a which module, product or purchase...
products..