Commit Graph
138188 Commits
Author SHA1 Message Date
Anh Thao Pham (pta) 08bede3d9d [FIX] crm: fix undesired meetings via partner's smart button
- Create a Meeting for Contact X
- Go to Contacts and open Contact X
The Meetings smart button shows 1, but when clicking on it,
all user & partner meetings are displayed.

opw-2320299

closes odoo/odoo#56753

X-original-commit: 70f441a7ee3d46f6ba25cf56529a972b9e7ab29e
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-08-28 15:56:01 +00:00
Sébastien Theys 590a088750 [FIX] mail, *: fix opens and redirects, adapt messaging menu close
task-2244279
task-2262862
task-2274993
task-2277537
task-2282238

closes odoo/odoo#56755

X-original-commit: 17611f4adc5e950b0a75a2a6615b1da3c956387f
Related: odoo/enterprise#12769
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-28 17:34:13 +00:00
Jorge Pinna Puissant 86221d1f71 [FIX] account: show taxes when they are zero on invoices print
Before this commit, the taxes with amount of zero are not shown on
invoice print. For instance, the 15% tax of a product with value of
€0.01 will not be show on invoice print.

This previous commit 37a0f7acae8aebef35577b178f8aeefed11c9105 allows
showing zero percent taxes on invoice print. This commit, will
fine-tuning the previous commit to also show taxes with zero amount.

opw-2307761

closes odoo/odoo#55665

X-original-commit: b8bb1e12a10477bb31addc6d3cecefa046dd09fe
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-08-28 16:23:42 +00:00
Jorge Pinna Puissant 812436e588 [FIX] account: tax's widget error
- Create a new purchase tax with 0 as amount (Tax 0%);
- Create a new Bill, add a new line with the new Tax 0%;
- Use the tax's widget to modify the tax amount.

Before this commit, an error message was shown.

Now, only taxes values bigger than zero can be modified with the widget.

opw-2307761

X-original-commit: 03ee8036b3ea344372736beeefe6c4d74e4e62be
2020-08-28 16:23:42 +00:00
Sébastien Theys 6d9499fcce [FIX] mail, *: rename thread viewer to thread view
The "viewer" should be the "parent" not the view itself. This distinction will
become important in a future commit to allow viewers to not display the view in
some situations.

Rename done as a standalone commit to ease diff readability.

Part of task-2310623

closes odoo/odoo#56751

X-original-commit: f9ee1cf5f904116e4d1d70a8eaf4ee1d58b18a3a
Related: odoo/enterprise#12764
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-28 15:34:40 +00:00
Jeremy Kersten 96bc3d4fff [FIX] website: invalide cache page with classic ormcache invalidation
To avoid to manually invalid the lru cache and probably miss some place
(assets, website menu, qweb view, website, company, ...) we use the classic
cache.

Courtesy of @rco-odoo for the help and review

closes odoo/odoo#56744

X-original-commit: 98e12901c97a67dc87f21647473754cd6f384d4a
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-28 14:54:11 +00:00
jbm-odoo 578ce5261b [FIX] hr_expense: Fix helper alignment
closes odoo/odoo#56735

Taskid: 2326851
X-original-commit: b9e371ff0da5a46cf7134b15d5a30f71b4a254e3
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2020-08-28 13:25:41 +00:00
Anh Thao Pham (pta) 12e0e6092d [FIX] account: fix traceback on credit note after editing Group of Taxes
- Go to Accounting > Configuration > Taxes and create a new Group of Taxes:
  * Tax Name: TaxGroup
  * Tax Computation: Group of Taxes
  * Add 2 taxes (i.e. T1 15% and T2 20%)
- Go to Accounting > Customers > Invoices and create a new Invoice:
  * Add a Product and select TaxGroup as Taxes
- Post the invoice
- Go to TaxGroup edition and remove T2 20%
- Go back to create Invoice and add a Credit Note
At Credit Note creation, a KeyError is triggered.

opw-2321199

closes odoo/odoo#56729

X-original-commit: 816c0fa0f74d6126aecd663183361e53a1d8b460
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-08-28 11:58:51 +00:00
oco-odoo 94426e0ee2 [FIX] l10n_ch: fix bad forward port of https://github.com/odoo/odoo/pull/56199
type has be renamed to move_type on account.move.

closes odoo/odoo#56726

