Commit Graph
156073 Commits
Author SHA1 Message Date
Jacky (trj) e8da98a3ee [FIX] pos_loyalty: better labeling ewallet in partner screen
Since this balance column is used for different things (e.g. total due),
adding a label allows to properly differentiate what is what.

closes odoo/odoo#105139

X-original-commit: 4aeeceea50ca41ce3ad18950632744bee9ce1a6e
Related: odoo/enterprise#33696
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2022-11-08 10:39:59 +01:00
Thanh Dodeur e83168db2e [FIX] mail: ensure that the callView maintains the proper size
closes odoo/odoo#105260

X-original-commit: e39b2a8794840fced43793f1f45936b81c3c0c9e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-08 09:41:10 +01:00
Antoine Guenet e3a364122d [FIX] web_editor: restore deleteForward versions of deleteBackward tests
Tests for `deleteBackward` with a non-collapsed selection should always
be repeated using `deleteForward` to ensure the behavior is indeed the
same for both. This was not the case for some of the tests.

task-3032817

closes odoo/odoo#105217

X-original-commit: 183246102406ccb4730ee2e11c8d42ccca6dce6b
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-11-08 09:41:07 +01:00
Antoine Guenet 8c42506648 [FIX] web_editor: properly handle deleteRange where tables are involved
Tables have their own custom selection in Odoo Editor, so rectangular
cell selection is supported. Selecting a whole row/column/table then
pressing delete/backspace removes the whole row/column/table. But just
selecting some cells should only empty them, which we failed to do,
resulting sometimes in broken tables.

The code to remove selected rows/columns/table was triggered when
pressing backspace/delete, which failed to account for cases where we
need to delete the range without pressing those keys (for instance when
typing a character). This moves that code to `deleteRange` so as to make
it the standard behavior when deleting a range that includes table
cells.

task-3032817

X-original-commit: fad5d2d7e241e22382a2f3dc0fd68eca741e59a7
Part-of: odoo/odoo#105217
2022-11-08 09:41:07 +01:00
Antoine Guenet e5c504e8b1 [FIX] web_editor: test the real browser flow for delete/backspace range
deleteBackward and deleteForward tests were just directly calling the
editor's implementation, without triggering events that are sometimes
crucial to the behavior. This is at least preventable in cases where the
selection isn't collapsed, by triggering the keydown event and calling
the document's `execCommand` function with the "delete" command.

task-3032817

X-original-commit: cd7c647f45487e8d8a763875a30e327422af4e68
Part-of: odoo/odoo#105217
2022-11-08 09:41:06 +01:00
Antoine Vandevenne (anv) 4f8b9d0a21 [REF] sale: extract a _get_payment_values from the portal controller
task-3048314

closes odoo/odoo#105199

X-original-commit: ae9e0cc50345db2bbbf0404fe6ac474b7496dd9c
Related: odoo/enterprise#33720
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
2022-11-08 09:41:03 +01:00
svs-odoo 1ecf82f120 [FIX] stock_picking_batch: xpath on company_id
Following odoo/odoo#103743
Changes the xpath adding the `batch_id` in the picking list view from
before `company_id` to after `picking_type_id` because the linked commit
added an invisible `company_id` at the start of the list, so the
`batch_id` was wrongly placed.

closes odoo/odoo#104981

X-original-commit: d3f6bd6f12048233b57566cdedf6f2b22a45dd93
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Steve Van Essche <svs@odoo.com>
2022-11-08 09:40:57 +01:00
Pierre-Yves Dufays 69f0b49b89 [IMP] mail: improve look of the settings
To stay consistent with other option layout, we show the sub email server
configurations, Gmail and Outlook server, not nested to the custom server
option but as standard options.

Task-3033042

closes odoo/odoo#104015

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-11-08 09:40:55 +01:00
Walid HANNICHE (waha) 6839d21f3c [FIX] web: time picker should always be LTR
Steps to reproduce:
1-set language to an LTR language (arabic / hebrew...)
2-select any field with the date-time range widget (eg: planning>add)
3-the hour and the minute selection is reversed.

Bug:
the hours and minutes order depends on the language orientation where
they should always follow this format HH:MM

Fix:
force the time to be displayed Left To Right regardless of language

opw-2953221

closes odoo/odoo#105255

