openerp

How do I check if xml-rpc are working on OpenERP 7?

孤者浪人 提交于 2019-12-08 06:35:57
问题 I'm trying to figure out if my server is accepting or not xmlrpc request. What I know is that when I try to access http://my_ip:8069/xmlrpc/common or http://my_ip:8069/xmlrpc/object on my browser I get a "File not found error". Is that what is expected? Do I have to start my server with any flag to start xml-rpc suport? Here is my openerp-server.conf admin_passwd = my_pass db_host = False db_port = False db_user = openerp db_password = False addons_path = /opt/openerp/v7/addons,/opt/openerp

OpenERP How to make a button invisible when datetime field != date today

若如初见. 提交于 2019-12-08 06:24:02
问题 In python, I have the following field: 'transaction_date': fields.datetime('Transaction Date') In XML, I have the following: <field name="transaction_date" readonly="True" /> <button name="set_void" string="Void" type="object" icon="gtk-cancel" groups="mymodule.mygroup" attrs="{'invisible':[('transaction_date','!=', datetime.now())]}" /> The attrs code above doesn't currently work but what I want to do is: be able to show the "Void" button only when the transaction_date field's date value =

How to debug python code in OpenERP 6.1

。_饼干妹妹 提交于 2019-12-08 04:54:43
问题 I am working with OpenERP 6.1 and i am not able to debug the python code by giving print statements in the python code. This was quite easy/possible with OpenERP 6.0 where we give the server path followed by module name and database name to debug the code. How can i achieve this with OpenERP 6.1?? Please help!! Thanks in advance.. 回答1: Hi friend you can install ipython. Using ipython you can debug openerp 6.1 at command prompt. kindly make sure that you have installed these packages before

Odoo - View customization with colspan or may be col

不羁的心 提交于 2019-12-08 04:45:03
问题 I am using odoo 10-e . Earlier i asked a question how can we merge two or multiple header to show one header against multiple fields Combine two fields heading in one2many . So answer was good and it worked but now i want to do some more customization in the one2many tree view in form. I want something like this. I want borders also in rows but for specific columns and also sub heading for only once per column. I tried to add div in odoo view but its not supported. I also tried to add it

How to make odoo custom stock move (odoo v8 and v9)

走远了吗. 提交于 2019-12-08 04:32:36
问题 I am creating a custom module. There is an one2many field. It has - quantity unit of measure source location destination location I need to transfer the product from source location to destination location. In odoo v8 I saw two functions - def do_detailed_transfer(self) and do_transfer() But do_detailed_transfer is not available in odoo v9. How can I create a custom stock move which will transfer products from source location to destination location for both versions? Thanks. 回答1: I am able

Which RPC Library is best and Official for Openerp?

人盡茶涼 提交于 2019-12-08 03:59:54
问题 I found some RPC Library (Python) for driving Odoo/OpenERP. openerplib oerplib erppeek xmlrpclib odoorpc Please let me know, which one is Best/Good/Official? Thanks in advance 回答1: openerplib is a PHP library, probably not what you want if you're planning to use Pyhton. xmlrpclib is Python standard library for XML-RPC. You can perfectly work with it, but it won't be the most pleasant library to work with. See the official docs for more details on it. The other libraries are wrappers around

Odoo javascript onclick event

烈酒焚心 提交于 2019-12-08 03:30:56
问题 Is it possible create my own button and this button click call javascript function? Like simple onclick javascript method? If the answer is yes, how can I do that? I want to use "Add an item" button or create my own button that calls the same function like I click on "Add an item" button. 回答1: First Create button where ever you want to create with some modifications. <button string="Click" custom="click"/> Then create one JS file that will contain following code. odoo.define('YOUR_MODULE

Inherit form view from a predefined module

主宰稳场 提交于 2019-12-08 02:14:53
问题 I want to create my own module which is an extension of sale.order . I want to have a form view which is like sale order view with few additional fields, My problem is that when I inherit the sale order view and add say three extra fields these fields comes by default in the Original Sale Order form view too. is this the default behaviour or am I doing something wrong ? What should I do to achieve what I want. 回答1: If you inherit the view and add some fields using 'xpath' , than it will

Tree view to be called through button in OpenERP-7

孤者浪人 提交于 2019-12-08 00:08:19
问题 I wanted to know that how may I call the tree view(of different records) through a button . Because returning form view is easy but when I tried to do exact thing for tree view it shows a list only. The scenario is that I have a search product form. Now when the search is generated,a domain of records is filled in the field. I want to add a button to call the tree view showing me the records present in that domain. I added a function to button but it showed me all the record in a list ,

How overwrite default function of a field in odoo new api

不问归期 提交于 2019-12-07 22:30:00
问题 I have a field that call a function to get default value (in module project_forecast): def default_user_id(self): return self.env.user if ("default_user_id" not in self.env.context) else self.env.context["default_user_id"] user_id = fields.Many2one('res.users', string="User", required=True, default=default_user_id) I create another module to inherit it and change default value of field user_id but it's not working without any error in log, how can I resolve this ? def default_user_id(self):