- Apr 01, 2020
-
-
Adrian Torres authored
Before this commit, a lot of leftover import shims existed in the codebase for py2-py3 compatibility, these are no longer needed since Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL. With this commit, these shims are dropped, making the code cleaner, easier to read and with one less dependency. Queue -> queue -> py2-py3 compatibility xmlrpclib -> xmlrpc.client -> py2-py3 compatibility ConfigParser -> configparser -> py2-py3 compatibility itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility urllib -> urllib.request -> py2-py3 compatibility __builtins__ -> builtins -> py2-py3 compatibility _winreg -> winreg -> py2-py3 compatibility mock -> unittest.mock -> merged into CPython The debian/fedora packages and requirements.txt have been updated accordingly closes odoo/odoo#44601 Related: odoo/enterprise#8141 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Mitali Patel authored
Add a new group allowing administrators to remove the ability for users to bulk-export data from the database. It's pretty minor as technically the user can still access the underlying object through the basic methods but it's still a bit of a roadblock. Users can export by default. Task 2170900 closes odoo/odoo#45400 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
lbs-odoo authored
The 'Re-Invoice Expenses' (expense_policy) can be visible only if 'Can be Expensed' is true. TASK#2169344 closes odoo/odoo#48525 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
william authored
The moves that have this field set are the reversal of the value of that field. Not the other way around. closes odoo/odoo#48667 Related: odoo/enterprise#3334 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Mar 31, 2020
-
-
Rémy Baranx (bar) authored
Purpose ======= Having price and discount on quotation template is quite confusing as it is more the job of pricelists. In order to make it more simple for the user, we should remove the fields price_unit and discount from quotation template. Implementation ======== Now, the public price of a product is used instead of the price from the quotation template. If a pricelist exists, it is taken into account as before. + Add new tests to check the sale order template behavior. closes odoo/odoo#47186 Taskid: 47186 Related: odoo/upgrade#972 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Apr 01, 2020
-
-
dmonzonis authored
The Sponsor Website field in event sponsors is now automatically computed from the selected partner's data, but the field can still be changed afterwards in case the partner wants to specify a different website url for its sponsoring. closes odoo/odoo#48217 Task: 2205443 Related: odoo/upgrade#981 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
dmonzonis authored
Before this commit, event sponsors could not be archived, only deleted. Now, users are able to archive event sponsors if they want to set them as inactive but do not wish to delete them from the database. A filter was also added in the Event Sponsor view to quickly retrieve archived records. Also, archived sponsors will show an "Archived" ribbon in their form view. Task: 2205443
-
Toufik Ben Jaa authored
- A bug has been introduced by the PR https://github.com/odoo/odoo/pull/46719 This issue prevented flushes to database when no `uid` is set in the current environment. This happens when database changes are made in `auth="none"` routes. In a MonoDB setup this was working because Odoo consider `None`, `False` as `null` and was always bound to a database. Nothing prevents to write `null` in the columns `create_uid` and `write_uid` in database. The PR that introduced the bug wanted to block the cases where `uid` is an instance of the class `RequestUID` to avoid `Cannot adapt type` errors. So testing that `uid` is an integer isn't enough. Two fixes were possible here, either check if `uid` is an instance of the class `RequestUID` or if it is either an integer, `False` or `None`. To avoid noise and imports from `odoo`, we test that `uid` is an instance of `None`. The case where it is `False` is already tested in the python code: ```python isinstance(env.uid, int) ``` (manual) forward-port of odoo/odoo#48685 closes odoo/odoo#48693 Signed-off-by:
Toufik Benjaa (tbe) <tbe@odoo.com> Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
Olivier Dony authored
The point is to warn admins of production and public-facing databases. However it is not necessary to nag users of demo databases, even when connecting non-locally (e.g. on runbot). Updates #37580 (manual) forward-port of #48689 closes odoo/odoo#48691 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Mar 31, 2020
-
-
Dhruv Patel authored
After this commit, in the graph view, when the user clicks on parts of the bar and pie charts, it opens the list view of the concerned records (like what was already done in the pivot view). This is the default behavior, but it can be deactivated by setting the attribute 'disable_linking' to true in the view. Task 2198461 closes odoo/odoo#47796 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-
Benjamin Vray authored
Part of https://github.com/odoo/odoo/pull/38950 task-2087641 closes odoo/odoo#38950 Related: odoo/design-themes#183 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benjamin Vray authored
Add an option to open dropdown menus on hover instead of click. Part of https://github.com/odoo/odoo/pull/38950 task-2087641
-
Benjamin Vray authored
*: portal Adding a choice of several header behaviors (fixed, fade out with scroll, etc.). Review the way those animations works in mobile/desktop and now perform them without duplicating the header DOM element. Also allow to hide of adapt the size of the logo when the page is scrolled. Part of https://github.com/odoo/odoo/pull/38950 task-2087641 Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Benjamin Vray authored
Also remove all t-fields from footers to have only static contents in footers. For social links, a controller is added so that a "static url" /website/social/xxx always redirect to the correct set URL for the given xxx social network. Part of https://github.com/odoo/odoo/pull/38950 task-2087641 Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Benjamin Vray authored
*: portal Part of https://github.com/odoo/odoo/pull/38950 task-2087641 Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Benjamin Vray authored
The name of the site displayed on the website is now dissociated from the technical name of the website. Part of https://github.com/odoo/odoo/pull/38950 task-2087641
-
Benjamin Vray authored
* theme_bootswatch, web_editor Split the customizeWebsite method into 3 different methods so we can use customizeWebsite for variable, views or color on the same widget. Part of https://github.com/odoo/odoo/pull/38950 task-2087641
-
Jeremy Kersten authored
In case a controller with a relative url return an absolute link the current crawler follow the redirect and all external link of this external url too. Now we don't follow redirection if it is on an other netloc that the current one. Part of https://github.com/odoo/odoo/pull/38950 task-2087641
-
Odoo's Mergebot authored
This merge updates the FullCalendar library from v3 to v4. The purpose of this update for us is to add proper support of the drag-and-drop of events on mobile. But also to fix scrolling issues present mainly on smaller screens. In those configurations multi/inner-scrolls were present resulting in either the inability to properly scroll the desired content or even blocking altogether the scroll. As a nice-to-have feature, version 4 removes its dependency on the jQuery library, allowing faster loading of a bigger set of events. Last but not least, this version also reduces its dependency on the Moment.js library (but still keeps a binding to it for compatibility purpose). In addition to the update of the library itself, this merge adapts the codebase to the library's API changes and extracts some methods and templates to allow further customization of the calendar view. Finally, a couple of fixes are also applied : * time-based instead of ID-based order of events in month view * unwanted transformation of time-based events into all-day events in month view Task ID: 2092550 closes odoo/odoo#48630 Related: odoo/enterprise#9554 Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com>
-
william authored
Task 2198388 When testing and demoing localization, it can but cumbersome to create a Company with the right credentials and install the chart of account on it. This commit aims to shorten the process. The first version only contains a valid vat (or similar) number, but we should add fields specific to localization in the future so that we have a working environment as soon as we install the localization. change manifest closes odoo/odoo#48102 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Odoo's Mergebot authored
PURPOSE Improve the various sessions flow to make it easier for attendees to reach the session and to allow better interactions between the host and his audience. This comes with small usability improvements as well as increased "beautifulness" by using custom layouts & animations. SPECS General specifications, see sub-commits for details. - Currently, the "short link" feature is good but it still needs to be improved with the following points: - Make the default "code" shorter (4) and digit only. - Allow to customize the "code" - Check for potential collisions - When attendees reach the survey through the code, they need to land on the "waiting screen" even if the session is not started yet. This will allow the host to show the survey link even if he forgets to click on "start session" first. - Reduce the fade out / fade in delay when moving from one question to another. It's currently 2 seconds, change it to 1 second. Right now the delay gives a "slowness" impression. - Display matrix choices on the host screen. It will allow attendees that are not participating to have more context. - Add python test/tours to test the survey session flow from the host point of view - Improve survey form navigation (moved buttons, added keyboard navigation) - Auto submit questions and matrix with simple choice DESIGN TWEAKS Slightly improve the survey form by adding a few cosmetic changes, notably: - Add/reduce some margins/paddings - Adjust colors/font-weight - Adjust heights - Change some icons by more fitting replacements - Center matrix choices - Move survey progression to bottom-right - Remove ugly jumbotrons - Hide survey title in page_per_question layout - When there are 5 or less option for simple_choice or multiple_choice questions, display the options vertically. - Only show the textarea for the "comment answer" if the user clicks on the related option. LINKS Upgrade PR odoo/upgrade#897 Task 2208574 closes odoo/odoo#46768 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
David Beguin authored
Purpose ======= Speed up survey completion. Specifications ============== This commit apply an auto commit when user select a choice on a simple choice question or on a matrix question with simple choice. The auto commit happens following those conditions: - Only on simple choice and matrix with simple choice questions - For matrix, only when last subquestion is answered - Only when Back mode is active - If this is not the last question Link ==== PR #46768 Task 2208574
-
Aurélien Warnon authored
This commit slightly changes the way users navigate through the survey form: - The back button was moved to the bottom-right of the screen. - The "Continue" button stays at the center but there is also a "next" button at the bottom-right of the screen (same behavior -> submits the form) - Arrow keys (left + right) navigation is now supported Technical note: As the survey navigation is now outside of the survey content, that was re-rendered on every submit, we have to manually refresh the navigation with a second template render on the controller side. LINKS PR #46768 Task 2208574
-
Aurélien Warnon authored
This commit slightly improves the survey form by adding a few cosmetic changes, notably: - Add/reduce some margins/paddings - Adjust colors/font-weight - Adjust heights - Change some icons by more fitting replacements - Center matrix choices - Move survey progression to bottom-right - Remove ugly jumbotrons - Hide survey title in page_per_question layout - When there are 5 or less option for simple_choice or multiple_choice questions, display the options vertically. - Only show the textarea for the "comment answer" if the user clicks on the related option. One of the biggest design change is the introduction of a "minimized layout" that reduces the width of some question types on bigger screen. This gives a cleaner look to the survey form. Impacted question types: - Numeric - Date - Datetime - Simple / Multiple choices Technical note: As the survey progression is now outside of the survey content, that was re-rendered on every submit, we have to manually refresh the progression with a second template render on the controller side. Small fix addition: We also fix the matrix key selection feature in case the matrix had a total of more than 25 options, which would raise an error. Indeed, they "use key selection" condition only checked the number of rows, and not the rows * columns (total number of options count). LINKS PR #46768 Task 2208574
-
Romeo Fragomeli authored
Before this commit, when the duration of an event is "24H * n". The event is set as allDay. This is strange to have a event that start a 8H and end at 8H of next days and the event is in the allDay slot. After this commit, we don't change the allDay flag anymore. Steps to reproduce: * Open calendar in week view * Create a event from 8 -> 16 * Then resize the end of this event from 16 -> 8 of the next day (BUG) Task ID: 2183249
-
Aurélien Warnon authored
PURPOSE This commit adds a big flow test/tours to the survey sessions, for the host point of view. This will avoid breaking the feature with future changes, as it contains some tricky and complex mechanics (especially the screens chaining). SPECS The tour tests the whole host point of view. Break down of the testing/tour main points: - Create the survey session - Check our attendees are accounted for - Open the 'session manager' - Display the nickname question, and move to the next one (as answers are not displayed for nickname questions) - Check answers are correctly displayed for the 3 'simple' question types (text, date, datetime) - Move to the choice question and check that answers are displayed - If everything is correctly displayed, move to the next question - On the scored choice question, check that the screens are correctly chained: no results displayed -> results displayed -> correct/incorrect answers -> leaderboard - On the scored + timed multiple choice question, check the same than previous question, except that the results are supposed to be displayed automatically when the question timer runs out - Test the 'back' behavior and check that screens are reversed correctly - Check that our final leaderboard is correct based on attendees answers - Close the survey session LINKS PR #46768 Task 2208574
-
Aurélien Warnon authored
This commit improves the session host view by showing matrix choices for matrix questions. This is done to help people in the audience that are not participating to the session to have some context about possibles question answers. LINKS PR #46768 Task 2208574
-
Aurélien Warnon authored
PURPOSE Improve the various sessions flow to make it easier for attendees to reach the session and to allow better interactions between the host and his audience. This comes with small usability improvements as well as increased "beautifulness" by using custom layouts & animations. SPECS This commit changes the survey sessions fade in/out delay for both the host and the attendees. When going from one question to another, the total delay is now 1 second (instead of 2 previously), with 500 ms for fade out and 500 ms for fade in. The previous delay gave an impression of "slowness". The delays and "server lag reduction" on the attendees side were adapted accordingly. LINKS PR #46768 Task 2208574
-
Aurélien Warnon authored
PURPOSE Improve the various sessions flow to make it easier for attendees to reach the session and to allow better interactions between the host and his audience. This comes with small usability improvements as well as increased "beautifulness" by using custom layouts & animations. SPECS - For live session only: Currently, the "short link" feature is good but it still needs to be improved with the following points: - Make the default "code" shorter (4) and digit only. - Allow to customize the "code" - Check for potential collisions Added at the same time: - input element is focused when you land on the '/s' page. LINKS PR #46768 Task 2208574
-
Romeo Fragomeli authored
Before this commit, it was possible to create/move an event in the "all day" slot of FullCalendar even when the mapping field wasn't set. With this commit, when the "all day" mapping is not present, the "all day" slot of FullCalendar becomes hidden. Ref: https://fullcalendar.io/docs/allDaySlot Task ID: 2183249
-
Romeo Fragomeli authored
Due to previous commit, in month view, the flag marking events as "all day" is no more present and so some logic is not applied anymore. This results into the wrong end-date. With this commit we avoid to change the end date of an event in FullCalendar. Note that it changes the behavior on drag-and-dropped event in month view: * Before both the last and this commit, an event if 1H will become an "all day" event when it's dropped into another cell. * After them, the time will be the same as the original event and only the date will change. Also, one test was already added in commit odoo/odoo@7af13089dffcd3c9d98716af4aa76b923825fdfc to check that, in month view, when we move a non-"all day" event to another day, it can't change into a all day event. This commit adds a second test to cover the case when the "all day" mapping is present. Task ID: 2183249
-
Romeo Fragomeli authored
Before this commit, events were sorted by ID in month view. Event A occurring after event B would be placed on top of B instead of below. Steps to reproduce: * Go in the calendar app * Insert a event at 12:00 * Insert a event at 8:00 * Insert a event at 14:00 * Go in view month the events are not sorted (BUG) In month view, events are forced to be "allday", so the sequence used can't be based on its time but only on its ID. To fix this, this commit doesn't force the "allday" flag anymore. Task ID: 2183249
-
Romeo Fragomeli authored
Task ID: 2092550
-
Romeo Fragomeli authored
This commit extracts some calendar's event handlers, private methods and templates to create 'hooks' allowing further customization. Task ID: 2092550
-
Romeo Fragomeli authored
In `calendar_tests.js`, the tests about creating an event with timezone in week mode only triggers 7 asserts but they were design to trigger 8 of them. After analysis, it looks like in the commit odoo/odoo@369c20a99bd25172f72f4efde870172a4729aadc the FullCalendar's UI was redesigned and some CSS rules might have add some margin preventing a MouseEvent from being triggered correctly, resulting in misadapted tests. This commit restores the original behavior by adding some pixels to these offsets, allowing the events to be correctly dispatched and adapting again the tests. Task ID: 2092550
-
Romeo Fragomeli authored
This commit updates the FullCalendar library from v3 to v4. The purpose of this update for us is to add a proper support of the drag-and-drop of events on mobile. But also to fix scrolling issues present mainly on smaller screens. In those configurations multi/inner-scrolls were present resulting into either the inability to properly scroll the desired content or even blocking alltogether the scroll. As a nice-to-have feature, the version 4 removes its dependency on the jQuery library, allowing a faster loading of a bigger set of events. Last but not least, this version also reduces its dependency on the Moment.js library (but still keeps a binding to it for compatibility purpose). This commit focus only on the update of the library itself and the adaptation of the related code to keep it working. Further enhancements/fixes will be done later on. To do so it modifies the following points: * Update the library in itself (js, css...). * Convert all FullCalendar's method calls to the new syntax (e.g. `$calendar.fullCalendar('destroy')` becomes `calendar.destroy()`). * Add a utility method to convert v4 events into the old v3 event structure to ease the transition from one version to the other. * Wrap all event's custom fields into a new event's `extendedProps` object (as its the new way of storing them instead of directly as a prop. of the event). * Adapt `slotLabelFormat` and `weekNumberCalculation`. * Use the view's new names: ** `agendaDay` -> `timeGridDay` ** `agendaWeek` -> `timeGridWeek` ** `month` -> `dayGridMonth` * Use the option's new names: ** `viewRender` -> `datesRender` ** `eventMouseover` -> `eventMouseEnter` ** `eventMouseout` -> `eventMouseLeave` ** `isRTL` -> `dir` ** `selectHelper` -> `selectMirror` ** `weekNumberTitle` -> `weekLabel` Ref: https://fullcalendar.io/docs/upgrading-from-v3 Task ID: 2092550
-
- Mar 30, 2020
-
-
Nasreddin (bon) authored
Clarify the kanban view to clearly display how many attendees could show up as well as other places where attendees are mentionned. Task ID 2205701 closes odoo/odoo#48584 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Nisha patel authored
Purpose of the task is, Warn the user that we do not recommend editing the architecture of standard views because During migration if the client does standard views modification then during migration all views will be updated according to the new odoo version and all customization will be lost. So during upgraded database testing issues will come about that views or client will post issues and ask about where our customization is gone. So in this commit, we added alert message on edit of view like: 'Be aware that editing the architecture of a standard view is not advised, since the changes will be overwritten during future module updates. We recommend applying modifications to standard views through inherited views or customization with Odoo Studio.' closes odoo/odoo#48492 Taskid: 2219956 Closes: #48492 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Mar 31, 2020
-
-
Kevin Baptiste authored
Add a related field `accounting_date` in the expense to the expense report. - Should represent the accounting_date field from the expense report linked to this expense - Only visible if the status of the report is approve, post or done - Only visible if the user has at least the Accounting > Auditor access right level - Should be in read-only - Should be stored closes odoo/odoo#48238 Taskid: 2221668 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
fja-odoo authored
* = event, website_event_track, website_sale, website_hr_recruitment, website_livechat, website_sale, website_slides The option to sanitize or not the forms was not available, this will allow better flexibility on whether forms should be sanitized or not on an HTML field. Also we use this new param to allow forms to be added on some already existing html fields where forms where sanitized out. task-2209554 closes odoo/odoo#47318 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-