Commit Graph
121855 Commits
Author SHA1 Message Date
qsm-odoo dd139948f0 [IMP] web_editor: use inheriting views for oe_structure content
Before this commit, when using the website editor, modifications were
saved in place in the original view. The view was also marked as non
updatable so that when an user migrates its database, he does not lose
its modifications.

The problem with this system is that users were able to keep their
modifications at the cost of having views which are not up-to-date with
the latest odoo updates.

Now, the views' content which is inside an oe_structure element is saved
in an inheriting view instead of the original view. The original
view is not marked as non updatable anymore.

Note 1: we only consider elements with the 'oe_structure' class which
also have an id containing the 'oe_structure' string.

Note 2: if a non oe_structure but editable content is edited, the
original view is still marked as non updatable (however, with the new
multi-website feature, this may not be necessary as the edited view will
be duplicated to be website-specific... we may want to disable the
behavior in a future update).
2018-09-30 19:55:17 +02:00
qsm-odoo 4f15c939a7 [REF] *: add oe_structure IDs
Future update will allow to save oe_structure editions in an inherited
view instead of editing the original view in place. The condition is
to have an id on the .oe_structure element which contains the
'oe_structure' string.
2018-09-30 19:55:17 +02:00
qsm-odoo 55131b8f5b [REF] website, *: add automatic context for call_kw rpc
* web_editor, website_blog, website_crm_partner_assign, website_links,
  website_livechat, website_mail_channel, website_mass_mailing,
  website_slides

Calling a model's method thanks to an RPC will now always send the
web_editor context automatically, making sure the method gets the
website_id all the time, removing the need to guess the current website
(now the get_current_website method uses the context website_id if any).

Note: other routes already have the website_id via request.env.context
if they correctly set website=True (this commit also adds website=True
for scss files customization routes).
2018-09-30 19:55:17 +02:00
Fabien Pinckaers feae553b98 [IMP] mail: typo, launched -> schedule 2018-09-30 15:54:41 +02:00
Odoo Translation Bot 62ab7eb88b [I18N] Update translation terms from Transifex 2018-09-30 07:02:39 +02:00
Odoo Translation Bot a01c1bf5bf [I18N] Update translation terms from Transifex 2018-09-30 02:25:45 +02:00
Odoo Translation Bot 0a94a766e6 [I18N] Update translation terms from Transifex 2018-09-30 00:29:10 +02:00
Romain Derie 850e1675eb [FIX] website: store default menu tree (apps menu) for new website
Previously, for multi-websites it was decided that:
  - creating a new website would not get already existing apps menu (shop,
    blog, forum..).
  - installing a new app would create the app's menu on existing website

This was decided mostly for technical reason but it is a weird behavior.

This commit saves the installed apps menus in order to copy them on new website
If this default menu got deleted, we ensure a minimalist tree menu for new
website

Note: This also fixes the bug where installing a website_module more than once
(with -i website_module in command line) would create the menu (blog, shop,
forum..) on the first website a second time.

This was because the website.menu.create() overrided in website would
return the last created record in the self loop, thus the last one created
would be the one set to the xml_id (ir.model.data).

This commit closes #27253
2018-09-29 17:56:21 +02:00
TWA 73f0cc21ce [FIX] partner_autocomplete: Enrich data even if get logo returns error 2018-09-29 11:30:21 +02:00
TWA c51d4c2d05 [FIX] partner_autocomplete: Catch error on get credit balance 2018-09-29 11:30:21 +02:00
Rémi Rahir e12ac2b91b [IMP] snailmail(_account): smoothe the etimation of price
Up until now, when we wanted to post a single document, it's base64 blob
was uploaded to the snailmail server to estimate the cost of the
transaction.  We now use the 'batch' apporach that will estimate the
price based on 1 page per document.
2018-09-29 11:12:39 +02:00
Rémi Rahir 8a74bb8c5a [FIX]l10n_de: wrong field namewhen writing on company
commit 61eef73b52 changed the name of a
field but one was forgotten.
2018-09-29 11:12:39 +02:00
Rémi Rahir a95bbd85b1 [FIX] sms: fix style on the wizard
because of some changes on the FieldText widget to correctly compute the
size of the eidt box, the SmsWidget can no longer extend that widget since
we work with a DIV and not a single TEXTAREA. For the future, we
might change the way FieldText works but since we only need the basic
functions from InputField in this case (no need of resize nor
translations) we chose to extend InputField.
2018-09-29 11:12:38 +02:00
Rémi Rahir b6a981405e [IMP] snailmail: adding special map for the country names 2018-09-29 11:12:38 +02:00
Olivier Dony 2ff9b379ef [FIX] mail: fix blacklist mechanism
Several quick fixes:

