- Jul 09, 2020
-
-
Kevin Baptiste authored
Changing the driver on a car shouldn't change the fleet.vehicle.log.services associated. We should keep the driver assigned to the car at the time the service was done. closes odoo/odoo#54264 Taskid: 2208080 X-original-commit: 5422bb8d6e3db5d6932570116af74ea634c40a51 Signed-off-by:
Paul Morelle <madprog@users.noreply.github.com>
-
Kevin Baptiste authored
When creating a new service on vehicle, the first vehicle was always selected by default due to a wrong default value. Same thing for the contract. Taskid: 2289808 X-original-commit: 9ec3875249748929c4a8e0c8a16e7b729ab9f2d9
-
Kevin Baptiste authored
The license plate was not shown on the view due to a wrong t-if value. Taskid: 2289808 X-original-commit: 474322a7f5ee346b4d57b07818fd79801b93f574
-
Aaron Bohy authored
Adjacent buttons are not displayed in a single column. When the table overflows, we try to squeeze largest columns to make it fit into its container (in this case, text may be clipped and an ellipsis is displayed). Button columns didn't get away from this. As a consequence, now that a cell may contain several buttons, some of them may be clipped and replaced by the ellipsis, which isn't what we want for buttons. This commit removes the button columns from the list of columns to squeeze, so we let the browser reduce them as much as it can, and we keep them as they are. Task 2282470 closes odoo/odoo#54258 X-original-commit: e00960daa3ed3d1fd3a7572b2acedd3d2fb0448e Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com> Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Jeremy Kersten authored
Edit in backend now redirect to related apps, and no more in website Apps closes odoo/odoo#54208 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Jul 08, 2020
-
-
Antoine Prieels authored
Add the possibility to call services from posmodel. At the moment, this is needed to call the `iot_longpolling` service from `DeviceProxy`. closes odoo/odoo#54229 Related: odoo/enterprise#11708 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
Raphael Collet authored
closes odoo/odoo#54209 Related: odoo/upgrade#1464 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Jul 09, 2020
-
-
Andrea Grazioso (agr-odoo) authored
Go to invoice list view. Select several invoices, click on 'Send and print', switch template to a different one (possibly a duplicate of the default). Send On each selected record there will be a pair of attachment: - one belonging the the record (ok) - one duplicate from the first record selected (not ok) This occur because when switching template the default composition mode for the wizard is 'comment' (single send), which causes the wizard to compute and store the attachment of the first record it found. Later, this get assigned to the list of attachment to send so it duplicated (and sent) in all other records opw-2291274 closes odoo/odoo#54255 X-original-commit: 0028a602 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
- Jul 08, 2020
-
-
lejeune quentin authored
with this commit ce0700ce401523267b5a8bd5665a368cfea24912 we lose the compatibility with olders version of Odoo So we keep the vesion of IoT box in the same place for olders version of Odoo closes odoo/odoo#54242 X-original-commit: 0215ff3fd7a353c4f191a1cb93fdce6d0db78fa0 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Jul 09, 2020
-
-
jbm-odoo authored
Before this commit: In helpdesk_timesheet, we have a compute_task_id with super. But in hr_timesheet, task_id is not a compute field, so this compute has no effect. After this commit: Task_id is changed to compute stored field. taskId 2285926 closes odoo/odoo#54117 Related: odoo/enterprise#11682 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jul 03, 2020
-
-
Simon Genin (ges) authored
Update mail alias layout, makes email address clickable (mailto) and fix a couple of typos. Task ID 2287394 closes odoo/odoo#53960 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jul 08, 2020
-
-
Laurent Stukkens (LTU) authored
Prior to this commit, the autoscroll on drag feature was accessible and only used in the web_editor application. After this commit, the autoscroll on drag feature will be available in the web application and has been refactored in order to allow its usage in other application (as for the sign application). task-2280965 closes odoo/odoo#54072 Related: odoo/enterprise#11656 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
william authored
* Make Connect button primary if the Reconcile button is not shown primary) * Rollback the change "Create Manually" > "New Invoice" closes odoo/odoo#54250 X-original-commit: e50b378520aa7d9674ee3dca169365eeb1ecac85 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by:
wan <william-andre@users.noreply.github.com>
-
Xavier Dubuc authored
task-2171877 task-2282377 task-2282382 closes odoo/odoo#54249 X-original-commit: acf8eb3e2e49c1ade638ff1f2fed4969f9944053 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Xavier Dubuc authored
- Follow button is now correctly aligned in document app chatter overlay - Topbar does not move up anymore on select Send Message or Log note task-2287136 closes odoo/odoo#54247 X-original-commit: 6f05705158a7a197945e6720f5ac231ce6932686 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
jvm-odoo authored
Issue - Install eCommerce - Modify a product image with one which has more than 1024px width/height to enable zoom (I used: https://bit.ly/2VETQZS ) - Go on the website preview & hover the image Depending on the screen size, a part of the flyout is hidden because of overflow-x if you want to see it, you should scroll right width right arrow key. Cause The flyout has 100% width and is put right (position absolute, left: 100%) Solution To avoid this error on all screen size, the solution is to compute the max-width of the flyout depending on the available space on the right. OPW-2283648 closes odoo/odoo#54222 X-original-commit: c89b4c25 Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
jvm-odoo authored
Issue - Runbot 13.0 - Website > Contact Form - Double click on send button Link dialog opened, ok - Discard - Double click on send button - Click link button Traceback Cause The next double click doesn't work because in rte.js RTEWidget._onMousedown we remove the target's contenteditable attribute and it's never added back. This is because we break if the element is not editable. The traceback is a side effect, since we can't select the button anymore, our selection is incorrect and getLinkInfo use range.create() try to use it. Solution Break only if the target is not a '<a>' & non-editable element OPW-2268595 closes odoo/odoo#54221 X-original-commit: 460bc102 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
1. set a Sales team and add an alias 2. create a contact (customer) with an email and grant them portal access (under the action) 3. Odoo creates a portal user 4. use the email of the contact to send an email to the alias set under the sales team An opportunity is created but the sales person assign to that opportunity is the customer. This will revert user if the user has no access to crm.lead opw-2288442 closes odoo/odoo#54217 X-original-commit: a3fdff3d Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Yannick Tivisse authored
Purpose ======= https://github.com/odoo/odoo/pull/52351 already improved the display by hiding some account properties if it wasn't really neeeded on manual inventory valuation. Specification ============= Keep the Account Properties section visible in any cases. The price difference account is the only field of the section which is only used in automated valuation. closes odoo/odoo#54210 Taskid: 2232026 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jul 01, 2020
-
-
snd authored
opws: 2269230, 2248760 When a database has a lot of projects with many tasks, and needs to send a lot of feedback mails, the cron tries to send mails to all tasks at the same time, thus it times out. This fix will allow to treat projects one at a time so that when the cron times out, it will not restart from the beginning. closes odoo/odoo#53922 X-original-commit: 07c828b4 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jul 07, 2020
-
-
jvm-odoo authored
Issue - Create a content in a course with type "web page" - Access it frontend and add a "text - image" block, edit the image as a video - save - The video is displayed correctly - Go into full-screen The video is not displayed at all. Cause The content is added after the page and page widgets are started Solution Trigger the widgets start method OPW-2290233 closes odoo/odoo#54190 X-original-commit: 0f93240e Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
Loan (lse) authored
The idea is to avoid useless SQL request as the searching process is heavy (have to look the word in several field and can be in translation tables). As we at some point fetch all the searched product we do it at the beginning and use its information to gain performance on other queries. Execution time in e-shop for "test" on client database (160 000 product with 4500 published): - Before: ~ 7 sec - After: ~ 2 sec OPW-2256662 closes odoo/odoo#54202 X-original-commit: ec743deb Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Xavier Dubuc authored
- Remove no more used ThreadViewer prop : messageListInitialScrollTop - Remove no more used ChatWindow prop : threadInitialScrollTop - Rename ThreadViewer field threadCacheInitialPosition to threadCacheInitialScrollPosition - Use the scroll position to set message list scroll on mounted - Fix old test which was not simulating correctly home menu show - Add tests to check that scroll position is correctly saved even if ChatWindow is folded - Fix traceback when showing/hiding home menu with a folded chat window task-2285691 closes odoo/odoo#54198 X-original-commit: 31123a94c156424b3962fe4aebc3cc60a7a89223 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
qsm-odoo authored
*: website Update the visibility (from dependencies and _computeWidgetVisibility function) for all widgets, including the ones which are children of main widgets (e.g. new ability to hide some choices from a select depending on other options). closes odoo/odoo#54162 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Aaron Bohy authored
Before this commit, in a grouped kanban view with sample data (e.g. crm.lead), one could toggle the 'settings' dropdown menu of a group, and then drag&drop the group by clicking on the muted "Fold" item in the dropdown. After this commit, dragging a column is only possible by clicking on the column title (but not on the 'config' or '+' icons, nor the config dropdown). Task 2290197 closes odoo/odoo#54179 X-original-commit: 58c38a024c96eba3469c142a8422b7bd0ab54ea4 Signed-off-by:
Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com> Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
jvm-odoo authored
Issue Chrome - Sales > Product - Select a file - Change something in the file - Re-select it Nothing changed Cause Chrome doesn't trigger change on input if the file is the same Solution Clear the input value after the parse_preview so we can load a new file even if the preview failed. OPW-2288191 closes odoo/odoo#54175 X-original-commit: f7d2bdf6 Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
qsm-odoo authored
The 'inset' checkbox of the shadow option was still displayed for no reason. A "display: none" inline style was added on it but as inline style is not considered for editor widgets I don't know how it could have ever worked. closes odoo/odoo#54168 X-original-commit: b0de225c721e54b76dcbe49f9769ac371db39c05 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Julien Mougenot authored
Before this commit, there were a few tests in the "sample server" suite that asserted that every group resulting of a "read_group" would contain at least one record, while there was actually a slight chance of it not happening. Now, the sample server used in the tests has been rendered deterministic and these kind of issues are completely avoided. closes odoo/odoo#54164 X-original-commit: a6d32ff46558b68ce3f19458f29c311ee5c658fd Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com>
-
- Jul 06, 2020
-
-
Olivier Dony authored
The CDN implementation for resources works by matching well-know attributes (`href`, `src`, `action`) that hold URLs matching the CDN filters and injects the CDN prefix. However 13.0 introduced lazy loading for assets in #32181, so the attributes are now prefixed with `data-` and replaced at runtime. This PR updates the tag matching in order to cover both variants of attribute names. closes odoo/odoo#54156 X-original-commit: 6d4b5fcd Signed-off-by:
Toufik Benjaa (tbe) <tbe@odoo.com>
-
- Jul 07, 2020
-
-
Jeremy Kersten authored
Now, slug uses seo_name if field exists before to fallback on display_name. It allow to have a custom url without change the product name already used in backend e.g. or just because you want add some keywords for seo. task-2291676 closes odoo/odoo#54152 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Jeremy Kersten authored
Now, slug uses seo_name if field exists before to fallback on display_name. It allow to have a custom url without change the product name already used in backend e.g. or just because you want add some keywords for seo. task-2291676
-
- Jul 06, 2020
-
-
qsm-odoo authored
The mixin was inconsistent: depending on the color, the created rules were `!important` or not. This causes bugs with new master features. closes odoo/odoo#54151 X-original-commit: 83d8c8b66bd9e58b08fe0aa66d2be7bab691ce3e Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jul 07, 2020
-
-
Hardik Prajapati authored
Before this commit, boolean fields (without widget="boolean") in kanban views were displayed as [Object object], because when no widget is specified, we display the (textual) formatted value of the field. However, the boolean formatter returns by default a string encoding an html checkbox. This commit passes the correct option to force a string formatting, so it now displays "True" or "False". Moreover, this commit uniformizes formatter options for that purpose, as another option had been recently introduced for monetary field. Note that those options should not be necessary, as formatters should always return text values (no html). But this is a larger change, that we might do in the future. Task 2280394 closes odoo/odoo#53937 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Denis Ledoux authored
Use case: - `./odoo-bin -d mydb -i website` - `./odoo-bin -d mydb -i base_automation` - `./odoo-bin -d mydb -u website,base_automation` ``` odoo.addons.base.models.ir_model: Deleting 2652@ir.model.fields (base_automation.field_base_automation__website_published) odoo.addons.base.models.ir_model: Deleting 2651@ir.model.fields (base_automation.field_base_automation__website_url) odoo.addons.base.models.ir_model: Deleting 2650@ir.model.fields (base_automation.field_base_automation__website_path) ``` The issue comes from the fact: - `website` adds multiple website related fields on `ir.actions.server` https://github.com/odoo/odoo/blob/30e94d305f9cffa816ddc213e0b9329c0263c145/addons/website/models/ir_actions.py#L16-L18 - `base.automation` inherits by delegation of the `ir.actions.server` fields thanks to `delegate=True` on its field `action_server_id` https://github.com/odoo/odoo/blob/30e94d305f9cffa816ddc213e0b9329c0263c145/addons/base_automation/models/base_automation.py#L37 - when `base_automation` is installed after `website` when `_reflect_model` is called, the website related fields on `ir.actions.server` are well in the `_fields` of the `base.automation` model, and there an xmlid for these fields is created e.g. `field_base_automation__website_published` https://github.com/odoo/odoo/blob/30e94d305f9cffa816ddc213e0b9329c0263c145/odoo/addons/base/models/ir_model.py#L881-L882 - during the `-u website,base_automation`, `_reflect_model` on `base.automation` is called before the website related fields coming from its inherits on `ir.actions.server` are added in its `_fields`, and is not recalled after they are added, when the `website` module is loaded and these website related fields are added on `ir.actions.server`. Because of this, at the end of the upgrade, in the `ir.model.data` `_process_end`, as the xmlids of these fields have not been loaded, they are being deleted, because the ORM considers these fields were dropped from the source code because their xmlids have not been loaded during the upgrade. Adding the model `base.automation` in the `inherits_children` of `ir.actions.server` when the delegate field `action_server_id` is added make sure `_reflect_model` is called on `base.automation` after the website related field are loaded on the model `ir.actions.server`, and therefore ensure the xmlids are properly loaded, therefore preventing the fields deletion. Additionaly, `delegate` and `inherits` are supposed to be equivalent, it's just two ways to do the same thing. Before this revision, when using `delegate`, `base.automation` is not in the `inherits_children` of `ir.actions.server`: ``` In [1]: env['ir.actions.server']._inherits_children Out[1]: set() ``` while, by converting the `delegate` to an `inherits`: ```diff diff --git a/addons/base_automation/models/base_automation.py b/addons/base_automation/models/base_automation.py index 196ebe9965f..c073150386a 100644 --- a/addons/base_automation/models/base_automation.py +++ b/addons/base_automation/models/base_automation.py @@ -30,11 +30,12 @@ class BaseAutomation(models.Model): _name = 'base.automation' _description = 'Automated Action' _order = 'sequence' + _inherits = {'ir.actions.server': 'action_server_id'} action_server_id = fields.Many2one( 'ir.actions.server', 'Server Actions', domain="[('model_id', '=', model_id)]", - delegate=True, required=True, ondelete='restrict') + required=True, ondelete='restrict') active = fields.Boolean(default=True, help="When unchecked, the rule is hidden and will not be executed.") trigger = fields.Selection([ ('on_create', 'On Creation'), ``` it is: ``` In [1]: env['ir.actions.server']._inherits_children Out[1]: {'base.automation'} ``` closes odoo/odoo#54171 X-original-commit: 3fd162db Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
- Jul 06, 2020
-
-
Xavier Dubuc authored
Before this commit, when clicking on reply in inbox would send a message whatever the subtype of message the reply is linked to. This commit makes sure that if the message which we want to reply to is a note (resp. comment), then the reply will be a note (resp. comment) task-2282363 closes odoo/odoo#54158 X-original-commit: 27956951eebc7c068a7d57e8bd21c29522f3ff9e Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Xavier Dubuc authored
task-2280151 closes odoo/odoo#54157 X-original-commit: 83f2a0605ad80cb8b544651b47b7d27e11b332cb Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
qsm-odoo authored
*: website The style to achieve the chess-like bg result was duplicated at many places. The 'web' app was also actually using an image from the 'web_editor' app (we can live with it in stable as web_editor always comes with web in auto_install but this was still a mistake). closes odoo/odoo#54154 Also: fix some layout issue in the colorpicker widget. Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
lejeune quentin authored
When we upgrade the IoT we wait that the version of box match with the last version of IoT Box before to refresh. We make a request to '/hw_proxy/get_version' to get the actual version. In Jinja this response give a float. We compare this value with a string using '===' who want that the format match. So we doesn't compare the format of values but only the value by putting only '=='. closes odoo/odoo#54149 X-original-commit: 06f9baae Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
Xavier Dubuc authored
See also odoo/enterprise#11684 task-2282273 closes odoo/odoo#54141 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Xavier ALT authored
In case a field is limited to specific groups on the model, those fields are discarded from `fields_view_get()` but can still be referenced by some filters on the search view causing a traceback (see #53797) Model: ```python class MyModel(models.Model): my_field = fields.Char(groups='base.group_system') ``` Search views: ```xml <search string="My Model"> <filter name="group_myfield" context="{'group_by': 'my_field'}"/> </search> ``` This commit ensure those filter are correctly discarded. OPW-2284621 closes odoo/odoo#54112 X-original-commit: b3452a1863c36290b13e16161e2703d9a3737f0e Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-