Commit Graph
104941 Commits
Author SHA1 Message Date
Simon Lejeune 1871b33dbf [IMP] web: export: keep compatible fields when switching export type
Previously all the fields were removed when switching export type, even
if they are available in the newly selected export type. This commit
fixes that.
2016-08-26 18:16:35 +02:00
Christophe Simonis f4738e7bb5 [MERGE] forward port branch saas-12 up to 78e9c7f 2016-08-26 18:06:17 +02:00
Christophe Simonis 78e9c7f567 [FIX] website_event: use new t-options attribute in qweb vie 2016-08-26 17:29:15 +02:00
Christophe Simonis de0d503421 [MERGE] forward port branch saas-11 up to f0c8224 2016-08-26 16:59:45 +02:00
Pierre Masereel c855126069 [FIX] website_portal: remove keep_query on archives
It was impossible to pass from  an archive to another because of
the keep_query in the url generated that set multiple times the
same argument in the url. Removing this allow to have a 'date_begin'
and a 'date_end' corresponding to the selected archive.
2016-08-26 16:32:07 +02:00
Simon Lejeune 4a5c3499e5 [FIX] stock: picking report
The message telling you to click on the "reserve" button was not displayed
when it should.
2016-08-26 16:22:13 +02:00
Jeremy Kersten 49b705e862 [IMP] web: allow to custom button_boolean widget
eg:
    <field name="active" widget="boolean_button"
         options="{
            'terminology': {
                'string_true': 'Published',
                'hover_true': 'Unpublish',
                'string_false': 'Unpublished',
                'hover_false': 'Publish'
             }
          }"
    />
2016-08-26 15:21:09 +02:00
Jeremy Kersten 9a01be1265 [IMP] website_sale: add multi image on product template. 2016-08-26 15:21:09 +02:00
Martin Trigaux f0c8224175 [FIX] update saas-11 translations by merging 9.0 and master
using the --uses-first parameter on msgmerge this time
2016-08-26 15:19:04 +02:00
Simon Lejeune 03aae0d3d5 [FIX] mass_mailing, website_mass_mailing: "group_website_popup_on_exit" group
This group was defined in the mass_mailing module but is only working when
you install website_mass_mailing. What this group does is allowing to insert
a newsletter snippet in the page, thus it has nothing to do in the mass_mailing
module which doesn't depend on website. Also, the snippet itself was already
defined in website_mass_mailing.

Moved all the things to website_mass_mailing.
2016-08-26 15:18:36 +02:00
Christophe Simonis 717a4a51a5 [MERGE] forward port branch saas-10 up to 7a4116c 2016-08-26 14:57:43 +02:00
Martin Trigaux 84cd253c77 [IMP] remove translations for empty modules 2016-08-26 14:46:23 +02:00
Christophe Simonis 7a4116cd03 [MERGE] forward port branch 9.0 up to 1b15aa5 2016-08-26 14:43:03 +02:00
Christophe Simonis 57972b8754 [FIX] point_of_sale: group pos entries by tax
Forward-port of dc975f3b0b which have
been forgotten during previous commit
2016-08-26 14:37:55 +02:00
Richard deMeester 1b15aa590b [FIX] account_budget: reset correctly result variable
If a budget line has no analytic account id, the code is intentional
about returning a value of 0 for it.  It is possible, that in some
cases, depending on the order of lines processed, the routine returns
the previous value, as it does not initialise an important
variable on each iteration of the loop.

Closes #13303
2016-08-26 14:19:57 +02:00
qsm-odoo 142119ae3c [MERGE] web,test_new_api: convert x2many tour and move it out of web
- Convert x2many tour to new web_tour.tour system
- Move x2many tour out of web (as web is not duplicated in enterprise
anymore and the new tour system allow to define edition-only steps)
2016-08-26 13:51:03 +02:00
Christophe Matthieu 5828558137 [IMP] test_new_api: convert widget_x2many tour to use web_tour 2016-08-26 13:50:38 +02:00
Christophe Matthieu 4302dda5a4 [IMP] web/test_new_api: move widget_x2many tour into test_new_api 2016-08-26 13:50:38 +02:00
qsm-odoo b9c52e740a [MERGE] web_tour, *: new registration system + run as non superuser
* crm, project, website, website_event, website_blog, website_forum,
website_sale, web_editor

- Allow to properly extend tours with new registration system
- Allow to properly launch tours as non superuser
2016-08-26 13:43:39 +02:00
Christophe Matthieu ec85e6ecd3 [IMP] web_tour: add keydown action helper
(used by web_editor tours)
2016-08-26 13:39:55 +02:00
qsm-odoo 933949085d [FIX] web_tour,web_editor: allow running tour in every context
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).
2016-08-26 13:39:55 +02:00
qsm-odoo f9a84b5ebc [IMP] web_tour, *: allow to properly extend tours
* 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.
2016-08-26 13:39:55 +02:00
Thibault Delavallée 012270b59d [REV] "[FIX] product: avoid search returning two times the same product"
This reverts commit c34972a296.

Please check what you are doing or stop committing in official branches.
2016-08-26 13:11:07 +02:00
Jeremy Kersten 8a6ce978ff [FIX] website_crm_partner_assign: fix traceback when save 'Edit Opportunity'
Add label for usability, didn't understand what was the date field e.g.

