Commit Graph
110667 Commits
Author SHA1 Message Date
hch-odoo 4e593abb2f [IMP] account: Show cancel button only when account_cancel is installed
Because 'Allow Cancelling Entries' option for journals is made available only when the 'account_cancel' module is installed

Was PR #17216
2017-07-04 16:37:30 +02:00
Denis Vermylen 6f4a40ab67 [FIX] website_project: default search on tasks
set default search to 'content' as expected.
2017-07-04 15:45:31 +02:00
Denis Vermylen 232a44a31d [FIX] sale: missing variable in 'Send by email' template
doc_name was accidentally removed at 5a6f03a1ce.

Shame.
2017-07-04 15:40:54 +02:00
Haresh Shyara 2580cd635d [FIX] website_sale: Use new field name on website settings onchange 2017-07-04 14:21:02 +02:00
Kishan Gajjar aaeef14903 [IMP] web_editor, website(_*): show all snippets even if module is not installed
* mail_channel, mass_mailing, twitter, event

- t-install attribute holds the technical name of the module that
  needs to be install to use a particular snippet.

- Disable the drag & drop feature for these dummy snippets.

- Move some images to website module.

- Installed snippets display at the top of the list.

- Hide not-installed module snippets if user don't have rights to install module.
2017-07-04 10:54:20 +02:00
Khoi Nguyen 79c9f0a7a5 FIX web: clear cache after 'reload' client action
If the 'reload' action is triggered right after a view change, the
latter will only be effective if we refresh the page at the browser
level. To overcome this, we clear the cache every time the 'reload'
action is triggered.
2017-07-04 10:31:09 +02:00
Fabien Pinckaers 5a97afcce1 [FIX] scaffold: small fix in template 2017-07-03 16:33:26 +02:00
Richard Mathot c47c52bfd9 [FIX] base: fetch gravatar images only from views
Before this commit, at each partner creation (including data import,
RPC import and tests) Gravatar server was polled, slowing down partner
batch import.

We then enable this feature only where it is needed: when creating a
partner from a view.
2017-07-03 15:04:29 +02:00
qsm-odoo 42621febc1 [IMP] website_theme_install: optimize animation
Following commit 828c7c3da9:
the kanban record animation when a theme is hovered was blurry with
chrome and laggy with firefox (with linux at least). This commit
removes the scale part of the animation which was the cause of this.
2017-07-03 13:36:46 +02:00
Xavier Morel 9a07a4599c [FIX] doc warnings
* add Sphinx 1.6 compatibility (use app.set_translator when
  available as in that case programmatically setting
  html_translator_class is broken)
* fix a bunch of code block lexers to avoid warnings & get better
  coloration
* add a few options which were referred to without being actually
  defined
* fix some rST formatting
2017-07-03 11:49:03 +02:00
stefanorigano 828c7c3da9 [IMP] website_theme_install: new design
- Handle vertical screenshots
- If a theme is installed, show it first, hide buttons and use a
  specific design
- If no screenshot has been defined, show the cover (or the icon if no
  covers has been defined neither)
- Show theme's name and category
- Allow to filter by category
- Design grouped layout
2017-06-30 17:28:42 +02:00
stefanorigano 8dfc757386 [IMP] theme_bootswatch, theme_default: add screenshots 2017-06-30 17:28:42 +02:00
Martin Trigaux 198d88748e [FIX] pos_*: remaining bad manifests 2017-06-30 16:52:07 +02:00
Martin Trigaux 587b32bcca [FIX] various: badly indented manifest titles
Revealed by ec7b08d1
2017-06-30 16:26:39 +02:00
Martin Trigaux ec7b08d1ff [FIX] base: check description content
Some may say that fe346fa0 made the test fail but this is an illusion
2017-06-30 15:25:44 +02:00
Yenthe V.G fe346fa021 [REM] stock: remove duplicated module description
The proper description is in static/description

Closes #17873
Fixes #3846
2017-06-30 14:43:00 +02:00
Jérome Maes 66bd45a750 [MERGE] website_*: new website chatter
This commit brings a new frontend chatter.
The old one displayed all message on the website
page, and that could be very slow when many many
messages are posted on a document.