X-original-commit: 8d396fd8800baf29a9242987b610e3bb7b9da265
Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-11-08 08:44:14 +01:00
Tommy (tong) d958068582 [ADD] l10n_ph
- add philippines localization

task-2713149

closes odoo/odoo#105062

X-original-commit: 60b9738f7923135ec018fbdcd2cbbfa6de8c75e0
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-11-08 07:46:40 +01:00
Tommy (tong) e2087458ed [IMP] base_uat: update ph vat format
X-original-commit: 45fc41470f3b83fc6e2130f40bb1d4deb366a659
Part-of: odoo/odoo#105062
2022-11-08 07:46:40 +01:00
Odoo's Mergebot a70032b12c [FW][FIX] analytic: constraint multi-company on distribution model
Before this fix, the constraint did not prevent changing the company to a bad one on an existing field.
We also remove the GROUP BY clause as it is useless.
Another query was also useless in `analytic_account.py` and has been removed.

closes odoo/odoo#105259

Forward-port-of: odoo/odoo#105129
Signed-off-by: William André (wan) <wan@odoo.com>
2022-11-08 01:28:17 +01:00
gawa-odoo cee5a63349 [FIX] analytic: remove useless query
This query itself is useless and its result is never watched.

X-original-commit: 1e15dff32d224ed0dafc32d1b7bab37c56d58fba
Part-of: odoo/odoo#105259
2022-11-08 01:28:16 +01:00
gawa-odoo 2ea10e2942 [FIX] analytic: constraint multi-company on distribution model
Before this fix, the constraint did not prevent changing the company to a bad one on an existing field.
We also remove the GROUP BY clause as it is useless.

X-original-commit: 2d5879cd8d84edcc16c55622b86c724f70055b03
Part-of: odoo/odoo#105259
2022-11-08 01:28:16 +01:00
Denis Ledoux e6c274f7a3 [FIX] base: remove useless res.config.settings _get_view override
The code removed by this revision was added at a time any user
could access the `res.config.settings` model, including non-admins.
odoo/odoo@a468aee518
So, it made sense at the time to make the module installation checkboxes
readonly for non-admin users accessing the settings.

However, since revision
https://github.com/odoo/odoo/commit/65530dfd6a0486f44134917f5cc42a2c30b95762#diff-e275aaa5de11da2815c2f0cc18bc046f967df5e4eba94999ee55ffe8926c87bdR109
the `res.config.settings` model is restricted to admins only,
who have the write access the `ir.module.module` model.

This override is therefore pointless,
as since then it's impossible for non-admins to access
the settings.

closes odoo/odoo#105254

X-original-commit: d43896c0bb88310ec2bbb87c4dc355d2bd7faad9
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-11-08 00:36:54 +01:00
odoo d6b5ffa365 [FIX] mail: Slight hover style on the buttons in the composer
This commit fixes missing hover style on the buttons in the composer.

Task-3050035

closes odoo/odoo#105242

X-original-commit: 2c1d09be03ff9d76d2c3e8189ce89f4a37d45859
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-07 23:40:01 +01:00
gawa-odoo 732bc1fc7c [FIX] analytic: accounts from another company were shown in widget
The accounts shown in the widget could be shown while being in the wrong company.
Previously, only the plans were limited by the company.

closes odoo/odoo#105241

X-original-commit: 97d1afb9ff0ca88dfb0b6a8ed152e39d3db77279
Signed-off-by: William André (wan) <wan@odoo.com>
2022-11-07 23:39:58 +01:00
momegahed 8a3dcc8336 [FIX] calendar: wrong timezone in sms template
Issue :
- When sending an sms reminder by cron user, `_get_display_time` is
used which always uses Odoobot (cron user) timezone regardless of the
partner timezone

Fix:
- use `partner_id.tz` instead of Odoobot

OPW-2991624

closes odoo/odoo#105243

X-original-commit: 23d39f6de7ee656773f3e8f2515adfefc137c866
Signed-off-by: Mohamed Megahed Abbas Megahed SALLAM (mome) <mome@odoo.com>
2022-11-07 22:38:56 +01:00
Chong Wang (cwg) d57d8534bb [FIX] core: fix search with accent
For a trigram indexed translated field field_x,
domain leaf ('field_x', '=', value) and ('field_x', 'ilike', pattern)
will miss records if the pattern contains accent characters

This commit set ensure_ascii=False for json.dumps to avoid escaping special
characters

