- Jun 22, 2016
-
-
Denis Ledoux authored
For `this.viewmanager.active_view` to be set, the view manager switch mode must be completed, meaning the deferred returned by the function `switch_mode` must be resolved (see `this.active_view = view;` in `view_manager.js`, line 146) In a 2many field, the view manager `switch_mode` deferred is resolved when `is_loaded` of this field is as well resolved. Before this revision, clicking fast on Save then Edit of a vendor bills resulted to a JS error due to a race condition, because `this.viewmanager.active_view` was undefined when the field was not loaded / the view manager switch mode not completed. opw-678097
-
Christophe Matthieu authored
The preview change the content because the browser try to fix the dom. If a user use jinja and activate the preview, the jinja code is (re)moved by the browser and broke the template.
-
Martin Trigaux authored
To reflect the changes made at 28ed28f9 Fixes #12523
-
Martin Trigaux authored
Some users using community version of Odoo may understand that this module turns the POS into a certified module (which is what pos_blackbox_be does). Update base.pot to reflect the changes (and add other missing translations)
-
Goffin Simon authored
When creating a stock picking from a partner without Vendor Location, a validation error was raised due to a user error.
-
Quentin De Paoli authored
[FIX] account: in the bank statement reconciliation widget, don't convert amounts using the amount_currency to the target currency if the target currency is the compmany currency. OPW 680854
-
Odoo Translation Bot authored
-
- Jun 21, 2016
-
-
Sebastien LANGE authored
The order of BOMs is based on the sequence which is not present in the view. When you open all BOMs, any order is defined. This patch will display the list of BOM by product. opw:681189
-
Goffin Simon authored
float_is_zero(value1-value2) is not equivalent to float_compare(value1,value2) == 0, as the former will round after computing the difference, while the latter will round before opw:678588
-
Nicolas Martinelli authored
When the mail composer is opened thanks to the "Send Mail" button in Discuss, it's possible to save a mail template, but the user can't access it anymore later on. This is because the field `model` is by default empty in this specific case since this is a client action. However, when saving the template, the default value 'mail.template' is used for the `model` field. Therefore the domain on the `template_id` field prevents the user to find back the model he just saved. The fix sends the `active_model` in the context with the value 'mail.message', so that the `default_get` method of `mail.compose.message` will set the appropriate default value. opw-677936
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
Rev e37ba618 forward-ported 8.0 revision f02b2300 from PR #12379. This patch introduces extra tests and views for o2m onchange behavior, including new fields in the test models. In 9.0 a new convert_to_onchange() mechanism had been introduced at 9f81c6d6 The combination of both requires some adaptation to the expected results of the new tests and adaptation of existing tests. The test models in `test_new_api` have an implicit depencies between models which cannot be express on ORM: messages depends on participants of their discussion. So, when editing a discussion, the field `participants` should be processed before field `messages`. This is not always done because field processing order depends of the iteration order of a `dict` (which is undefined in python). The testing tour `widget_x2many` worked by chance until now. Adapt the tour to save the participants before the messages.
-
Josse Colpaert authored
[IMP] stock: when applying a push rule the new move should not be linked to the same procurement anymore
-
- Jun 20, 2016
-
-
Goffin Simon authored
Inspired from a706ada6 opw:681245, 681289, 681285
-
Goffin Simon authored
When computing the amount currency, the date must be set in the context to use the right currency rate. opw:680693
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Commit 358e285f introduces fiscal positions on the PoS. The new taxes applied should be used in the form view of the pos order lines and in the detailed sales report. opw-680796
-
Christophe Simonis authored
Setting NOT NULL constraints on required fields may fail if there are any row with unset value for this column. The ORM handle this case by catching the exception raised and warning user. However, not commiting the current transaction before, will rollback changes made before like setting default values or renaming a column.
-
Denis Ledoux authored
Some one2many fields have a domain specified in their definition e.g. `mail.thread`.`message_follower_ids` `hr.applicant`.`attachment_ids` `project.task`.`attachment_ids` which is required for the one2many field to make sense. For the mail thread, it does not make sense to include the followers of other models with the same `res_id`. This domain must be took into account when doing a 'like' search on the one2many field e.g. Followers contains demo Otherwise it will include threads from other model opw-680825
-
Nicolas Martinelli authored
When a product is a kit and a discount is applied thanks to a pricelist, the discount is counted twice if the invoice is created from the stock picking. This is because the pricelist will modify the price unit, but moreover the discount will be applied a second time by the method `_compute_price` of the account move line. opw-676838
-
- Jun 19, 2016
-
-
Odoo Translation Bot authored
-
- Jun 17, 2016
-
-
Xavier ALT authored
Our usage of domain on fields One2many seems to trigger an obscure behaviour on onchange. With the following (simplified) config: Message(models.Model): _name = 'test_new_api.message' important = fields.Boolean('Important') Discussion(models.Model): _name = 'test_new_api.discussion' name = fields.Char('Name') important_emails = fields.One2Many('test_new_api.emailmessage', 'discussion', domain=[('important', '=', True)]) Email(models.Model): _name = 'test_new_api.emailmessage' _inherits = {'test_new_api.message': 'message'} discussion = fields.Many2one('test_new_api.discussion', 'Discussion') message = fields.Many2one('test_new_api.message', 'Message') Steps: - We change 'name' on discussion, triggers an `onchange()` call - we ends up filling cache on virtual record (on secondary fields, we calling record.mapped('important_emails.important')) - we get a cache miss ('important' field not provided, only 'important_emails' ids, i.e with no change on existing records) - we fill the cache, this mark 'important' field as modified - because of commit 5676d812 and because 'important' is that case is a related (i.e computed) field we triggers cache recomputation - as there is no way to recompute 'important_emails' for virtual record (no real ID) we ends up with empty 'important_emails' generating removal of existing records. => Finally changing any value for 'test_new_api.discussion' that trigger an onchange will always reset 'important_emails' to empty Fixed by Raphael Collet <rco@odoo.com>, and test by Xavier Alt <xal@odoo.com>.
-
Jeremy Kersten authored
When user reset master password from web database manager, the config file is saved. If server was started in dev_mode the param dev_mode was saved in openerp_serverrc silently. (in 9 or always in trunk) Remind: --dev_mode should be never used on a production server.
-
jeffery chen fan authored
Do not redefine the view arch but do a proper inherit. It was a problem as the redefinition removed some fields (headers,..). It was also a problem if crm_profiling was uninstalled as the redefinition was not removed. Closes #12454
-
Nicolas Lempereur authored
New API use a frozendict for context, so when a function in the call chain is overrided by new API (eg: render function of ir.qweb) the code now changed by this commit would cause an error. Instead this code duplicate the context frozendict as a dict removing the need to set back the intial language in the context. opw-681167 note: no need for >=saas-11
-
Quentin De Paoli authored
[FIX] account: on ir_sequence, number_next_actual must always be read instead of number_next which might contain wrong value in case of 'standard' sequence. This was causing a crash on creating a new invoice, if demo data were installed and the user went to settings\accounting to do some modification. Issue #12471
-
Jeremy Kersten authored
During refactoring of the field view, parent.model has been replaced by model_id since it is more elegant. (odoo/odoo@4a60a3) That was correct when you was working directly from the ir.model.field. But if you was comming from ir.model -> fields -> 'add an item', the model_id is unknow in the context of pyeval. This commit close #12455
-
Christophe Simonis authored
The field `delay` on `sale.order.line` has been renamed into `customer_delay` and is already set. This revert commit d0d3ba92.
-
luc-demeyer authored
The group_lines method didn't make the sum of the quantity field, hence resulting in incorrect results when making product based statistics from the account.move.line records. Courtesy of Luc De Meyer. Was PR #10551
-
Khwunchai J authored
Odoo add the extra letter "s" to the translated word "Active User". This is caused by adding "s" at the end of the word directly from the template, which makes no sense in many language. This prohibits translators from translating the plural form in any language. The plural form and singular form of "Active User" should be translate separately. Fixes #12469 Closes #12470
-
Nicolas Martinelli authored
If no image is defined for the channel, the template rendering will crash since it will concatenate a string and a boolean. opw-680938
-
Martin Trigaux authored
If I need to do researchs to find a quotation, the goal of having a userfriendly software may be missed.
-
Nick Booker authored
The word 'Research' isn't usually used in this context. 'Searching' is better. Closes #11517
-
Ramon Bartl authored
Closes #11888
-
Jarmo Kortetjärvi authored
Closes #10997
-
Telnet Data authored
Closes #11070
-
Sharjeel Ali Shaukat authored
Closes #11940
-
Ross Golder authored
Closes #11488
-