X-original-commit: 0706f5a392840c0d4a0f8acd197211121ccbcf07
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-28 11:45:24 +00:00
Arnaud Joset 0cb64fd99c [IMP] resource: improve clarity of two weeks explanations
Before this commit, when two week calendar were used, the tooltip was wrongfully assuming which week were odd and even.
Even with correct information, it was not easy to fill and could easily lead to wrong information on the payroll.

closes odoo/odoo#56055

Taskid: 2308804
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-28 12:26:07 +00:00
William Henrotin f6df07020b [FIX] purchase_stock: mock datetime to avoid midnight
The test test_update_date_planned issued starting just before midnight.
a purchase was created at 23:59:59 then the variable `today` was
assigned to 00:00:01. When comparing the activity generated by the test,
taking 23:59:59.today() and 00:00:01.today() gave two different values.

This commit force the test time to 09:00:00.

Task : 2325270

closes odoo/odoo#56681

X-original-commit: 70c223eebe7edfa26564598c898cb9a8541e349b
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2020-08-27 15:25:48 +00:00
Arnaud Joset 9dd65cce3f [IMP] project: display information when editing project settings
Before this commit, it was not clear that allowed portal users could see all tasks, even when they were not the customer.

closes odoo/odoo#53962

Taskid: 2265562
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-27 15:16:42 +00:00
wan 783e6decd2 [FIX] l10n_be: readd tax current accounts
https://github.com/odoo/odoo/commit/95b74f40e3eb6f5d1c41033ac3c878b7e926c8c8
This commit reworked the complete CoA, but the tax accounts set as
property_tax_payable_account_id and property_tax_receivable_account_id
were not the right ones.

closes odoo/odoo#56720

X-original-commit: 828c353cd540766ea8912f4b706b7be4da5a5f2d
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-08-28 10:08:31 +00:00
qsm-odoo 9b2178952d [IMP] portal, website: add the ability to have a lang selector in header
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

closes odoo/odoo#56705

X-original-commit: 9b67f6ee0783e8b02edb260b3ba5a0322187a416
Related: odoo/design-themes#352
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-08-28 08:19:46 +00:00
qsm-odoo c873e3e1aa [IMP] website: make it easier to enable off-canvas menu in themes
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 5de3608680dbd232fbc3a1042aca4abdbfd590b0
2020-08-28 08:19:45 +00:00
qsm-odoo 65a34e988e [IMP] website: add the possibility to control btn & input dimensions
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 9e3a6429de073ab7ecfeb16c3a6eb505d87719c7
2020-08-28 08:19:45 +00:00
qsm-odoo 18725e0cb1 [FIX] website_sale: remove useless margin below search input snippet
When the snippet want to be dropped at some location, the margin bottom
which cannot be edited can be a problem. And it can be added as a <br/>
by the user if he needs some spacing.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 77d4d6045ab68c9f5abd657e44ae92780c558b44
2020-08-28 08:19:44 +00:00
stefanorigano (SRI) ea7a62647f [IMP] website: review header/footer template & effect option UI
- Use a text label for selected header effect instead of a big image
- Do not animate all images of header effects at the same time, only on
  hover in the select.
