- May 16, 2018
-
-
Xavier Dollé authored
Previously to this commit needaction used by JS was not taking into account read notifications. It means notably Inbox counter could be higher than expected as taking into account read messages while Inbox displays only unread messages. This commit fixes that by checking notification state when giving needaction_partner_ids to message_format result. This fix has a small impact on performances as message_format is used in notification process for chat or push. A better implementation of message format and its postprocess could probably lessen this fix impact. As we target stable version we avoid rewriting other part of the code. Optimization will be done in development version. Related to task ID 1841243. This is a manual backport of commit 69714fbe done in saas-11.2.
-
Nicolas Martinelli authored
- Create a product where the associated product category has Costing Method "Average Cost (AVCO)" - Create a PO. Order 1 unit at $1000. - Receive that unit. (System now has 1 unit at $1000). - Create another PO. Order 3 units at $500 each. - Receive only 1 unit and don’t create any back order. System has 2 units @ $625, instead of $750. The quantity computed should take into account the quantity actually done. opw-1843998
-
Olivier Dony authored
Revision 054c6868 added by mistake the password of the new user in the welcome message that is sent to users who signed up with an invitation token. There is no need for this, the user has just chosen their password, and we should not send them a copy which could be compromised on the way to their inbox or later in their inbox. It may also give users the impression that their passwords is stored in cleartext in the database, even when that is not the case. This patch minimalizes changes to the template and its translations. For existing databases where the code is updated without re-syncing the template, the password will simply be missing in the message (until a resync of auth_signup module is done)
-
Jeremy Kersten authored
Before this commit, when a scheduler fail for one event (eg: error in send_mail), the cron stop and don't continue to process all others event's scheduler. Now we try to warn (~ randomly once by hour) the responsible/organizer/write_uid that an error occurs with this scheduler, and we continue to process the others. opw-1840497 closes #24741
-
Nicolas Martinelli authored
- Create a tax included of 7.7% - Set the company rounding to 'Round Globally' - Create a bank statement of 10.70, reconcile - Add a manual line with the 7.7% tax An extra line of 0.01 remains. The remaining amount after subtracting the tax is `0.00499...`, which is rounded to `0.005` by `Math.round(total*1000)/1000`, and finally displayed as `0.01`. The 'Round Globally' setting makes sense for objects containing multiple lines, such as SO, PO or invoice. In the case of a reconciliation, we can switch to the 'Round per line' config. opw-1837986
-
len-odoo authored
When sorting records according to a many2one field in a list view embedded in a form view, the js would sort according to their ids, in a seemingly arbitrary order. Thus sorting records according to a field with values in ("a", "b", "c") could be sorted as "a", "a", "c", "b" instead of "a", "a", "b", "c". We make the comparison on the name of the field instead. opw 1838860
-
- May 15, 2018
-
-
Christophe Simonis authored
-
Christophe Simonis authored
Consequence of 19878d01
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Denis Ledoux authored
Until this revision, this was possible to set as parent task the current task. From then, it was impossible to compute the field `subtask_count` because of an infinite loop. This resulted to the inability to open the task form, which contains this field. opw-1847982
-
Goffin Simon authored
When adding a SO line with a delivery method (e.g. The Post) for a customer with a different language that the one set on the current language, the description of the SO line was not translated. Inspired from function 'product_id_change' in model 'sale.order.line' opw:1843934
-
Christophe Simonis authored
-
Quentin De Paoli authored
This commits removes a disambiguation on the choices of the 'Adjustment Type' selection as 'in your favor' could be achieved by debitting the 'Collected Tax' account or creditting the 'Paid Tax' accounts (respectively for 'in favor of the Estate'). The choices now refers directly to the journal item where the tax is gonna be copied Related to https://github.com/odoo/odoo/commit/c58ef14a01f600d75391f2a9c38bb2b30e0e2528 Related to OPW 1826242
-
Quentin De Paoli authored
-
RomainLibert authored
There were two onchange methods on employee_id in hr.holiday.
-
Lucas Perais (lpe) authored
Display a slide, enter fullscreen mode Make the navigation bar appear. Now, try to push on any button of the nav bar Before this commit, none of the button work This is because the fullscreen mode is handled by the browser, and won't let any non-fullscreen elements be interactive After this commit, the nav bar is part of the element that are in fullscreen And the button work OPW 1839503 closes #24522
-
RomainLibert authored
We need to fix a problem with the users where someone might get informations on registrations.
-
Goffin Simon authored
When the box "Can be sold" on product.template is unticked, the product must be unavailable in the point of sale. Closes #22061 opw:1844188
-
Nicolas Lempereur authored
In 9.0, stages of a job position in recruitment are not share by default, there is a "New" stage and existing stages can be added in the form view (since 780f46ae). When creating a job position, the "New" is not working with the given widget type. This commit doesn't show stages in the form view until the record is created. opw-1839217 closes #24706
-
Goffin Simon authored
Fine tuning of cd6150fe opw:1840373
-
Nicolas Martinelli authored
- Create a product FIFO / Real-Time valuation - Create a PO with 1 unit, validate, receive the picking - Create the corresponding vendor bill, but do not validate - Unlock the picking and change the received quantity to 0.0 - Validate the invoice A traceback because of a zero division occurs. When searching for the stock moves linked to the PO, we should filter out the ones with a zero quantity. opw-1843543
-
Nicolas Martinelli authored
- Activate sub-tasks in projects - Enter a project's tasks, click on the stat button 'Sub-tasks' - Reload the page (F5) A traceback occurs since `project_id` is undefined. The fields `project_id` and `partner_id` are only defined in the context of the stat button. opw-1844334
-
Nicolas Martinelli authored
The field `transactionReference` of Sips must contain only alphanumerical characters. Previous commit 31dc6b88 solved the special case of several attempts to pay, but a much simpler case may appear in v11. Paying an invoice is likely to fail since the reference contains by default `/`. In the previous commit, we could simply modify the common `payment` module code. In this specific case, however, we only change the reference if the acquirer is Sips. opw-1841483
-
- May 14, 2018
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
Attribute is different for country and continent objects.
-
Toufik Benjaa authored
- When merging partners with fields restricted to certain groups which the user doesn't belong, an access error is raised. To avoid this, we only merge fields that are accessible by the user. We do so by using the method fields_get() that only returns the fields accessible by the current user.
-
Denis Ledoux authored
If the user configures a default `template_id` for the `mail.compose.message`, this template was used by the mass mailing to render the email, and, among others, it therefore used the `email_to` of this email template, to render the recipients, and it was configured empty or something else than `object.id`, it did not used the `active_ids` passed in the context to the `mail.compose.message` `create` call to compute the correct recipients To reproduce: - In developer mode (?debug) - Open the full mail compose message e.g. in app sales, open a so, hit new message, and hit the button to open the full message composer - Set the template to the quotation template is not there already - In the debug menu of the dialog, View > Set defaults, - Click the radio button to all users, and the default to Use template = ... - Then, try to send a mass mailing. It will fail because it cannot compute the `email_to` values correctly because the `email_to` of the quotation template is empty. opw-1840287
-
Christophe Simonis authored
Was weirdly working in browser... This reverts commit fb18de74.
-
Christophe Simonis authored
-
Christophe Simonis authored
Oversight of previous forward-port
-
Goffin Simon authored
When creating a product "down payment" in multi company in function "create_invoices" of the model "sale.advance.payment.inv", a default company was set on this product and it could lead to access rights error when trying to invoice a SO from an other company. NB: The down payment product must be shared with all the companies, as this is the only one that you can set in the ir.config_parameter. opw:1841468
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Create u1 as a portal user - Connect as u1, add products to the cart - Duplicate u1 (e.g. u2) - Connect as u2 u2 retrieves the cart of u1. opw-1847328
-
Denis Ledoux authored
When changing the customer to a customer with a different pricelist than the pos default, the customer pricelist was not automatically selected. This is because of an oversight in the below revision: f76cc095 opw-1843709 fixes #24611
-
Christophe Simonis authored
-