odoo-9

Odoo 9 inherit js file

旧城冷巷雨未停 提交于 2019-12-01 01:35:14
I need to change title in addons/web/static/src/js/web_client.js this.set('title_part', {"zopenerp": "Odoo"}); Is it possible in new custom module inherit js file and change "Odoo" to "Odoo 9" You can change it by overriding start function: instance.web.WebClient.include({ start: function() { this.set('title_part', {"zopenerp": "Odoo9"}); return this._super(); }, }); To override a javascript function in odoo, use the following code: __openerp__.py ... 'data': [ 'module_view.xml', ], ... module_view.xml <?xml version="1.0" encoding="utf-8"?> <openerp> <data> <template id="assets_backend_custum

Odoo 9 inherit js file

被刻印的时光 ゝ 提交于 2019-11-30 19:04:22
问题 I need to change title in addons/web/static/src/js/web_client.js this.set('title_part', {"zopenerp": "Odoo"}); Is it possible in new custom module inherit js file and change "Odoo" to "Odoo 9" 回答1: You can change it by overriding start function: instance.web.WebClient.include({ start: function() { this.set('title_part', {"zopenerp": "Odoo9"}); return this._super(); }, }); To override a javascript function in odoo, use the following code: __openerp__.py ... 'data': [ 'module_view.xml', ], ...

How to upgrade odoo 8 to odoo 9 database?

99封情书 提交于 2019-11-30 16:36:21
I am trying to upgrade an odoo installation from 8.0 to 9.0. What I've done so far is the following: Backup the odoo database from the production system Installed the backup DB as test in my current system Copied the odoo folder in a folder on my system Checked, if everything works. It works! Updated to the latest v8.0 version, still works Did a git checkout 9.0 followed by a git pull . Started odoo 9.0 with the command ./openerp-server -d testDB -u all This commands breaks with the following error and does not update my database: LINE 1: select model, transient from ir_model where state=

How to upgrade odoo 8 to odoo 9 database?

有些话、适合烂在心里 提交于 2019-11-30 16:08:36
问题 I am trying to upgrade an odoo installation from 8.0 to 9.0. What I've done so far is the following: Backup the odoo database from the production system Installed the backup DB as test in my current system Copied the odoo folder in a folder on my system Checked, if everything works. It works! Updated to the latest v8.0 version, still works Did a git checkout 9.0 followed by a git pull . Started odoo 9.0 with the command ./openerp-server -d testDB -u all This commands breaks with the following

Odoo 9. How to override form widgets?

拈花ヽ惹草 提交于 2019-11-28 06:04:24
I work with odoo 9 . In the system exists render_value method for each type of field: /odoo/addons/web/static/src/js/views/form_widgets.js /odoo/addons/web/static/src/js/views/form_relational_widgets.js How I can use my custom method render_value (for example in FieldChar ) for all forms? And how I can use specific render_value for one form or one module? I created form_widgets.js in my module, but I not understand how properly override Field. odoo.define('my_module.form_widgets', function (require) { "use strict"; // what I should do here??? }); Can you provide small example? Thank in advance

How to get products available quantity (Odoo v8 and v9)

邮差的信 提交于 2019-11-27 16:55:33
问题 I need to get products available quantity from odoo stock. There are several models I stock_quant, stock_move, stock_location. What I am trying to achieve are two things: Products total available quantity Products available quantity based on location Can anyone please guide me? 回答1: Stock related fields are defines in products (functional field) and directly from the product you can get the stock for all warehouses / locations or for individual location / warehouse. Example: For all

Odoo 9. How to override form widgets?

不羁岁月 提交于 2019-11-27 00:58:09
问题 I work with odoo 9 . In the system exists render_value method for each type of field: /odoo/addons/web/static/src/js/views/form_widgets.js /odoo/addons/web/static/src/js/views/form_relational_widgets.js How I can use my custom method render_value (for example in FieldChar ) for all forms? And how I can use specific render_value for one form or one module? I created form_widgets.js in my module, but I not understand how properly override Field. odoo.define('my_module.form_widgets', function