- Review the images for header/footer templates.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 522c51880949bf601af67c26fd82c7f28ca56f8c
2020-08-28 08:19:44 +00:00
stefanorigano (SRI) cc41abf137 [IMP] web_editor: limit dropdown's thumbs size
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 23b8ff9ab4e6609fcfb37da6975ad54315d3e701
2020-08-28 08:19:44 +00:00
qsm-odooandCocographique 438158eaf6 [IMP] website: reorganize header options UI + implement shadow & borders
Also change the default behavior of all shadow options: now switching
inset / outset resets to default bootstrap values.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: eb34a7841978aea5c3f2d04121fd0e6adda94e3b
Co-authored-by: Cocographique <nmi@odoo.com>
2020-08-28 08:19:43 +00:00
Cocographique 3c05896c8f [IMP] website, *: add 'magazine' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 77d82cfbddb64cc7302672c7741eb65c9fc4a125
2020-08-28 08:19:43 +00:00
Cocographiqueandqsm-odoo b607744d8e [IMP] website, *: add 'hamburger full' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 0b265a6564133b40e1b3090f736a0af24900188a
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:42 +00:00
Cocographiqueandqsm-odoo 0ca58f6e92 [IMP] website, *: add 'image' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 53a0565632a874ca62d3b4f5ba2bde338ac067aa
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:42 +00:00
Cocographiqueandqsm-odoo e73b17fd47 [IMP] website, *: add 'centered logo' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: b14b69ebc82314403d9181a42693bb7faf6dada4
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:41 +00:00
Cocographiqueandqsm-odoo f2a7f36190 [IMP] website, *: add 'boxed' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: c6ad4dfdc0e133bd985054125bcb46e4e3f52cdd
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:41 +00:00
Cocographiqueandqsm-odoo af5964b637 [IMP] website, *: add 'minimalist' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: f11353cad6b2e9c14bc583945c328822b871ba10
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:41 +00:00
Cocographiqueandqsm-odoo f13e269d28 [IMP] website, *: add 'contact' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 58ad43919bb6904c4bcb2e7129d93a558f97eaa6
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:40 +00:00
Cocographiqueandqsm-odoo 40de8261a5 [IMP] website, *: add 'slogan' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 706769cbccc9f53e89c3f4a5308fa0a6f07dce2a
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:40 +00:00
Cocographiqueandqsm-odoo 9975b51379 [IMP] website, *: add 'sidebar' header template
*: website_sale, website_sale_wishlist

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: b30e47d81c1f71a66b1b6aa6846b52e080c25643
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:39 +00:00
Cocographiqueandqsm-odoo 2a1aa808e9 [IMP] website, *: review existing navbar templates and templates system
*: portal, website_sale, website_sale_wishlist

Portal-without-website header is now more basic, without the need of
a collapsed element. It is then entirely replaced when website is
installed with header templates, t-calling all the main parts.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: d3d5983e0a76eb6500e0d3f78f128879b50390e0
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:39 +00:00
Cocographiqueandqsm-odoo 0029236566 [IMP] website: review default font-family and font sizes
Also remove the "Gothic A1" font-family entirely as it is unnecessarily
heavy. Users can still using by importing the font explicitely if they
want to.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: fd599daeacda187d1224cfd9e16f958423845c3d
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:39 +00:00
qsm-odooandCocographique 28f08d7ff8 [IMP] website_sale_wishlist: review wishlist templates
1) Allow to enable the wishlist button on the shop page and the product
   pages individually. Also remove the code which allowed to disabled
   the feature entirely but keeping the module installed: if users don't
   want it, just uninstall the app (the feature was in website_sale
   directly at some point).

2) Add a new option to be able to show the wishlist counter even if no
   item has been added in the wishlist yet.

3) Move the feature in external views to be able to be placed at a
   different location depending on the header template.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: de97be253a54648ebd392f7f4f66ef16cc72b8af