The new chatter is more dynamic: we introduce
a pager, to fetch and display only a few messages.
It also still support to post a message if you are
not logged in, using a token mecanism (see
website_quote).

Moreover, a better integration with rating: in the
eshop, when posting a comment, the visitor can add
a rating value (stars).
2017-06-30 11:08:31 +02:00
Jérome Maes 870b51134d [IMP] website_slide: use classical chatter
Slide provided a chatter where you can post message as
public user. We decided to drop that feature in order
to avoid spamming.
Like for all other document, you must at least, be portal
user to post a comment.
Reusing the standart chatter highly simplify the code.
2017-06-30 11:07:01 +02:00
Jérome Maes 760c677d5c [CLN] rating: remove deprecated stuffs, since they are integrated in website_rating 2017-06-30 11:07:01 +02:00
Jérome Maes 548126f1f6 [IMP] website_mail: use access right rather then hardcoded domain 2017-06-30 11:07:01 +02:00
Jérome Maes 0339264d11 [IMP] website_*: adapt website modules using frontend chatter 2017-06-30 11:07:00 +02:00
Jérome Maes ccf869a83e [ADD] website_rating: generic rating management on chatter frontend
Extend new dynamic chatter to manage rating
when posting comment.

The model should inherit of rating.mixin and
its frontend chatter should allow rating to enjoy
star widget and rating card.

This is more generic : stats, rating, ... are manage
in one place (this module) for all document.
2017-06-30 11:07:00 +02:00
Jérome Maes f447e9679f [IMP] rating: message_post with rating value
rating module provide now post a message with a
rating value, though `message_post` method.
'mail.message' also has now a `rating_value` field
to ease searching and filtering.

This will help the ecommerce (and other website modules)
to post a comment associate with a rating.
2017-06-30 11:06:32 +02:00
Jérome Maes d79678fdd5 [IMP] website_mail: make the frontend chatter lazy
Message are now fetched and display using javascript
to optimize performance.
Also the chatter is completely rewrite : add pager,
filter possiblity, ...

This commit is mainly technical: posting feature does
not change. Only the display with pager is new.
The goal is also to prepare frontend chatter for a
better integration with rating widget.

