openerp

Can I inherit from a standard report in OpenERP?

巧了我就是萌 提交于 2019-12-04 14:55:25
I want to make changes to the purchase order report in OpenERP 6.1. Do I have to go in and make changes to the purchase module, or can I create a new module that will inherit the standard report and override some details. Don Kirkby You can't exactly inherit another report and just override some details, but you can replace a standard report and make all existing links to it launch your new report instead. Our zaber_purchase module contains some changes to the purchase order report that our users wanted. Here's the purchase_report.xml file that replaces the standard report with ours. <?xml

OpenERP : create new record ,one2many many2one relationship

孤街浪徒 提交于 2019-12-04 14:49:42
问题 I have created on2many field in class A and other field nombre (integer): 'Inventaire' : fields.one2many('class.b','id_classb'), 'nombre' : fields.integer('Nombre'), In class b : 'id_classb' : fields.many2one('class.a', 'ID_classA'), 'ql' : fields.integer('QL'), I want to create a function in class a that create records for object b according to the value of nombre field. for example if nombre =3 I should create 3 object of class b here is my function: def save_b(self, cr, uid, ids, field

How to uninstall manually openerp module

耗尽温柔 提交于 2019-12-04 12:07:31
问题 I have installed a module on openerp v7 that I would like to uninstall. Using the interface fails, i get an error during the uninstall process. Is there a 'manual' way to uninstall a module ? Is it sufficient to remove the module folder under addons/ or is there any other things to do, to make it in the cleanest way ? Here is the error I get when i try to uninstall a module through the interface: Client Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/openerp-7

how to group one2many list view inside another model in openerp 6.1?

青春壹個敷衍的年華 提交于 2019-12-04 11:54:23
In my sale.order, i have added a new one2many field sale_bom for showing the bill of material lines. Whenever i add a sale order line, if the product have a bill of material then its bom lines should be shown under the new field sale_bom. I found the way to group the sale_bom lines by sale_order_lines using context="{'group_by':'sale_order_line'}" in web client and gtk client of openerp v6.0.3 but it is not working in openerp v6.1 Is there any way to group in openerp v6.1 web client? in openerp6.1 webclient it is not possible to please use GTK client. or provide a link for the tree view in

How to create program for sending mail automatically from openerp using python

点点圈 提交于 2019-12-04 11:53:39
问题 How to create program for sending mail automatically from openerp using python? I have created openerp module. I am trying to send mail to a client, when client id is generated. In sale folder in sale.py. When convert lead into client, I want to send mail to client. So in sale.py. I have added following line of code. self.pool.get('email.template').send_mail(cr, uid, email_template_id, object_id,False, context=context) I am getting email_Template_id from email_template database. Explain what

How do I update other fields or another models from inside compute function?

邮差的信 提交于 2019-12-04 10:52:29
问题 There are 3 classes, sync.test.subject.a which has many2many relation with sync.test.subject.b which is inherited by sync.test.subject.c . sync.test.subject.b 's separated_chars field is populated through a compute function called _compute_separated_chars which is triggered by the change of sync.test.subject.b 's chars field. The role of sync.test.subject.c is basically to set chars by its own name so that _compute_separated_chars is triggered. The problem is I can't delete leftover records

installing woocommerce connector in odoo

六月ゝ 毕业季﹏ 提交于 2019-12-04 10:09:16
i want to connect woocommerce and odoo. i have problem with woocommmerce connector installation in Odoo. i got the woocommerce connector from https://github.com/OCA/connector-woocommerce . i have upload this module into addons folder in odoo.. When i tried to update the module list in odoo, i got this error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 537, in _handle_exception return super(JsonRequest, self)._handle_exception(exception). File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 574, in dispatch result = self._call

Docker.io init.d script not working on start container

こ雲淡風輕ζ 提交于 2019-12-04 09:21:08
问题 I've a container with odoo on it on the dir "/opt/odoo/". A init script on "/etc/init.d/odoo-server" #!/bin/bash ### BEGIN INIT INFO # Provides: odoo # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start openerp daemon at boot time # Description: Enable service provided by daemon. # X-Interactive: true ### END INIT INFO ## more info: http://wiki.debian.org/LSBInitScripts PATH=/sbin:/bin:/usr/sbin:/usr

How to browse or search One2many field in Odoo?

ぐ巨炮叔叔 提交于 2019-12-04 07:23:15
I've extended the 'account.analytic.account' model with a One2many field that references a second model with a One2many field. When I try to iterate through the second One2many field from the compute method it only lists records that have just been added. Previous records (which are visible on the interface) are not visible in code using the 'self' context until the parent record is saved. example: for line in self.One2manyField: #only gets here for records I add during current session, or all records if parent is saved #how can I see previously saved records? Here is the code: 1.) extended

Could not display Selected Image in Odoo 9

两盒软妹~` 提交于 2019-12-04 05:54:49
问题 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