odoo-8

TypeError(repr(o) + “ is not JSON serializable”) - Odoo v8

故事扮演 提交于 2019-12-12 02:46:13
问题 I have this method, which calls for a document associated with an invoice on Odoo v8. @api.multi def button_generate_wh_doc(self): context = self._context partner = self.env['res.partner'] res = {} for inv in self: view_id = self.env['ir.ui.view'].search([ ('name', '=', 'account.invoice.wh.iva.customer')]) context = self.env.context.copy() context.update({'domain':[( ('invoice_id','=',inv.id), ('type','=',inv.type), ('default_partner_id','=', partner._find_accounting_partner( inv.partner_id)

timezone incorrect in odoo log file

那年仲夏 提交于 2019-12-12 01:58:53
问题 In my country timezone is GMT+5.30,so I changed the timezone accordingly in preferences menu but in odoo log file the timezone is still GMT.How to change this? Config file, [options] ; This is the password that allows database operations: ; admin_passwd = admin db_host = localhost db_port = 5432 db_maxconn = 64 db_name = False db_user = openpg db_password = openpgpwd addons_path = C:\Users\odooGit\addons pg_path = C:\Program Files (x86)\OpenERP 7.0-20150922\PostgreSQL\bin xmlrpc = True xmlrpc

Create a record into many2many table using Web service API in odoo 8

删除回忆录丶 提交于 2019-12-12 01:36:06
问题 I need to create a record in mail_vote table(many2many) with fields message_id and user_id Using Web service API. I found a document here: https://www.odoo.com/documentation/8.0/reference/orm.html#openerp.models.Model.write . But i don't know how to use that in my code. Any solution please. 回答1: Below i am posting the code snippet for associating (6,0,[ids])] the Many2many record in product.attribute.line . In Php here i have used ripcord for this task. $existing_prodid = 59; $existing

How to migrate odoo 8 to odoo 10

折月煮酒 提交于 2019-12-12 01:24:46
问题 i want to migrate odoo 8 to odoo 10 with all settings and data in community edition, can someone please tell me about what steps I should follow or is there any module or other way which it could done automatically??? 回答1: For Database Migration please check https://github.com/OCA/OpenUpgrade For code migration you need to be aware for changelogs of odoo versions & you need to maintain that changes in you customized modules. 回答2: this is a tool under test to migrate code written in odoo7 to

How to skip demo data in Odoo instance

Deadly 提交于 2019-12-11 23:21:00
问题 I'm using Odoo on ubuntu server, I want to skip the demo data, I tried the following way, but it does'nt help me out. --without-demo=True Then I deleted the demo xml files in openerp.py for CRM module, but there is still demo data in customers field. Is there any other potential way to skip the demo data. Any input would be appreciated. 回答1: Use this parameter --without-demo=all Take into account that it requires the parameters -d (database) and -i (modules to install) 回答2: when you create a

How to print right-to-left report on odoo 8

十年热恋 提交于 2019-12-11 20:38:09
问题 I created a report in odoo 8 using RML, everything is good. but when i print the report, caracteres are printed from left to right. I tried with drawRightString but nothing does appears on the PDF. I used openerp-rtl module but I noticed no changes. What can i do to print it in RTL mode. 回答1: Generally people working on Right to left text on Arbic Language. so in this case you just install the below python-bidi package : https://pypi.python.org/pypi/python-bidi/ python-bidi package is helpful

How to achieve the following scenario in Odoo?

为君一笑 提交于 2019-12-11 13:39:07
问题 Trying to create an calendar event on the click of a button in my custom module. python code is as follows: class mom_meeting(osv.Model): _name = "mom.meeting" _rec_name = 'meet_ref' _inherit = 'mail.thread' STATUS_SELECTION=[ ('Block A - Board Room', 'Block A - Board Room'), ('Block B - Board Room', 'Block B - Board Room'), ('Block B - Discussion Room - 1', 'Block B - Discussion Room - 1'), ('Block B - Discussion Room - 2', 'Block B - Discussion Room - 2'), ] _columns = { 'ch_prsn': fields

How to fetch Calendar (calendar.event) meetings for particular date in ODOO?

送分小仙女□ 提交于 2019-12-11 12:26:12
问题 Does anybody know how to fetch Calendar (calendar.event) meetings/events for particular date OR "from date to date" in ODOO ? Till yet i have read meetings using meeting Ids as follow: ( Sample DB Name, 1, Password, calendar.event, read, ( 125 ) ) In above input parameter 125 is my meeting Id. So i get records of that particular meeting id. But now i want the meetings record based on dates. So how can i achieve this ? What will be the inputs for this ? 回答1: You are accessing the Odoo External

How to debug Error Messsage in Odoo

徘徊边缘 提交于 2019-12-11 12:07:49
问题 I have created my Own custom report in which when I print my report at that time the below error message will be created 500: Internal Server Error I don't know where I should start with the problem solution. The log file in /var/log/odoo/ says: and my log file /var/log/odoo/ "MissingError: ('MissingError', u'One of the documents you are trying to access has been deleted, please try again after refreshing.')" Do you have any solution to resolve this problem ?. 回答1: Try Running odoo.py when

How to enable “typing” on selection widget in Odoo?

末鹿安然 提交于 2019-12-11 10:29:53
问题 I have used a selection widget in my program and it has lot of items in the drop down. Is there any method to enable typing on it so user can select item easily. (just like making a JComboBox editable in java) 回答1: If you are using the many2one field with the widget="selection" , you can select the selection box by clicking it and you start typing what you are looking for, the box change to the value that you are writing. By the way, you must write it fast and the drop down must not be