The mail.thread mixin is extended to manage the field
website_message_ids (display all messages that can be
seen on frontend by user (employee or not).

When fetching or posting message, a check is done to see
if we need to do it as sudo(). website_mail implement posting
messages with token or sha_in (using in website_quote).
The same verification is now done when fetching messages, via
'_special_access_object' method.
2017-06-30 11:06:32 +02:00
Jérome Maes 890e665b88 [IMP] website_quote: clean page style 2017-06-30 11:06:32 +02:00
Jérome Maes 56ed99cff5 [IMP] website_mail: extends mail.thread mixin to manage website messages
mail.thread mixin will (re)provide the field 'website_message_ids'.
Models can redifined its domain, since it can differ a bit (blog, forum,
... are not the same).
Even if the domain can differ, we still keep it on the mixin since
it will be required for the new chatter frontend (see following
commits).
2017-06-30 11:06:32 +02:00
qdp-odoo 5967600296 [IMP] account: implement account.account hierarchies
This information will be used by account.report to render accounts in hierarchies.

Was PR #17367
2017-06-29 17:05:19 +02:00
Olivier Colson 414ea47fd5 [IMP] purchase: Added selection field 'module_account_3way_match' in purchase setting to (un)install the module account_3way_match which is created in enterprise.
+ made some refactoring in order to plug correctly this new module.
2017-06-29 14:52:56 +02:00
dbh 22c94287dd [IMP] website_sale: make form match website_form_editor structure
- Labels are now left-aligned in xs
- col-md-* sizes of newly added field were not the same

Note: forms should be reviewed to have a proper bootstrap structure and
website_form_editor should be smarter (see task-34451)

task-31510
2017-06-28 16:19:40 +02:00
Raphael Collet b8cf940247 [ADD] base: new wizard to uninstall a module (#17284)
The "Uninstall" button on the module form no longer changes the state of
modules, so that cancelling the wizard will not unexpectedly perform the
uninstallation.  The uninstallation is performed only by clicking on the
"Confirm" button on the wizard.

Moreover, the wizard provides clearer information about the impact of the
uninstallation: what apps/modules will be uninstalled and what documents
(models) will be lost.
2017-06-28 15:36:17 +02:00
Mitali Patel 026f9ce085 [FIX] mrp: Fix typo 'grousp' -> 'groups'
Prefetcion certailny does have it's prace
2017-06-28 11:46:27 +02:00
Laurent Smet 09296e74e9 [IMP] account: show payments on invoice report.
Each time the invoice is printed, it shows an updated remaining amount on the invoice. The first print, though, is kept as canonical reference as attachment.

Was PR#16343
2017-06-28 11:43:32 +02:00
Laurent Smet 8e230ae25d [FIX] base/report: fix attachment creation without attachment_use
If attachment_use is false and attachment_name specified, the attachment
is not created.
2017-06-28 11:43:32 +02:00
Xavier Morel 6ad587dc8f [FIX] db restoration existence check
5ee9ec7d removed bool(Connection), turns out db restore still used it
but muted the logger so that was hard to notice in the logs.
2017-06-28 10:05:33 +02:00
Ankit Joshi 16ebec2324 [FIX] http: avoid crash in web/database/selector when selecting invalid database (#17830) 2017-06-27 16:52:20 +02:00
Joren Van Onder 8108904247 [IMP] account: implement tax_base_amount on account.move.line
Stores the base amount of the tax specified by tax_line_id. Useful for auditing tax reports.
2017-06-27 16:10:54 +02:00
Christophe Simonis d2c30410a8 [FIX] stock: correct import 2017-06-27 15:52:37 +02:00
Christophe Simonis 674a347e13 [FIX] stock: correct PY3 incompatibility introduced by previous forward-port 2017-06-27 14:58:33 +02:00
Christophe Simonis dd43071638 [MERGE] forward port branch saas-16 up to 278e478d55 2017-06-27 14:19:31 +02:00
Christophe Simonis 278e478d55 [MERGE] forward port branch saas-15 up to b141b24706 2017-06-27 12:41:47 +02:00
Christophe Simonis b141b24706 [MERGE] forward port branch saas-14 up to b1f738d1ca 2017-06-27 12:02:56 +02:00
qdp-odoo d3ff26654a [FIX] account: max_date field of partial reconciliation is a date, not a datetime.
This field it is computing the max of 2 date fields, so it has to be a date too. This was messing in the aged receivable/payable reports.
2017-06-27 11:59:38 +02:00
Christophe Simonis b1f738d1ca [MERGE] forward port branch 10.0 up to 89a99407ce 2017-06-27 11:39:43 +02:00
Adrien Dieudonne 1e4f4299bc [FIX] *: reports: check required values for 'render_html'
Some reports require additional information to render. When
accessed in Odoo, the user has to fill a wizard to provide those
information. However, when these reports were opened in Studio,
it crashed as those information were missing (we don't pass
through the configuration wizard in this case).

This fix checks if all the required information are given before
trying to render those reports, and it displays a warning in
the logs in they are missing, which is better than a traceback.
2017-06-27 11:15:24 +02:00
Xavier Morel 89a99407ce [FIX] website_forum: yet more untranslatable terms 2017-06-27 10:36:24 +02:00
Aaron Bohy 05282fd434 [FIX] web: pyeval_tests: typo
Introduced by forwardport 34b432d528
2017-06-27 10:22:35 +02:00
Christophe Simonis 34b432d528 [MERGE] forward port branch saas-15 up to 4d79a1ff58 2017-06-26 19:19:39 +02:00
Christophe Simonis 80775a7362 [MERGE] forward port branch 10.0 up to 4c66eae308 2017-06-26 18:38:41 +02:00
Xavier Morel 6501184e62 [FIX] P3: API changes 2017-06-26 17:23:56 +02:00
Martin Trigaux 4c66eae308 [FIX] website_sale,website_crm: untranslated term
opw-748880
2017-06-26 17:05:39 +02:00