Co-authored-by: Cocographique <nmi@odoo.com>
2020-08-28 08:19:38 +00:00
Cocographique cb6e07a573 [IMP] website_sale: review cart button design and templates
Move it in an external view to be able to place it at a different
location depending on the header template.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: d5617a1acac9a8371fc9d9b8115e90c4059ded7d
2020-08-28 08:19:38 +00:00
Cocographique 4e53f861a2 [REM] website: remove header button option
The feature will be replaced by a more advanced one allowing to put any
static content at some locations in the header.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: f186ce1c313d28cc17df03b9021279b9a2f4acd8
2020-08-28 08:19:37 +00:00
Cocographique 9e17c30bc0 [IMP] website: review brand (logo/text/none) templates
Move it in an external view to be able to place it at a different
location depending on the header template.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 010efaeb6d96f156eced62dfd7d842f1d588698f
2020-08-28 08:19:37 +00:00
Cocographique 118057927e [IMP] portal, website: review sign in templates
Move it in an external view to be able to place it at a different
location depending on the header template.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: b4866d192e6f4fdfba15b65fa2c209b35b7eb8c0
2020-08-28 08:19:37 +00:00
Cocographiqueandqsm-odoo c8577568a1 [IMP] portal, website, *: review navbar user dropdown
*: website_sale

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: c93bd93014685dd532d2244aece6bfeec9562b7a
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:36 +00:00
Cocographique 3b57c7b7fc [IMP] website: review and improve footer template choices
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 34ed29cbac80180982c9acc86c1412433bb88919
2020-08-28 08:19:36 +00:00
Cocographiqueandqsm-odoo 9ee35cf23e [IMP] website, *: add style options for navbar links
*: web

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 3f7e2949aef56d66b46417206b539f5ca74a1aae
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:35 +00:00
stefanorigano (SRI)andqsm-odoo a65407b9c3 [IMP] website, *: add off-canvas and other hamburger menu options
*: web, portal

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 89bf0d4170f42b40cd46915c7d0160c4818f3b8f
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:35 +00:00
qsm-odooandBenjamin Vray d20e29f905 [IMP] website: fix interaction between ToC snippet and header effects
This commit also add the possibility to indicate a "top gap" = a part
on the top of the header which is not supposed to be shown once the page
is scrolled (this is a leftover of the "preheader" task which was
cancelled for something better, but that JS code still made sense as a
possibility).

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 38ba41779f3b83219de41542e2132f0b9a194cce
Co-authored-by: Benjamin Vray <bvr@odoo.com>
2020-08-28 08:19:34 +00:00
stefanorigano (SRI) 6aebcecda0 [IMP] website: add "postcard" website layout
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: d089faca597d26f568b96bdc6069b473115fa6f4
2020-08-28 08:19:34 +00:00
stefanorigano (SRI) 243a07713c [IMP] website: add "framed" website layout
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: e222ad33fe3154273f7761c1645c15e640e61ded
2020-08-28 08:19:33 +00:00
stefanorigano (SRI)andqsm-odoo d9bdaf7d90 [IMP] website: review "boxed" layout
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 6eab56a150dec8a40cf7064e9d4d2dfe172e189a
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:33 +00:00
e0011d883d [IMP] website: add footer "scroll-to-top" button option
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: b1ad74398d6f0ab7bc1795b9b80366b9fd2af66f
Co-authored-by: stefanorigano (SRI) <sri@odoo.com>
Co-authored-by: Cocographique <nmi@odoo.com>
2020-08-28 08:19:33 +00:00
stefanorigano (SRI)andqsm-odoo 2e06b7262e [IMP] website: add ripple effect option for buttons
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 92c911fe1a8b24437ef5174d04c92ef8f185fc2c
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-28 08:19:32 +00:00
qsm-odoo a58fc42c29 [FIX] website: restore website menu loading with images
Since the images are now lazy loaded by default, the website menu was
not loaded correctly anymore when a mega menu was enabled and that there
was an image inside. Indeed, the menu loading waits for all images to
be loaded to compute the menu that should be in a dropdown when there
are too many. As the ones in the mega menus are hidden when the menu
is closed, the new lazy loading feature does not load them... which
makes the menu loading wait for something that is not being done.

This commit solves the problem by not waiting for images inside mega
menus. This could actually be done as a stable fix in stable versions
as there is no point waiting for those particular images in any case.
This will be only merged in master as it is not strictly a bug though,
at least for now.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 2d9667c2286354bf22c1cfea06c06a6b9250ba24
2020-08-28 08:19:32 +00:00
qsm-odoo 6e7aba0ced [REF] website: make clearer code for the website menu loading
Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: b6eb31511569551c0882b336bce46fdd44919e5c
2020-08-28 08:19:32 +00:00
qsm-odoo e1beebebef [FIX] web: make BS more robust with customized input groups
For some strange reason, BS is handling small and large input groups
pretty well but not normal ones. Indeed when customizing the paddings
of buttons and inputs individually, the normal-size input groups are
broken. Also, customizing the border width of buttons always breaks
input groups for all sizes. This is now fixed.

Note: the first problem was actually already solved by increasing the
input height to the button height. It makes actually more sense to
shrink the button size to the input height as this commit does (as this
is the input which is the main element in an input group).

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 7786d27bb42f1846442e37b7b2cba4a7c25131fb
2020-08-28 08:19:31 +00:00
qsm-odoo 3ee78f1523 [FIX] web: implement more complete menu autohiding feature
The code in charge of adding inside a dropdown the menu items that would
be forced on a second line was not doing it properly when there were
some display: none items and especially not when there were neighbours
using the m*-*-auto classes.

Part of https://github.com/odoo/odoo/pull/56427
task-2264627

X-original-commit: 87a90f6816c0ce3db7d9d2edbe1b5149fd7bacff
2020-08-28 08:19:30 +00:00