- repair malformed SQL queries and injection problems
- proper token comparisons (consteq)
- better translatable terms (less context-lessplaceholders)
- basic testing of case-(in)sensitivity of blacklist
- safety check for non-implemented cases in search methods for computed
  field

More testing and review is needed for case-sensitivity and email
extraction from generic "addressing fields".
2018-09-29 04:47:44 +02:00
Sébastien Theys 2cee34fea2 [FIX] website_sale: fix cart update - broken by product configurator
It tried to parse non existing json if product_custom_attribute_values was not set.

This commit closes #27308
2018-09-28 23:37:29 +02:00
Sébastien Theys b867d38661 [FIX] website_sale: fix JS module name - broken by product configurator
Another module already had the same name, so there was an exception and it was not possible to run this tour.

This commit closes #27308
2018-09-28 23:37:29 +02:00
Sébastien Theys 860602b26e [FIX] website_sale_comparison: fix BS4 bugs
This commit closes #27308
task-1880762
2018-09-28 23:37:29 +02:00
Sébastien Theys 79e56bddc9 [IMP] website: add default social share image
Allow to specify another image than the logo as default share image.

This commit closes #27297
2018-09-28 21:28:20 +02:00
Christophe Simonis 88fa382664 [MERGE] forward port branch saas-14 up to 503c7a3d65 2018-09-28 19:14:45 +02:00
Christophe Simonis 503c7a3d65 [MERGE] forward port branch 10.0 up to baf3c5712d 2018-09-28 19:10:04 +02:00
Christophe Simonis aef15f3d5d [FIX] account,event: force no groups on views
Oversight of f56ad6daf8
2018-09-28 18:59:05 +02:00
Christophe Simonis baf3c5712d [MERGE] forward port branch 9.0 up to 70028701b3 2018-09-28 18:06:03 +02:00
Xavier Morel 10228fe3ef [ADD] web: ability to become superuser (uid=1)
* requires that current user has group_system
* only visible in debug mode (?debug)
* available at login or via debug menu
* special systray color in superuser sessions

Closes #27254
2018-09-28 17:25:36 +02:00
Martin Trigaux f4bfc90755 [REV] point_of_sale: display pricelist button only if enabled"
This reverts commit 7a417e173..03a20ff6cc

It should have targeted the master version and be squashed
2018-09-28 16:24:50 +02:00
Christophe Monniez 8c682544ea [FIX] config: add a config dest to test-enable option
Commit 76c5389 removed the option dest for test-enable leading to a
traceback when trying to save the configuration.
This was due to the fact that the options dict was sorted while
containing a None key because of the missing dest.
2018-09-28 16:11:22 +02:00
eco-odoo feb792d1cf [FIX] account_budget: allow saving multiple budget lines
The constraint did not take into account the possibility of adding
multiple budget lines at the same time.
2018-09-28 15:31:35 +02:00
Laurent Smet d0316fab07 [FIX] account: fix auto-validate not working with amount < 0
- Create a statement line with amount < 0
- Create a reconciliation rule with writeoff_suggestion + auto_validate checked
- Open the reconciliation widget: the line is not reconciled.
2018-09-28 15:02:21 +02:00
Gert Pellin 03a20ff6cc [IMP] point_of_sale: pricelist discount on ticket
cleanup of prices printed on tickets
    <std-pricelist-price> -> <active-pricelist-price>
    <extra discount>
    <quantity> x <price-incl-discounts>
2018-09-28 15:01:46 +02:00
Martin Trigaux 3e77a95e5c [FIX] point_of_sale: fixup 2018-09-28 15:01:46 +02:00
lejeune quentin 088044811d [IMP] point of sale : Show discount when option enabled on pricelist
Many users are confused when using pricelists on the PoS :
When they tick the box "Show discount" on the pricelist, it has no impact when the pricelist is applied on the PoS.
They often report a ticket thinking it's a bug.