opw-3048182

closes odoo/odoo#105240

X-original-commit: 26b5c8c2baeaee9fcd5384aafa5f9b39543d6903
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Wang Chong (cwg) <cwg@odoo.com>
2022-11-07 21:37:44 +01:00
Alexandre Kühn 8d5b11205d [FIX] mail: no double bottom border on emoji category view
Task-3058786

closes odoo/odoo#105219

X-original-commit: 21a19543c69ab6bec9bcd027baff15897df226a2
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-07 18:55:50 +01:00
odoo 336a246351 [FIX] mail: fix emoji icon appearance in message editing mode
closes odoo/odoo#105218

X-original-commit: 80ba184cb5a6b4654521586b8d051f2905c69f05
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-07 18:55:48 +01:00
Romain Derie e86f09c027 [FIX] website_blog: let the date format being handled by qweb field
We have internal utils that will use a wanted format in a localized way.
We should use those utils rather than hardcoding a format, otherwise
that format will be used for all languages which is weird.

So, passing a `short` / `medium` etc format directly to babel will avoid
that issue. On top of that, the `value_to_html` of our
`ir.qweb.field.datetime` also provided options like `date_only`,
`hide_seconds` etc.

This commit simply gets rid of those hardcoded format and achieve the
same thing using utils & tools, which will be localized on top of that.

The "error" was report by our translator: `MMM d, yyyy` in french leads
to `oct. 18, 2022` which is not ideal. It should be `18 oct. 2022`.

closes odoo/odoo#105197

X-original-commit: 4a443736523547fb516c70f45e7e70df32b13147
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-11-07 17:59:55 +01:00
Huy Le c605a93042 [FIX] website: missing seo name character
Currently entering custom urls will be missing characters if they
contain unicode.

Steps to reproduce:
1. Open Promote dialog
2. Enter a custom url that contains unicode (e.g. `Nội dung có Dấu`)
3. Output: `n-i-dung-c-d-u`

Expected output after this commit: `noi-dung-co-dau`

closes odoo/odoo#105195

X-original-commit: 3c1cd65e2eb44c5d2cb695afad19c58f24bde8b1
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-11-07 17:59:52 +01:00
Romain Derie 8c0db0a174 [FIX] website: restore the seo_name field cleaning
Part of [1] was lost during the frontend>backend merge [2].
The SEO name field was not "slugified" anymore in JS, it led to 2
issues:
- Bad UX, one could type something and it would end up after save with
  something completely different
- 404/crash: as the generated URL in js (based on the seo name value)
  would not be slugified, it would redirect to that URL, which would not
  be found as the record URL in python would be slugified. There would
  be an URL mismatch between the python route and the JS redirect value.
  This could still somehow happen as the JS and PY slug are not doing
  the exact same things but at least this will restore what we had
  before and mitigate the issue.

Step to reproduce:
- Go to a blog post and open the SEO dialog
- In the custom URL input, type "créé"
- You will be redirected to `/@/blog/travel-1/créé-1`
This will be a 404 page, as the correct URL is now
`/@/blog/travel-1/cree-1`.

[1]: https://github.com/odoo/odoo/commit/c387ec19b4648ae52bf3210253febd7825745627
[2]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

X-original-commit: 3c266751c41ab0a96494ccd6cd1a1fff3a6a7058
Part-of: odoo/odoo#105195
2022-11-07 17:59:52 +01:00
Ricardo Gomes Rodrigues (rigr) 6a10ad1c3c [FIX] account: highest number warning display
Before this commit, the highest number warning was displayed on multiple lines.

This commit fixes this by inlining the name of the invoice with the highest number.

closes odoo/odoo#105194

X-original-commit: 9938389734110474a6356654a01990d774a832b8
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-11-07 17:59:48 +01:00
Romain Derie 8fd7eda342 [FIX] web_editor: restore "load more" image button as button style
With commit [1] the "load more" button of the media dialog went from a
btn-primary style to a btn-secondary style, which is displayed a link.
It was done in an Odoo global effort of making each and every screen
having only one (sometimes two at most) primary action to help the UX,
as explained at [2].
But in this case, it seems to more misses with the UX than helping the
user as that button really becomes invisible without it. We already were
afraid of that but still merge it, see [2] again.
Indeed, in secondary style this button is barely visible due to the
unsplash and undraw image results which have an "author" text like on
top of the image which looks like the "load more" style.