Fix bug when no priority, 'priority' field was not submitted -> save function crash
Fix bug textarea, if title_action is False, not textarea, so no field
title_action submitted -> save function crash

After this commit, we can click on save and it should work...

No priority or 0 => 0
No title or "" => ""
2016-08-26 13:05:07 +02:00
Jeremy Kersten 925b480aa9 [FIX] website_blog: link send by mail crash
/mail/view?model=blog.post&res_id=1

crash in 'res_id': self.id

AttributeError: 'blog.post' object has no attribute '_ids'
2016-08-26 13:05:07 +02:00
Jeremy Kersten 7d0f1cc23d [IMP] website_portal: increase default items per page to 20
Feedback: 10 is very few
2016-08-26 13:05:07 +02:00
Renato Lima e23e018285 [FIX] product, purchase: move purchase_ok from purchase to product module
Account uses this field from purchase module, but account don't depend of
 purchase.

Already done for sale_ok previously.

See #13268 #315 #13271
2016-08-26 13:05:07 +02:00
Martin Trigaux a120803843 [I18N] export master source terms 2016-08-26 12:46:48 +02:00
Fabien Pinckaers eda49b91d4 [IMP] mrp: lots quantity aloways visible (the + and - icons are not clear at all) 2016-08-26 11:48:06 +02:00
Fabien Pinckaers c34972a296 [FIX] product: avoid search returning two times the same product 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 6a35009306 [IMP] mrp: better kanban view for attachments 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 8765353fa7 [FIX] mrp: allows to select the BOM on workorder messages 2016-08-26 11:48:06 +02:00
Fabien Pinckaers 2b2351a644 [FIX] mrp: empty list message on product attachments 2016-08-26 11:48:06 +02:00
Josse Colpaert 2c3db076f9 [IMP] mrp: normal/phantom bom filters on bom search 2016-08-26 11:45:44 +02:00
Josse Colpaert 4f9af6838f [FIX] mrp: use unit_factor when generating lots in work orders and make sure to generate lots when necessary
When (re)generating the stock.move.lots in the workorder,
it should use the unit_factor on the move like everywhere else.
This makes sure we do well with the explosion of phantom boms too.

It is also important that if there is no operation_id given
explicitly in the "consumed in operation" on the bom line,
that it still generates the necessary stock.move.lots in the last work order.

Also, in the work order it is better to set the quantities done already.
That way we don't forget to consume them.
2016-08-26 11:45:44 +02:00
Martin Trigaux 8fc4feb4ca [IMP] product_margin,website_sale: english 2016-08-26 11:36:15 +02:00
Dhaval Suthar 5cef19c165 [FIX] sale_service_rating: rating of issue
* When an issue was set in stage that has a rating email template
  and that the project was set on 'rating when changing state',
  there was a warning with Failed to render template.
  There was a small error in a condition that fired exception.
2016-08-26 11:35:41 +02:00
Martin Trigaux dfb842ea30 [FIX] web: use the correct grammare in error message
The "There *are* more than 42 fishs" form should be used.
Source: @yenthe666 & http://english.stackexchange.com/a/35998
2016-08-26 11:21:18 +02:00
Pierre Masereel 770c9c4607 [FIX] lunch: remove required on user_id
* 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.
2016-08-26 10:57:13 +02:00
Jérome Maes ba564c42c1 [IMP] hr_recruitment: remove stupid option
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.
2016-08-26 10:40:13 +02:00
Jérome Maes 17f69e70fe [IMP] ir_module: make icon_image depends on icon path field
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.
2016-08-26 10:40:05 +02:00
Cedric Snauwaert a86143276b [FIX] account: fix exchange rate entries
When a reconciliation creating an exchange rate entry was done, the newly account_move_line corresponding to the exchange entry was not given a full_reconcile_id.

Also when doing a full reconciliation in different currency, full_reconcile_id was not set on account_partial_reconcile object resulting in problem when trying to unreconcile entries.

This is a backward fix of commit: 9b5fed4976 and cda132bba5
2016-08-26 09:44:13 +02:00
Christophe Matthieu 5c2274e169 [IMP] crm, project: do not assume number of records in column during tour 2016-08-26 09:30:38 +02:00
qsm-odoo 450c685350 [FIX] web_tour: make sure tips are consumed before redirections
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.
2016-08-26 09:30:38 +02:00
Christophe Matthieu 800852b1d3 [FIX] web_tour: better simulate text changes
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.
2016-08-26 09:30:38 +02:00
Christophe Matthieu b536f1bb1b [IMP] web_tour: allow to change a select tag in run 2016-08-26 09:30:38 +02:00
Christophe Matthieu ee4065e2bc [IMP] web_tour: add in_modal option to allow checking the dom below the modal 2016-08-26 09:30:38 +02:00
Nicolas Martinelli 5f76928f9f [FIX] website, website_event: Google Maps image
Google made the use of an API key mandatory to use the "Google Static
Maps API". The API key field will be created for the upcoming version.

opw-686510
2016-08-25 18:25:33 +02:00
Christophe Simonis 5c2025a3af [MERGE] forward port branch 9.0 up to c578fb7 2016-08-25 18:23:47 +02:00
Pierre Masereel 4ccc1f9bc8 [FIX] website_sale_digital: fix attachments stat button domain
Due to a syntax error in the domain of product attachement
a traceback was given.
2016-08-25 16:44:30 +02:00