It can be useful to show the discount on the PoS when applying a pricelist, when users benefit from a preferred price,
the vendor often wants to show it to the customer.
2018-09-28 15:01:46 +02:00
lejeune quentin 799fb5e6f0 [FIX] point_of_sale : fix bug where we add lot.
An error occurs when adding a product with a batch sales rule
syntax correction
2018-09-28 15:01:46 +02:00
GabbasovDinar cc2eb5ea0f [IMP] point_of_sale: better merge detection
If sells
1. product A
2. product B
3. product A

the lines of product A were not merged

Closes #25540

closes odoo/odoo#26602
2018-09-28 15:01:46 +02:00
GabbasovDinar 7a417e1735 [IMP] point_of_sale: display pricelist button only if enabled
If the option use_pricelist is disabled, no need to display the button

Closes #25540
2018-09-28 15:01:46 +02:00
Martin Trigaux 21f8ee0119 [FIX] account: fallback for entries with no name
The name of an account.move.line is not mandatory
If a line with no name but analytic tags is posted, the name for the analytic
line should be computed differently (the name of an anlytic line is required).

Apply changes from f2b2d87236 to the _prepare_analytic_distribution_line method

Fixes #27281
2018-09-28 14:55:13 +02:00
Gustavo Valverde a9a556178d [FIX] stock_account: Use product display_name in errors
When working with product variants, if the error which gets displayed does not include the product attributes, it's harder to identify the variant with the error.

closes odoo/odoo#27298
2018-09-28 12:38:34 +00:00
Christophe Simonis 56658ad8de [MERGE] forward port branch saas-15 up to 88fa382664 2018-09-28 19:17:24 +02:00
Gert Pellin 1b5f2ac420 [FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted
to byte-array.

backport of b4bcf86f8e to 11.0

closes odoo/odoo#27252
2018-09-28 13:21:56 +00:00
Sébastien Theys a3dc91a0db [IMP] sale: make SO download/print same on portal than backend
We don't want two different reports for the same thing.

We will therefore lose the ability to print the "quotation builder" report built with the snippets.

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 7f3b2d09c1 [IMP] account_payment,sale: change sign & pay button color
Green doesn't go well with purple.

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 3b5440e785 [FIX] sale: remove wrong chatter line when creating section/note
PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys 6b8d7bb6d6 [FIX] account: fix invoice iframe responsiveness
77be4214db introduced an issue where the meta data would not go to a new line on small screen (on the iframe).

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Sébastien Theys f19ad9d7b7 [FIX] sale_management: fix print of SO
9671ccb509 was forward ported but the field options was renamed in saas-11.5

PR: #27293
task-1889346
2018-09-28 14:36:26 +02:00
Martin Trigaux 3c516eeb6d [I18N] l10n_ch: sync translations with the .pot file
The relevant translations are in l10n_ch/i18n_extra
2018-09-28 13:49:18 +02:00
qsm-odoo 7bcb7934a6 [FIX] web_editor: restore white color for discard button
Fixing BS behavior in https://github.com/odoo/odoo/commit/e24c3409d915ed73d86077b723b6e0cd77134e80
broke that button color as the button bg was set to transparent, so the
text color was computed to dark instead of light (as it should).
2018-09-28 13:43:06 +02:00
qsm-odoo c4420253d7 [FIX] website, *: correct snippet addition option
* website_mass_mailing, website_twitter

A snippet option describes where standard snippets can be dropped in the
page (which is currently in oe_structure elements or html fields, except
for the footer which can only have one snippet). Some external snippets
in other apps or themes were not using this snippet option but defined
their owns which were not adapted to the correct drop locations.
2018-09-28 13:43:06 +02:00
Martin Trigaux d9c0dbcd19 [FIX] base_gengo,l10n_ch,mrp_bom_cost: export source terms
There were still reference to the remaining model: syntax while it should be
model_term:

Fixes #27268
2018-09-28 13:42:49 +02:00
Olivier Colson a6d4a5bb15 [IMP] l10n*: add missing descriptions to models
Before that, installing these modules triggered warnings.
2018-09-28 13:39:26 +02:00
Cedric Snauwaert bc9e1f7ed0 [FIX] account: fix account type of other income and asset filter
Account type of other income should be of type 'income' and not 'other'
Filter 'Assets' in chart of accounts view is not working correctly due to typo in the filter.
2018-09-28 13:34:37 +02:00
Martin Trigaux 060e312a4f [FIX] account: do not translate taxes
This is already handled in the l10n_multilang module for countries with several languages
Same as the account names, it should not be translatable in standard
2018-09-28 13:32:32 +02:00