This commit is using the `btn-odoo` class to show it as a button and not
a link to avoid people not seeing it.
`btn-odoo` is chosen instead of `btn-primary` as this is how "secondary
important actions" are designed now in Odoo.

Note that in community, it looks like a btn-primary but that's not
related to this PR.

[1]: https://github.com/odoo/odoo/commit/ff0b2d441252560a076a3609d81c369f0ce42d19
[2]: https://github.com/odoo/odoo/pull/98706#issuecomment-1236804203

closes odoo/odoo#105193

X-original-commit: f204d3a6ed5b5de08c7921a0bcd5188d78b0cf8b
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-11-07 17:59:45 +01:00
Ivàn Todorovich 366149478f [IMP] mrp: _compute_child_bom_id: call _bom_find on recordset
This is more efficient than calling it record by record.

closes odoo/odoo#105143

X-original-commit: 9bbcee2bca8a69e8388097e2e5070ed620dcebe2
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-11-07 17:59:43 +01:00
Yenthe666 8ae1951354 [IMP] stock: set name on elements
Before this commit there is no clean/easy way to do nice xpath's on the divs.
By giving them a name we can do a xpath expr with @name=''] which is not as errorprone.

closes odoo/odoo#105142

X-original-commit: f37251ff76359a4b8c05facc1f7449a2e1eea7fb
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-11-07 17:59:40 +01:00
niyasraphy 91a52f71c1 [FIX] purchase_requisition: wrong field name in function
closes odoo/odoo#105156

X-original-commit: f6d0482b031d03af227f9765d5e5ee981342a913
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-11-07 15:57:33 +01:00
Rémy Voet (ryv) 0787f150b1 [FIX] core: make index naming without conflicts
There are two issues with the index naming convention used by the ORM:

Problem 1: it is possible to have naming conflict for indexes.  For
instance, the name 'slide_channel_tag_group_sequence_index' is used for
both fields slide.channel.tag.group.sequence and
slide.channel.tag.group_sequence.  Only the first index will be created.

Solution 1: we separate the model and field names with a double
underscore instead of a single one, which is the same strategy as with
LEFT JOIN aliases.  This is correct because model names don't contain
such double underscores or underscores as prefix or suffix (it is not
forbiden but model name should follow the 'dot notation'.)

Problem 2: index names can be longer than 63 chars, but PostgreSQL
silently truncates it.  This doesn't actually break anything (PostgreSQL
also truncates values when we check the existence of indexes) but it can
lead to using the same name twice.  There is hopefully not any example
in our code.

Solution 2: if the name is too large, we truncate it and pad it with a
hash of the complete name to match 63 characters, which is also the
strategy used for LEFT JOIN aliases.

task-2984730

closes odoo/odoo#100736

Related: odoo/upgrade#3957
Signed-off-by: Raphael Collet <rco@odoo.com>
2022-11-07 15:57:28 +01:00
alt-odoo 83bb71bb16 [FIX] website_payment: correct compute of providers state
In case stripe provider was deleted, the value of 'stripe' is None. This
will trigger a TypeError using the 'in' operation. We should adapt the
conditional statement to properly do the computation.

closes odoo/odoo#105159

X-original-commit: 12ac629f2989fcf350e9fc69e8ba8e8494f378d9
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-11-07 14:52:59 +01:00
Touati Djamel (otd) 4cc2b3bcca [FIX] sale_stock, purchase_stock: use product name as stock.move name
Steps to reproduce the bug:
- Create a Kit product "Kit 1":
    - Add a BOM with a component “C1”
    - Add a sales description
- Create another kit product without a sales description "Kit 2":
    - Add a BOM with a component "C2"
- Make sure you have a qty of “C1” and "C2"
- Create a SO:
    - Add "Kit 1" and "Kit 2"
    - Add any other storable product
    - Confirm the SO
- Go to the delivery → validate it
- Print the delivery slip

Problem:
The report doesn’t contain the kit product.

Because in the report, the `stock.move.line` are filtered by checking
the name of their move if it has the same name as the product in
the bill of material, but like the `stock.move` has the name
('description') of the `sale.order.line` instead of the product name,
the lines are filtered and not displayed:
https://github.com/odoo/odoo/blob/14.0/addons/mrp/report/report_deliveryslip.xml#L9

