openerp

在Windows下调试Odoo

半世苍凉 提交于 2019-12-02 22:30:38
依赖处理<A NAME="dependent"> </A> 安装postgresql ( http://www.postgresql.org/download/windows/) 安装PG的Python驱动,psycopg2-2.6.0.win-amd64-py2.7-pg9.4.1-release ( https://pypi.python.org/pypi/psycopg2/2.6) 安装python的VC编译器,VCForPython27 ( http://www.microsoft.com/en-us/download/details.aspx?id=44266) 安装windows系统API的访问库,pywin32-219.win-amd64-py2.7 ( http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/) 下载并安装目录访问库, python_ldap‑2.4.19‑cp27‑none‑win_amd64.whl ( http://www.lfd.uci.edu/~gohlke/pythonlibs/) 下载并安装PDF处理库,reportlab-3.1.44-cp27-none-amd64.whl ( http://www.lfd.uci.edu/~gohlke/pythonlibs

Inheritance in openERP (odoo)

放肆的年华 提交于 2019-12-02 21:28:12
I am new in openERP and have an interview. Please explain the idea of different types of inheritance in openERP, i think it total 3 types. please explain it in very simple way from the perspective of interview. P.S: I am familiar with the concept of simple inheritance. Inheritance : Inheritance mechanism is used to create idea of re usability.there re usability means that reuse the code of the parent class in any Object Oriented Programming. Advantages : Reduce code redundancy. Provides code reusability. Reduces source code size and improves code readability. Code is easy to manage and divided

How do I save one piece of data in two databases using OpenERP?

五迷三道 提交于 2019-12-02 20:21:29
问题 When I want to edit code in OpenERP, is it possible to save one piece of data in two databases where the fields have the same names in both tables. 回答1: Yes it is quite possible if you know the database but let me warn you this is very bad idea cause it is very risky and all rule of Resistance layer (ORM) will be violated. 回答2: What are you actually trying to do?? If you are trying to synchronize, then use the module base_synchro . The module is not complete. You have to do your own

OpenERP specify multiple view references on “view_id”

允我心安 提交于 2019-12-02 19:49:50
I extended "hr.employee" class. (Inherited and gave the same name to the new one). I defined two views (tree and form) and a menu: <record model="ir.ui.view" id="my_employee_tree"> <field name="name">hr.employee.tree</field> <field name="model">hr.employee</field> <field name="arch" type="xml"> ... </field> </record> <record id="view_my_hr_employee_form" model="ir.ui.view"> <field name="name">hr.employee.form</field> <field name="model">hr.employee</field> <field name="arch" type="xml"> ... </field> </record> <record model="ir.actions.act_window" id="action_my_hr_employee_seq"> <field name=

How to Get the ID field value in Odoo [duplicate]

流过昼夜 提交于 2019-12-02 17:50:51
问题 This question already has an answer here : How do I get the value from a form field using Odoo? (1 answer) Closed 4 years ago . I'm new in Odoo 8 and have some difficulties getting the ID value of a object for example the ID field value of hr.employee, can you give me some sample in this matter 回答1: Please read the Official Doc for v8.0 , it will give you clear idea. For note, if your are using New API then you just directly create model_object and fetch using model_obj.id As on your example

PostgreSQL won't start: “server.key” has group or world access

a 夏天 提交于 2019-12-02 14:55:12
Whenerver I start PostgreSQL using command: $ sudo /etc/init.d/postgresql start Pg doesn't start up. The error reported is: * Starting PostgreSQL 8.4 database server * The PostgreSQL server failed to start. Please check the log output: 2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access 2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other". ... and when I try to access psql as the postgres user with: $ sudo su postgres $ psql it gives me an error:

How to Get the ID field value in Odoo [duplicate]

泄露秘密 提交于 2019-12-02 13:00:56
This question already has an answer here: How do I get the value from a form field using Odoo? 1 answer I'm new in Odoo 8 and have some difficulties getting the ID value of a object for example the ID field value of hr.employee, can you give me some sample in this matter Bazzinga... Please read the Official Doc for v8.0 , it will give you clear idea. For note, if your are using New API then you just directly create model_object and fetch using model_obj.id As on your example HrEmployee = self.env['hr.employee'] employee_id = HrEmployee.id 来源: https://stackoverflow.com/questions/32754056/how-to

How do I save one piece of data in two databases using OpenERP?

断了今生、忘了曾经 提交于 2019-12-02 11:10:51
When I want to edit code in OpenERP, is it possible to save one piece of data in two databases where the fields have the same names in both tables. Yes it is quite possible if you know the database but let me warn you this is very bad idea cause it is very risky and all rule of Resistance layer (ORM) will be violated. What are you actually trying to do?? If you are trying to synchronize, then use the module base_synchro . The module is not complete. You have to do your own customization in that module 来源: https://stackoverflow.com/questions/11424880/how-do-i-save-one-piece-of-data-in-two

Could not display Selected Image in Odoo 9

帅比萌擦擦* 提交于 2019-12-02 09:01:09
I have problem with image loading in product.template form view. When i upload a new image it is uploading and displaying correctly in product kanban view , but in product form view it is giving me error Could not display Selected Image as displaying in attached image Someone please tell me about why it is happening. I'll be very thankful .. 来源: https://stackoverflow.com/questions/37987347/could-not-display-selected-image-in-odoo-9

Odoo throws a MissingError On treeview Second line record

百般思念 提交于 2019-12-02 08:08:01
How can i solve this error Odoo throws a MissingError on TreeView Second line button when clicked . The first Record line works but i need such that for each record on the tree the code below will be able to pass the contexts and open the appropriate view . Kindly assist Here is the code called on the button @api.multi def action_four_weeks_schedule_form(self): self.ensure_one() res = {} ids = self._ids cr = self._cr uid = self._uid context = self._context.copy() for id in self.browse(self.ids): print 'id in ++++ ' , id order_obj = self.pool.get('ratecard.multiple').browse(cr,uid,ids)[0]