- Aug 26, 2016
-
-
qsm-odoo authored
Previous implementation allowed to run tour as a non-superuser but this was only working in the backend where the static file tip.xml is always loaded. In the frontend or in other non-backend context, this file has to be loaded just before trying to launch the tour as a non superuser (indeed, previous implementation loaded the file in the frontend only if the user is a superuser).
-
qsm-odoo authored
* crm, project, website, website_event, website_blog, website_forum, website_sale Eg: the tour 'shop_buy_product' is extended by the website_sale_options addons to add a step to close a modal. The current solution was requiring the module that defines the tour to extend, then add/remove steps in the "step" key of the tour definition. Some of the problems with this method were: * The "register" method calls the "update" method to immediately search for tip to place once registered (as register may be called after the DOM is ready). So extensions of tours were happening after the tours were started (and the tours were not restarted). * The addition/removal of steps was happening after they were filtered according to the "edition" key. To allow extension, the system is changed as follow: * The "register" method now only saves the steps and options without modifying them and does not call the "update" method. * Once the DOM was ready, the tour service started listening to DOM mutations and called the "update" tour method. Now, this "update" call is replaced by a "_register_all" call, on DOM ready and at the end of the current call stack (which makes sure all modules are loaded). This "_register_all" method marks the registered tours as ready after having filtered the steps according to the "edition" key and initialized the current step to trigger. * Also, tours can now define a "wait_for" option which allow them to be marked as ready for run and update after the given deferred. Those tours can now also be extended without having to wait for the deferred. PhamtomJS must wait for the "ready" key to be true to run the tour.
-
Christophe Matthieu authored
(used by web_editor tours)
-
Martin Trigaux authored
-
Martin Trigaux authored
-
Martin Trigaux authored
The "There *are* more than 42 fishs" form should be used. Source: @yenthe666 & http://english.stackexchange.com/a/35998
-
Pierre Masereel authored
* Since the user_id field is required, it was impossible to delete user when he had 'lunch.order' or 'lunch.cashmove'. We removed required arguments on 'user_id' fields in model and set "required='1'" on the fields in the view. * There was a 'ondelete="cascade"' on 'order_line_ids' which does nothing because it's not supported on One2many fields.
-
Jérome Maes authored
Disabling this resumes indexation option will uninstall hr_recruitment module, since it removes 'document', which is in the dependencies of recruitment. This makes no sense at all and should have been remove a long time ago.
-
Jérome Maes authored
For now, the base64 image (binary field) is the content of the image in /static/src/description.png The kanban view use 'icon' field, and form view use 'icon_image' field. For module having no icon defined the default image is not the same on kanban or on form view. Moreover, it makes more sence to add this dependency.
-
Christophe Matthieu authored
-
qsm-odoo authored
If a tour step action induces a direct redirection the _consume_tip method was called while the redirection was being done. Now, _consume_tip is always called before any redirection really begins. Note: as the run method also has to detect redirections and do actions according to if there is one or not, a function has been created to implement the redirection detection.
-
Christophe Matthieu authored
The change event has to be triggered when changing an input, a select and even another DOM element with contentEditable attribute. When changing an input, the "keydown" and "keyup" events also had to be triggered.
-
Christophe Matthieu authored
-
Christophe Matthieu authored
-
- Aug 25, 2016
-
-
Nicolas Martinelli authored
As of June 22 2016, the use of API key is required to access the following: - Google Maps JavaScript API - Google Static Maps API - Google Street View Image API https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update For domains accessing the API before June 22, it will still work without an API key. Since Google advises to use the API key, we hide the Maps if no API key is defined.
-
Nicolas Martinelli authored
An update of the library is necessary, since imarker images ("m*.png") are not accessible on googlecode anymore. They should now be added directly with the library.
-
Christophe Matthieu authored
Previous simulation was "mousedown" then "mouseup" then "click". It is not enough for some feature (like bootstrap, web_editor...). These rely to have a "mouseenter" before and a "mouseleave" after the click.
-
Christophe Matthieu authored
The default action for a tour step whose trigger is a <a/> tag is: * Redirection to the a href if it is a valid link * Clicking on it if the <a/> is used as a handler-binded button The previous condition forgot to consider href="javascript:void(0)" as a non-valid redirection link.
-
Christophe Matthieu authored
When checking the consume type of an input element, the type attribute was checked. Indeed a "text" input has a "input" consume event, while a "button" input has a "mousedown" consume event. The problem here was that when the input has no type, the "mousedown" consume event was chosen while the default type for input is "text" for browsers.
-
qsm-odoo authored
When searching the ideal location for a tip on the body or the html element, the previous implementation was wrong. In that case, the ideal location is always the body.
-
Foram Shah authored
There was a bad inheritance of 'payment.payment_acquirer_payu' record
-
qsm-odoo authored
Before this commit, the callback which selects the currently used style in the dropdown menu was binded to the mousedown event on the div which contains the dropdown-toggle and the dropdown-menu. This was wrong as the callback is thus called even when clicking in the dropdown menu.
-
qsm-odoo authored
Instead of logging "Killing tour x" when calling the run method a second time and then logging "ok" when consuming the old running tour, the message "Killing tour x" is now logged as an error for phamtomJS. Also, let "x" be the tour which is killed and not the one which wanted to be runned.
-
Quentin De Paoli authored
[FIX] account_tax_cash_basis: add the mechanism to report cash basis taxes at the payment time only. Previsouly they were directly included in the tax reports, in the period of the invoice, and even if it was still unpaid. Although this is a bugfix, it involves creation of new fields and thus cannot lands at it on stable versions where our policy disallow database changes.
-
Christophe Matthieu authored
* display all lines and don't display the scroll bar into ace editor * lazy read ace lib and add missing lib file * use not minified version of ace lib * Move ace lib from website to web * Added ace widget for webclient * XML mode for view text box * Python mode for server action text box * Removed web_ace_editor.xml, instead added template in base.xml itself * Added widget=ace_editor in compute field of ir.model.fields
-
- Aug 24, 2016
-
-
Fabien Pinckaers authored
-
keyur gajjar authored
Without this patch Email notification of leaved doesnt have the action buttons('approve','refuse') related to rev https://github.com/odoo-dev/odoo/commit/46ccb7036fc478e613667777c3cd59b6406aff17
-
Pierre Masereel authored
* bad creation of a dictionnary with the dictionary comprehension syntax. correction of the syntax. * unnecessery use of decimal precision function because the wizard is already in the good decimal precision. Remove the decimal precision call and lib. * traceback when the valuation account was not defined on product category. raise exception when no valuation account, to explain the user why he can't change the price.
-
Pierre Masereel authored
during the conversion of the method "assign_outstanding_credit", the id parameter was wrongly kept. Now that we are working with recordsets, the id is now stored in self.id related to rev d6e1d411
-
Christophe Matthieu authored
When we use firefox top or bottom arrow the ace container does not scroll automatically if the cursor is not visible.
-
Simon Lejeune authored
Without this patch, there's a traceback when creating a segment due to an onchange trying to set an attribute `ir_filter_id` to a dict. related to rev 0fa2ac1d
-
Pierre Masereel authored
During the conversion of the server action "action_account_print_checks", the "self.env" variable was wrongly kept. Now in server actions we are using the variable "env" directly.
-
- Aug 23, 2016
-
-
qsm-odoo authored
-
Pierre Masereel authored
* get_pdf function expects a list of ids since the removal of old api in this commit: rev 47c67b64 There were still some wrong calls. * while get_action can receive ids and recordsets, get_html and get_pdf are internal methods and still work with list of ids
-
Christophe Matthieu authored
-
Christophe Matthieu authored
* display all lines and don't display the scroll bar into ace editor * lazy read ace lib and add missing lib file * use not minified version of ace lib * Move ace lib from website to web * Added ace widget for webclient * XML mode for view text box * Python mode for server action text box * Removed web_ace_editor.xml, instead added template in base.xml itself * Added widget=ace_editor in compute field of ir.model.fields
-
Simon Lejeune authored
The onchange produced a traceback because, even if start and stop are required, they have no default value. Adapted `_get_duration` function so that it is robust to that usecase.
-
Raphael Collet authored
-
Yannick Tivisse authored
The product_manager field is existing since v6.0 and never displayed in any views. It is used in sale_timesheet module. A task created from a procurement_order (if it is a service and we track the service) is assigned to the product manager. It doesn't make a lot of sense as the value should be set directly in the database. We will remove the field and assign the current user to the task instead, which is the common behavior in Odoo.
-
Csaba Fazekas authored
-