The behavior is the same for purchase orders

opw-2960467

closes odoo/odoo#105158

X-original-commit: be25cea0d882bb03a4873821fdb788a0890ba49a
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
2022-11-07 14:52:56 +01:00
Guillaume (guva) b2fc9f09f6 [FIX] account_check_printing: print check from expense
When printing a check that comes from an expense,
the check has no reference to the move from which
the payment has been created.

The reason is that we filter the move by taking
only outbounds to complete the check informations,
but moves from an expense are of type entry.

With this commit, we allow moves coming from
expense to be taken into account by adding a
check on move.move_type.

opw-3044141

closes odoo/odoo#105157

X-original-commit: b588329a45633f0dec89fe195cf24a8b3671dedd
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
2022-11-07 14:52:54 +01:00
niyasraphy a2b0500bf9 [FIX] sale_purchase: service_to_purchase field alignment
closes odoo/odoo#105155

X-original-commit: 799d7d4c7490338197440907ca57cb597cd213a5
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-07 14:52:51 +01:00
Camille Spiritus 6757ac3f7c [FIX] account: reintroduce transfer_account_id in config view
During the Early Payment Discount task, the transfer_account_id field was mistakenly removed from res_config_settings_views.xml.

Reintroducing it as intended.

closes odoo/odoo#105146

X-original-commit: 86b73a7b1696d13330cbee063424d989b585fe5c
Signed-off-by: Laurent Smet <las@odoo.com>
2022-11-07 14:52:48 +01:00
Mossaab BOUDCHICHA 1667151a6f [IMP] stock_account: rendre the code more pythonic
In python we can use the default value in dict get method instead of "if else" statement,this will make the code more pythonic.

closes odoo/odoo#105104

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-11-07 14:52:43 +01:00
Adesh Jolhe (adjo) 28154ce1e6 [IMP] hr_timesheet: align hours spent value with its label
In project sharing form view the "Remaining Hours" label is not aligned to
"Hours Spent" label due to extra span inside the form view.

so in this commit fixes this issue by hinding extra span by adding attrs.

taks-3034048

closes odoo/odoo#105141

X-original-commit: b0361fff58862c086c82baffe085b593a3688753
Related: odoo/enterprise#33697
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-11-07 13:50:24 +01:00
Julien Mougenot 8dcfb82e42 [FIX] web: Force kanban title opacity in no-content
Before this commit, since there is a mildly transparent filter over the
entire view when the "no content" helper is displayed, the interactive
elements of the empty kanban view (namely: the title with the name and
"quick create" button) were slightly hidden.

This commit enforces a superior z-index on those elements s.t. they can
appear on top of the helper's filter.

closes odoo/odoo#105140

X-original-commit: cbefc9cd51b3c903a6c54d8e3f95bf2b592cf402
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-11-07 13:50:14 +01:00
Antoine Guenet 82a2b7ff15 [FIX] web_editor: properly drop images in editor
This addresses issues with image dropping and pasting.

1. The code to compute the position of the drop was not always run so
that resulted in a sometimes wrong position (dropping at current range
instead).
2. Images dropped internally within a same document should not be
converted to base64.
3. Dropping an image should apply to it the `img-fluid` class so as not
to break the document's layout.

task-2954499

closes odoo/odoo#105137

X-original-commit: 9c258bf18c17a55f1d22c8a7d1b74f5dd51ee73d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-11-07 13:50:10 +01:00
Antoine Guenet 6509afcae5 [FIX] web_editor: include descendants in getTraversedNodes
The `getTraversedNodes` function sometimes failed to include descendants
of traversed nodes, which should logically be included. Eg,
`<div>[<img>]</div>` where the selection is expressed as `div 0 div 1`:
the iterator is set on the common ancestor, which is the `div`, so it
stops immediately, only returning the `div`. Here we add its ancestors
in every case.

X-original-commit: 0e765277871a57c367d09fc05bb13a9d6670d11d
Part-of: odoo/odoo#105137
2022-11-07 13:50:10 +01:00
Louis Wicket (wil) 1f89f7051a [IMP] mail: model core clean up
Remove redundant checks and inline functions that are used only once.

