From 8e9187e7468b45d3ea6c01925ba76f468641693b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 28 Jun 2016 15:21:52 +0200 Subject: [PATCH 01/25] [FIX] account: partner ledger report, _lang_get From revision 24833272369649b10a691da4c2f0434069fb4ed7 `_lang_get` returns a browse record opw-682034 --- addons/account/report/account_partner_ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_partner_ledger.py b/addons/account/report/account_partner_ledger.py index b5a47c8c194..7ee6a496f3c 100644 --- a/addons/account/report/account_partner_ledger.py +++ b/addons/account/report/account_partner_ledger.py @@ -31,7 +31,7 @@ class ReportPartnerLedger(models.AbstractModel): lang_code = self.env.context.get('lang') or 'en_US' lang = self.env['res.lang'] lang_id = lang._lang_get(lang_code) - date_format = lang.browse(lang_id).date_format + date_format = lang_id.date_format for r in res: r['date'] = datetime.strptime(r['date'], DEFAULT_SERVER_DATE_FORMAT).strftime(date_format) r['displayed_name'] = '-'.join( From 506c161990ad718417afea2f96f91f20930afbc8 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 28 Jun 2016 16:13:34 +0200 Subject: [PATCH 02/25] [FIX] stock: appropriate chatter log when picking done Commit d349584 solved the state change tracking of pickings, and moreover prevents unnecessary state changes to be recorded. However, this also prevents the state "Done" to be recorded in the chatter. Saving properly the state change for the picking might be quite tricky, since the stock processes sometimes imply unreservation/rereservation of quants, and therefore lead to several state changes inside the same process. opw-680343 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 02b1405e8ae..cecb9017ead 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1686,7 +1686,7 @@ class stock_picking(models.Model): self.rereserve_quants(cr, uid, picking, move_ids=todo_move_ids, context=context) self.do_recompute_remaining_quantities(cr, uid, [picking.id], context=context) if todo_move_ids and not context.get('do_only_split'): - self.pool.get('stock.move').action_done(cr, uid, todo_move_ids, context=notrack_context) + self.pool.get('stock.move').action_done(cr, uid, todo_move_ids, context=context) elif context.get('do_only_split'): context = dict(context, split=todo_move_ids) self._create_backorder(cr, uid, picking, context=context) From 1ec2e4b22dee726f0e255bb8a1c84ea2ce6a4f4b Mon Sep 17 00:00:00 2001 From: Adrien Dieudonne Date: Mon, 13 Jun 2016 16:01:30 +0200 Subject: [PATCH 03/25] [IMP] mail: limit number of messages fetched to 25 --- addons/mail/static/src/js/chat_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 3883cc512a4..54eaf637ff8 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -12,7 +12,7 @@ var web_client = require('web.web_client'); var _t = core._t; var _lt = core._lt; -var LIMIT = 100; +var LIMIT = 25; var preview_msg_max_size = 350; // optimal for native english speakers var MessageModel = new Model('mail.message', session.context); From 1d843884e861252e395e0818b0fbf8aa074cd9d2 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 27 Jun 2016 13:45:31 +0200 Subject: [PATCH 04/25] [FIX] account: Empty list with get_default function in "ir.values" The function get_default in "ir.values" can return an empty list. This is why checking that the result of this function is a list was not enough. --- addons/account/models/res_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/models/res_config.py b/addons/account/models/res_config.py index ee67707c5df..2c52b9062a2 100644 --- a/addons/account/models/res_config.py +++ b/addons/account/models/res_config.py @@ -166,8 +166,8 @@ class AccountConfigSettings(models.TransientModel): ir_values = self.env['ir.values'] taxes_id = ir_values.get_default('product.template', 'taxes_id', company_id = self.company_id.id) supplier_taxes_id = ir_values.get_default('product.template', 'supplier_taxes_id', company_id = self.company_id.id) - self.default_sale_tax_id = isinstance(taxes_id, list) and taxes_id[0] or taxes_id - self.default_purchase_tax_id = isinstance(supplier_taxes_id, list) and supplier_taxes_id[0] or supplier_taxes_id + self.default_sale_tax_id = isinstance(taxes_id, list) and len(taxes_id) > 0 and taxes_id[0] or taxes_id + self.default_purchase_tax_id = isinstance(supplier_taxes_id, list) and len(supplier_taxes_id) > 0 and supplier_taxes_id[0] or supplier_taxes_id return {} @api.onchange('chart_template_id') From dd233bd40e8ac85c0678158feb83b2a7d6aaa21a Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 29 Jun 2016 09:00:45 +0200 Subject: [PATCH 05/25] [FIX] mail: message order It might happen that a transaction produces more than one message in the chatter. In this case, the messages are created with the exact same date, and they might appear in the wrong order in the chatter. We therefore sort the messages by id, and not by date. Note that the messages are already sorted when received from the server, but the web client has its own management of the messages' order. Relying on the server order might imply to change other parts of the code on client side, which is something we want to avoid on a stable version. opw-681049 --- addons/mail/static/src/js/chat_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 54eaf637ff8..78f5547e6c8 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -459,7 +459,7 @@ function fetch_document_messages (ids, options) { processed_msgs.push(add_message(msg, {silent: true})); }); return _.sortBy(loaded_msgs.concat(processed_msgs), function (msg) { - return msg.date; + return msg.id; }); }); } else { From 4c4b0b6e1fa5989829cc96aa4f55416242e5caa4 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 29 Jun 2016 10:19:11 +0200 Subject: [PATCH 06/25] [FIX] doc: RHEL-based installation The instructions to install Enterprise version on RHEL-based distributions are not correct. opw-681767 --- doc/setup/install.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/setup/install.rst b/doc/setup/install.rst index 139cc244701..0f1de4f14c0 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -236,7 +236,7 @@ Execute the following commands to install Odoo 9.0 Community on your server: Enterprise '''''''''' -To install Odoo 9.0 Enterprise, execute these commands: +For Odoo 9.0 Enterprise, get the package from the Download_ page. Then run: .. code-block:: console @@ -244,8 +244,7 @@ To install Odoo 9.0 Enterprise, execute these commands: $ sudo postgresql-setup initdb $ sudo systemctl enable postgresql $ sudo systemctl start postgresql - $ sudo yum-config-manager --add-repo=https://nightly.odoo.com/9.0/nightly/rpm/odoo.repo - $ sudo yum install -y odoo + $ sudo yum localinstall odoo_9.0.latest.noarch.rpm $ sudo systemctl enable odoo $ sudo systemctl start odoo @@ -555,4 +554,4 @@ default db to serve on localhost:8069 .. _git: http://git-scm.com .. _Editions: https://www.odoo.com/pricing#pricing_table_features .. _nightly: https://nightly.odoo.com/9.0/nightly/ -.. _extra: https://nightly.odoo.com/extra/ \ No newline at end of file +.. _extra: https://nightly.odoo.com/extra/ From cef9759c314bfd780949a9f526ec4b3799963ad0 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 29 Jun 2016 11:03:17 +0200 Subject: [PATCH 07/25] [FIX] account_extra_reports: partner of other company Printing the report "Sale/Purchase Journal" leads to an access error if one of the partner of an account.move.line is from another company. opw-681104 --- addons/account_extra_reports/views/report_journal.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_extra_reports/views/report_journal.xml b/addons/account_extra_reports/views/report_journal.xml index 73926363f09..b9a22669889 100644 --- a/addons/account_extra_reports/views/report_journal.xml +++ b/addons/account_extra_reports/views/report_journal.xml @@ -49,7 +49,7 @@ - + From 58bdc39fb8122195f9e42d32007ef4806718fd4c Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 28 Jun 2016 15:37:46 +0200 Subject: [PATCH 08/25] [FIX] product_extended: bom_count appeared twice in a view The field bom_count appeared twice in product.template form view and then the smart button for "Bill of Materials" always displayed 0 as number of BoMs. opw:681830 --- addons/product_extended/product_extended_view.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/product_extended/product_extended_view.xml b/addons/product_extended/product_extended_view.xml index 5995d839980..f9b6a85bc6e 100644 --- a/addons/product_extended/product_extended_view.xml +++ b/addons/product_extended/product_extended_view.xml @@ -9,7 +9,6 @@
-