- May 05, 2020
-
-
Julien Castiaux authored
It has been a recurrent request from customers to be able to send email messages to email addresses containing non-ascii characters. [IDNA] is a domain extension to allow unicode characters in domain names. [SMTPUTF8] is a SMTP extension to allow unicode in any header. IDNA defines the [punycode] encoding which translates unicode to an ascii representation. This encoding MUST be used to encode domains. SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the envelope. [IDNA] https://tools.ietf.org/html/rfc5890 [SMTPUTF8] https://tools.ietf.org/html/rfc6531 [punycode] https://tools.ietf.org/html/rfc3492 Task: 2116928 opw-2229906 opw-2248251 closes odoo/odoo#47709 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Aaron Bohy authored
*account,purchase,sale Make them use widget mail_many2one_avatar. Part of task 2195254 closes odoo/odoo#49345 Related: odoo/enterprise#10074 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Aaron Bohy authored
Use the new Many2OneAvatarUser field widget in some kanban views, which allows to open a DM chat window with the corresponding user by clicking on the avatar. Part of task 2195254
-
Aaron Bohy authored
This commit adapts several views to make them use newly defined widgets, the new decoration-xxx mechanism on fields, and to adapt them to the new design of buttons. Part of task 2195254
-
Aaron Bohy authored
This commit adds a tweaked version of the kanban_activity widget for the list view. This widget displays the summary of the next activity (and fallbacks on the activity type if there is no summary). It can be set by defining widget='list_activity' on field activity_ids. Part of task 2195254
-
Aaron Bohy authored
If set, this value will be displayed as column name in list views. This attribute could be used in the future in form view for the same purpose. Part of task 2195254
-
Aaron Bohy authored
-
Aaron Bohy authored
This widget is a variant of the Many2OneAvatarUser widget, designed for many2one fields pointing to 'hr.employee'. Part of task 2195254
-
Aaron Bohy authored
This widget is an extension of Many2OneAvatar, designed for many2one fields pointing to the 'res.users' model, or a model having itself a many2one field pointing to 'res.partner'. With this widget, when the avatar is clicked, we open a DM chat window with the corresponding partner. If the user clicked on itself, we open a blank chat window for the sake of consistency. In kanban views, this widget only displays the avatar. Part of task 2195254
-
Aaron Bohy authored
It will be used by the Many2OneAvatarUser widget defined in the next commit.
-
Aaron Bohy authored
In readonly, this widget displays the image of the related record next to its display_name. In edit, it behaves exactly like the regular many2one. Part of task 2195254
-
Aaron Bohy authored
This widget can be used on date and datetime fields. In readonly, it displays the delta (in days) between the value of the field and today. In edit, it behaves like a regular date(time) widget. Part of task 2195254
-
Aaron Bohy authored
Have a list view with "badge" field component and 'decoration-xxx' attributes (on that field). Before this commit, it flickered when the user refreshed the list (for instance, by clicking on the list icon in the view switcher). The badges were displayed with a grey background (i.e. no decoration) for a brief moment, before their style was applied. Their style is applied in the mounted hook, which is called by 'on_attach_callback' (legacy version of mounted). However, the list renderer computes its column widths in 'on_attach_callback', which produces a repaint. This commit moves this operation to the end of on_attach_callback, such that other processing (like applying the badges style) is done before the repaint.
-
Aaron Bohy authored
This new field component displays the field's value inside a bootstrap pill badge. Supported field types are 'char', 'selection' and 'many2one'. The background color of the badge can be customized by using the decoration-xxx mechanism, e.g. <field name="state" decoration-danger="state == 'cancel'" widget="badge"/> Part of task 2195254
-
Aaron Bohy authored
This commit refactors the way the decoration-xxx attributes are applied to field widgets/components, in a way that it can be overridden in a given field or component to generate the approriate className. By default, 'decoration-x' applies className 'text-x'. This will be necessary for the new 'FieldBadge' component, which needs to apply 'bg-x' classNames instead of 'text-x'. Part of task 2195254
-
Aaron Bohy authored
In list views, one can specify decoration-XXX attributes on the arch root node. Those decorations are evaluated for each record, and the corresponding style is applied on rows for which the condition is true. This commit allows to specify those decoration-XXX attributes on field nodes as well. In this case, when the condition is met by a record, only the field on which the attribute is set will be impacted. Part of task 2195254
-
Aaron Bohy authored
Buttons with icon and string attributes now have both their icon and string displayed, whereas before only the icon was displayed (the string was available as title). We also force class btn-link to style buttons with icon, except if another btn-xxx class is explicitely provided. Part of task 2195254
-
jerome hanke (jhk) authored
Steps to reproduce: - install sales, ecommerce and payment_authorize - setup authorize.net (test mode) - go to sales and select the quotation S00007 (demo data) or create a quotation with multiple items that add up to a float - select action > generate a payment link > go to the link > select pay with authorize - you are redirected to authorize.net use 4111 1111 1111 1111 as card number and 1223 as expiration date > pay - you are redirected to the odoo payment process page - wait for the result Previous behavior: the user is returned to a 404 error page but the payment went trough Current behavior: access_token generation is consistent and will not fail because of float representation the user is returned to the "payment confirmed" page WARNINGS: - watching the values in vscode prevents bug reproduction - when setting up authorize.net, do not forget to add your test url to the account's allowed return urls - use https for authorize.net connection opw-2223135 closes odoo/odoo#50633 X-original-commit: 0fe7fa0f Signed-off-by:
mightyjol <jhk-odoo@users.noreply.github.com>
-
- May 04, 2020
-
-
Nasreddin (bon) authored
Step to reproduce : Import from Excel a list of Opportunities. The problem is that in _compute_day_open, the abs of the extraction date_open - create_date is set as the lead's day_open. As the date_open has no milliseconds, all those records which create date is the same second have a date_open that is before their create_date. Fixed it by comparing the date_create and date_open without microsecond. Task ID 2222251 closes odoo/odoo#50599 X-original-commit: f7d12770 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Apr 27, 2020
-
-
Andrea Grazioso (agr-odoo) authored
Configure your POS with bank payment method only Make a sale with rounding necessary (i.e. 1,29€) The amount will be rounded. Go through the payment screen. Error message will appear because no payment methods available is capable of handling the change, but this is not necessary since we are rounding. Splitting the code to add a more specific condition in pos_cash_rounding fix the issue opw-2239946 closes odoo/odoo#50216 X-original-commit: 6131534da2d3a3bf75529b32f2061d58e925b365 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- May 04, 2020
-
-
pka-odoo authored
Part of task 2234547 closes odoo/odoo#49793 Related: odoo/enterprise#10059 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Mohammed Shekha <msh@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
pka-odoo authored
Part of task 2234547 Co-authored-by:
Mohammed Shekha <msh@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
pka-odoo authored
Part of task 2234547 Co-authored-by:
Mohammed Shekha <msh@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
pka-odoo authored
*account,crm_iap_lead,hr_expense Part of task 2234547 Co-authored-by:
Mohammed Shekha <msh@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
pka-odoo authored
Move it above the separator. Part of task 2234547 Co-authored-by:
Mohammed Shekha <msh@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
Julien Castiaux authored
Use `warnings.warn` to log a warning entry on usage of deprecated import hook instead of `logging.warning`. The `warnings` can be more easily configured to show/hide class of warnings or to limit warning emission, plus it is possible to log a single stack entry whereas logging can just log the entire call stack. Bring back the various openerp import hooks by reverting 9e1f13bac12 closes odoo/odoo#50604 Task: 2234749 X-original-commit: 5840202802c2ff6ca1ca8fd6f3892900481db5da Signed-off-by:
Raphael Collet (rco) <rco@openerp.com> Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Odoo's Mergebot authored
Ensure main Odoo models supports batch record creation. * `purchase.order.line` supports multi creation in `purchase`, but not anymore when `purchase_stock` is installed. * `sale.order.line` supports multi creation in `sale`, but not anymore when `sale_purchase` is installed. * `crm.lead` doesn't support batch creation atm, but it doesn't cost anything to support it. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#50468 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Alen Uglik authored
closes odoo/odoo#50600 X-original-commit: f0d59564 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Alen Uglik authored
X-original-commit: 8de457e8
-
Andrea Grazioso (agr-odoo) authored
Create a service product [DEMO] with service tracking 'Create a task in a new project' Create a sale order SO1 with User 1 with [DEMO] product Create a sale order SO2 with User 2 with [DEMO] product SO1 will create a task in a project, edit this task and assign as parent task the one created by SO2 The action will be blocked by security rules, because user 1 cannnot see the sale order data of user 2 but the action should be allowed. Fixing the error with a sudo call opw-2243370 closes odoo/odoo#50585 X-original-commit: 8c7d0266 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Apr 30, 2020
-
-
Victor Feyens authored
-
Victor Feyens authored
-
Victor Feyens authored
-
- Apr 29, 2020
-
-
Olivier Dony authored
In some situations it is important to protect the Odoo service from direct access from the internet, or to protect internal network resources from the Odoo server itself. This is heavily dependent on deployment requirements, and for standard installations on a public cloud system, this may not be necessary. Yet it seems useful to mention it in the deployment recommendations, as it may not be obvious to our users. Our thanks to Ameya Darshan for raising this concern! closes odoo/odoo#50422 X-original-commit: da0d9ef4 Signed-off-by:
Paul Morelle <madprog@users.noreply.github.com>
-
- May 04, 2020
-
-
alt-odoo authored
Side effect of commit 6d7bbd30. In case we are coming from public route /shop/address, we are in superuser mode and method _get_default_team_id can return a sales team from another company. We should force the domain to avoid creating inconsistent records. closes odoo/odoo#50581 X-original-commit: 0396c04c Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com> Signed-off-by:
Alex Tuyls <alt-odoo@users.noreply.github.com>
-
Alexandre Fayolle authored
If an action has for instance twice "tree" in view_mode, you get a crash when displaying the action. This patch adds a python constraint on the model which will prevent such change. closes odoo/odoo#50189 Opw: #2241415 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Mathieu Duckerts-Antoine authored
In the pivot view, groups comming from many read_group are assemble to create the header hierarchies and the table. Groups returned by the read_group may be already sorted by the server using the order set on the model for instance and that order should be reflected in the header hierarchies (and in the table). It is important to keep that order since it might not be possible to recreate it in the interface. Even if possible it might not be a good idea for performance reasons. Before this commit: The groups are added in a JS object, whose keys are the group ids (when grouping on a many2one at least). Then, to generate the table, we iterate over the keys of that object, but those keys are sorted according to the numerical order (not the insertion order), because keys are kind of numeric. See https://stackoverflow.com/questions/5525795/does-javascript-guarantee-object-property-order . After this commit: Instead of a JS object, we use a Map for which the insertion order is used (official spec). Task ID: 2243416 closes odoo/odoo#50551 X-original-commit: 1a9a85c8b8d0f47c3c6f3878cd6d9401ddc3ad75 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Damien Bouvy authored
closes odoo/odoo#50546 X-original-commit: 29b3b67a Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
Mathieu Duckerts-Antoine authored
An attribute 'disable_counters' on fields of the search panel is supported in case performance issues would be encountered with counters. The commit dd7022ec allowing to use the search panel in other views than the kanban views has also introduced the search panel arch validation and the attribute 'disable_counters' was forgotten, so that it was impossible to use it in practice. With the present commit, 'disable_counters' is now recognized as a valide attribute. closes odoo/odoo#50542 X-original-commit: 4c321d0b Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Apr 30, 2020
-
-
jvm-odoo authored
Issue - Install CRM - CRM > Reports > Activities - Add a custom filter > Created on - Select the date You can't, the date picker is not shown Cause Actually, the date picker is shown but very quickly and it is closed by a scroll event thrown by Chart.js. Solution Close the date picker only if the user scrolls manually. OPW-2245019 closes odoo/odoo#50482 X-original-commit: bda32005 Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-