openerp

How to find (and maybe extend) the list of available field names for reports in the OpenERP server sourcecode?

别说谁变了你拦得住时间么 提交于 2019-12-07 20:06:33
问题 I am looking for a reliable way to get names of available data fields when creating or extending OpenOffice/LibreOffice report files. I already do know many field names from the existing reports. I also can lookup the field names in the module definitions. For example in the file addons\base\res\partner\partner.py I find a field list for the partner model: class res_partner(osv.osv): _columns = { 'name': fields.char('Name', size=128, required=True, select=True), 'date': fields.date('Date',

How to get field lists using the OpenERP Report Designer Addon for OpenOffice / LibreOffice

空扰寡人 提交于 2019-12-07 18:01:59
问题 I want to add fields to the reports and use them in python functions and do some coding inside the reports. I am using version 6.0.3 of OpenERP, I keep getting an empty field list. This is what the "add field" command on the addon should look like: I am using the "OpenERP Report Designer" addon for OpenOffice / LibreOffice. The "Add a field" command in the OpenOffice addon does not work for me. It shows an empty field list. I tried in 6.0.3 on a linux and a windows server and also 6.0.2 on a

Show successfully message after close wizard in odoo v9

孤街醉人 提交于 2019-12-07 15:17:23
问题 What is best solution for display successfully message after close wizard in odoo 9? Any small popup in right corner? 回答1: It's not a proper answer to your question but i have faced the same problem, the problem was that i have to display "successfully submitted" message when user click on submit button on a wizard. and i have done this as my solution i have done this i have created one class for the wizard from odoo import api, fields, models, _ class CustomPopMessage(models.TransientModel):

Odoo 10 - Adding an Order Line Tree Field to Custom Module

霸气de小男生 提交于 2019-12-07 15:09:03
问题 I would like to add an order line field with a tree view much like those found in the Sales and Repairs modules. In those modules, there is a nice section at the bottom of the form that allows you to enter products and prices in a list. I believe those are handled by the sale.order.line and mrp.repair.line models. Here is a picture of what I am talking about: Sale Order Lines My goal is to get something like this into my own custom module. I have tried: Adding a One2many field with sale.order

Changing the Filename of a Uploaded Binary File Field

妖精的绣舞 提交于 2019-12-07 07:16:24
问题 I'm using Odoo8 I have a question I used the fields.binary to upload a file/s in Odoo. But when I try to download it the filename of the uploaded file is the model name. Is it possible to change the filename of the file? And second the filters attribute in fields does not work. 回答1: My Solution to this matter/problem, create first a compute field and its function .py filename = fields.Char('file name', readonly = True,store = False,compute ='legacy_doc1_getFilename') @api.one def legacy_doc1

Removing the panel that appears on the right hand side of OpenERP main page

不想你离开。 提交于 2019-12-07 03:57:26
How can we remove the panel that appears on right hand side of openERP's main page ,which shows ACTIONS ,LINKS,OTHER OPTIONS.From which file in openERP web server can we remove that. Thanks, Sameer serch for main_sidebar in web/addons/openerp/controllers/templates/form.mako you can hide the toolbar using this css file: web/addons/openerp/static/css/screen.cs 来源: https://stackoverflow.com/questions/8148821/removing-the-panel-that-appears-on-the-right-hand-side-of-openerp-main-page

How to disable the close button in GTK?

∥☆過路亽.° 提交于 2019-12-07 02:41:26
I have created a One Time Password mechanism in OpenERP 6.0.3's GTK client. After login the GTK client shows a window to enter the One Time Password as below. Now I want to disable the close button at the top left of the window. How can I do that? I am using python and the code to create the window is: EDIT class sms_auth(gtk.Dialog): def run_thread(self): code=self.textbox_code.get_text() self.result = rpc.session.rpc_exec_auth('/object', 'execute', 'res.users', 'check_code', code) return self.result def run(self): self.show_all() res = super(sms_auth, self).run() result = None if res == gtk

how to change the default field value from another model in odoo

假如想象 提交于 2019-12-07 02:11:27
How can I change the status field default value of formdownload model record to true when a value is picked in form_serial_no_id Many2one field of plot.allocate model? I have written a method to override odoo create function of the PlotAllocation model but it's still not changing the value of status field to true. Instead, it goes to the override function of create method in the parent class(plot.allocate). Anytime I save record, control goes to the create function of the parent method and ignore the create function of class PlotAllocation that inherit the plot.allocate model. How can I fix

Which RPC Library is best and Official for Openerp?

百般思念 提交于 2019-12-06 17:27:08
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 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 xmlrpclib . oerplib and odoorpc are from the same author, and I believe that the former is an older version

how to set name of multiple textbox in openerp using qweb template engine?

让人想犯罪 __ 提交于 2019-12-06 16:48:05
问题 Here is my code: <tr t-foreach="keyword" t-as="item"><td><t t-esc="item_value"/></td><td><input type="text" name=""/></td></tr> So here, Textbox are generated dynamically. Now I want to set textbox name to the value that is generated on <t t-esc="item_value"/> 回答1: To set the text box name to item_value you need to use the t-att attribute: <input type="text" t-att-name="item_value"/> Hope this helps! 来源: https://stackoverflow.com/questions/21778744/how-to-set-name-of-multiple-textbox-in