closes odoo/odoo#104992

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-07 13:50:05 +01:00
Antoine Guenet b8290bcdd9 [FIX] web_editor: prevent wrong selection after discard link dialog
When discarding the link dialog, we need to restore the selection in the
editable area. This failed because the selection was recomputed when the
dialog was actually removed from the DOM. This is the same case as a
couple of lines above the restoration of the selection, where we need to
wait for the element to be removed before triggering a focus on the
inserted link.

task-3000250

closes odoo/odoo#104847

X-original-commit: 6b86f6c91fc69bec59f39377e322d79242466d42
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-11-07 13:50:01 +01:00
Guillaume (gdi) 292102bac1 [FIX] website_blog: fix the date filter on the blog posts
Since [this commit], following these steps:
- Go to /blog
- Activate the sidebar option
- Select a date filter on the sidebar

=> An error occurs.
The bug comes from the fact that since [this commit], some arguments
were passed twice to a function which causes a python error. The fix is
just to not pass the same argument several times.

[this commit]: https://github.com/odoo/odoo/commit/f2e20e5377a6604084aaf509f57614d7fbf263e5

Related to opw-2882492

closes odoo/odoo#104639

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-11-07 13:49:58 +01:00
Guillaume (gdi) 6782ec3f95 [FIX] website_blog: display all the blog posts when filtered
Before this commit, following these steps:
- Go to /blog
- Activate the option Customize > Top banner - Name / Latest Post
- Disable the option Customize > Full Width Cover
- Click on the "guides" tag of the "Buying A Telescope" blog

No blog is displayed. This was because the top banner post is not shown
when the posts are filtered. Basically, once filtered, a blog post was
always missing.

Related to opw-2882492

X-original-commit: ee2f778abb8b7a6e221e05361bc7b964593d1123
Part-of: odoo/odoo#104639
2022-11-07 13:49:58 +01:00
qsm-odoo c771aa406c [FIX] website, website_blog: fix wrong href on the top banner of /blog
Before this commit, following these steps:
- Go to /blog
- Activate the option Customize > Top banner - Name / Latest Post
- Disable the option Customize > Full Width Cover

The URL to which we are redirected when we click on the category of the
post presented at the top of the page leads to an error. In order to fix
the wrong url we had to patch QueryURL so that the url prefix is added
only if the url does not already start with the prefix.

opw-2882492

X-original-commit: https://github.com/odoo/odoo/commit/2b326de107b9b7a2013ee9ff174d81b645d6a623
Part-of: odoo/odoo#104639
2022-11-07 13:49:58 +01:00
Kartik Chavda 1f3a392ffa [IMP] project_timesheet_holidys: make timesheet page readonly for time off tasks
This commit make timesheet page of tasks related to time off types readonly
so user can not create,update or delete timesheets create by leaves

task-2888607

closes odoo/odoo#96359

Related: odoo/enterprise#29678
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-11-07 13:49:50 +01:00
Prakash Prajapati 2b21daec04 [IMP] *_: replace the UserError into RedirectWarning in the timesheet
_* = project_timesheet_holidays

Currently, if the timesheet is associated with timeoff and it is deleted, a
user error occurs.
In this commit, RedirectWarning will appear instead of user error, so it can be
redirected to the timeoff linked to the timesheet.

task-2888607

Part-of: odoo/odoo#96359
2022-11-07 13:49:50 +01:00
Hpar fdcde098fb [IMP] stock: stock_package_type uom values from int to float
I do not see a good reason why height, width, length are integers.
It has been introduced in 2015 here: 2ff3749064 https://github.com/odoo/odoo/pull/9994

Having float is better : it's allow more expressiveness and is less prone to errors for our users.

closes odoo/odoo#85268

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-11-07 13:49:47 +01:00
Louis Wicket (wil) a0927af12a [IMP] mail: remove leading whitespaces
Remove leading whitespaces introduced in 0cb45f3d19e37b9799c3b5064d4ff3d56127fb4d

closes odoo/odoo#105123

Related: odoo/enterprise#33692
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-07 11:27:21 +01:00
Brieuc-brd 6522a6d0c4 [FIX] web: select2, adapt css selectors and variables
Prior to this commit, some scss selectors where duplicated
(`.select2-results`) and where not targeting the right element.

This commit also changes the css variables name based on the right
structure : --component__childItem-property--state

task-2710677

closes odoo/odoo#105118

X-original-commit: 25a7ca929b4342fe7b2941f941a001e0dd0370e9
Related: odoo/enterprise#33689
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-11-07 11:27:10 +01:00