Commit Graph
155076 Commits
Author SHA1 Message Date
Lucas Lefèvre ea1f747f2c [FIX] spreadsheet_dashboard: don't import test files
closes odoo/odoo#102496

X-original-commit: 64d1450b0f644eb3da6f68f0c333730c7d630726
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-06 19:59:14 +02:00
Odoo's Mergebot 28d3c06aff [FW][FIX] stock, purchase{,_requisition}: Fix visual layout for forms
Description of the issue/feature this PR addresses:
1. Adapts the layout of the `Alternatives` tab of the purchase order form to the new grid system.
2. Fixes display of the confirmation mail for receipts in the purchase order form.
3. Adapts the layout of the backorder confirmation wizard to the new grid system.
A few fixes of the visuals of the Purchase Order form.

Current behavior before PR:
Alternatives RFQ:
![2022-10-04_09-54-07](https://user-images.githubusercontent.com/18055894/194296728-849e9693-c4d5-42d9-83b5-576de54eecf2.png)

Confirmation before arrival:
![image](https://user-images.githubusercontent.com/18055894/194297447-328d640f-387a-43e6-b59d-cb8ab707be82.png)

Backorder confirmation:
![image](https://user-images.githubusercontent.com/18055894/194311631-d7228eba-57d8-48cc-9dae-659d9e4aef99.png)

Desired behavior after PR is merged:
Alternatives RFQ:
![image](https://user-images.githubusercontent.com/18055894/194297724-e93654e5-b8ac-4e00-b1ca-569b35bc6337.png)

Confirmation before arrival:
![image](https://user-images.githubusercontent.com/18055894/194297503-d846d7c6-8bfb-41d7-92fd-14552a9bdc17.png)

Backorder confirmation:
![image](https://user-images.githubusercontent.com/18055894/194311451-d50e39d7-46f4-4f56-bc76-27f8daeeb149.png)

closes odoo/odoo#102495

Forward-port-of: odoo/odoo#102431
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-10-06 19:59:09 +02:00
clesgow 320d81d5d3 [FIX] stock: Backorder wizard layout
Adapts the layout of the backorder wizard to the new grid css for
groups.

Part of task-2985735

X-original-commit: b3f151b3a64312939e5f10c209f54a38b621c8a8
Part-of: odoo/odoo#102495
2022-10-06 19:59:08 +02:00
clesgow d850128292 [FIX] purchase: re-align receipt reminder
Avoids breaking the layout by hiding the label instead of fully removing
it from the DOM

Part of task-2985735

X-original-commit: 36eab7d034b52657bae988e5c35b0c429df2c05b
Part-of: odoo/odoo#102495
2022-10-06 19:59:08 +02:00
clesgow f6ed2835e5 [FIX] purchase_requisition: Adapt for grid
Adapt to the new css grid for groups. Without this, the values in the
`<p>` are squished into a small fraction of their columns.

Part of task-2985735

X-original-commit: 8544fd84916153ffe903a639f3b88b2e83554337
Part-of: odoo/odoo#102495
2022-10-06 19:59:07 +02:00
Mathieu Duckerts-Antoine 44f5d4d986 [FIX] web: breadcrumb ellipsis
Going to My profile (user menu item when hr installed), the user name
is not fully displayed in the breadcrumb although there is enough space
to display it. We fix that by removing a rule that has become apparently
useless.

closes odoo/odoo#102492

X-original-commit: 09b5b83b41cd450359993eaca510d2e5b5a429ea
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 19:59:04 +02:00
Simon Genin (ges) 8cc76de483 [FIX] web: visual: tag list in kanban
If the kanban box template is too simple, with basically no classes to
wrap content, the tags would suddenly take too much vertical space and
overflow the kanban card.
Since the property h-100 doesn't seem to be actually needed, it's
removed.

closes odoo/odoo#102491

X-original-commit: 571017873a4099fd4f514e6cc186d1bf03778d9e
Signed-off-by: Luca Vitali <luvi@odoo.com>
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2022-10-06 19:59:01 +02:00
Géry Debongnie dcf6f8ef3c [REF] web_editor: lazyload html2canvas
Before this commit, the html2canvas library was loaded in the
assets_common bundle, which is in turn loaded by pretty much all odoo
users.

Since it is a big library, and it is only used in two different cases,
it makes sense to lazy load it.  The call in convert_inline.js has been
adapted.  It is however also added to the point of sale bundle, and
could probably be lazy loaded as well.

closes odoo/odoo#102490

X-original-commit: 3d94b0212d2b7f4d412a578055de42e3f88058eb
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-10-06 19:58:59 +02:00
maximilien(malb)andJohn Laterre e58f098d1a [FIX] account: Unbalanced journal entries warning
Change of the error when a journal entries is unbalanced, so that the error is clearer for the user

closes odoo/odoo#102487

Task-id: 2999182
X-original-commit: cb2c8c1865b7f567d193f8a561a403b520180122
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Co-authored-by: maximilien(malb) <malb@odoo.com>
Co-authored-by: John Laterre (jol) <jol@odoo.com>
2022-10-06 19:58:56 +02:00
John Laterre (jol) d5bfc839df [FIX] account: automatically create balancing lines on entries
Currently, in a Journal Entry, applying a tax on any journal item doesn't compute the corresponding tax line.

We end up in a situation where the move appears balanced but doesn't take into account the taxes applied. Moreover, the move cannot be posted.

The solution involves several steps:
- Changing a tax on a line now triggers a save.
- Changing the debit or credit on a line with taxes will also trigger a save.
- The company's suspense account is used for the balancing line.

During the save, a check is added to see if the move is unbalanced.
In that case, a balancing line will automatically be created to ensure the move can be saved.

X-original-commit: a3e9ca9586cba9d6161d4c05a7bfff9beeeddea7
Part-of: odoo/odoo#102487
2022-10-06 19:58:56 +02:00
gawa-odoo e0680fc7fd [FIX] account: prevent analytic distribution on all lines of invoice
Before the fix, the payable/receivable line would also receive the distribution.
The compute function will only add it to the lines of display_type 'product' (as before 7e34030).

We now also add it to taxes that don't have `use_in_closing`.

closes odoo/odoo#102486

X-original-commit: 5551f336b61a6d441f3ec5416f987d8a98c221ca
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-06 19:58:50 +02:00
Sébastien Theys 49020574f3 [FIX] mail, website: hide backend chat windows from website preview
Part of task-2978890

closes odoo/odoo#102473

X-original-commit: cd7b6a799d84f59ac3b64b262cd13d00965c9c71
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:58:47 +02:00
Jacky (trj) cd353e2b52 [FIX] pos_restaurant: orders table synchronization
Due to how we change the reactivity in the UI and the printing changes that kept
being computed and set when an order object is created, fetched orders became part of
the `ordersToUpdateSet` which is wrong. Only updated orders should be tracked and send
to the back end.

Also fixed how the transferred order should act when offline then online.

closes odoo/odoo#102472

X-original-commit: db553434a4a07599bcefb628ef672807f89db863
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2022-10-06 19:58:44 +02:00
Bruno Boi 3d1fed59f0 [FIX] web: not melt caret with text of some inputs
- Before this commit
The carets of autocomplete fields and datepickers inputs is behind the
text if the value shown in the input is too long.

- After this commit
Fixed.

closes odoo/odoo#102400

X-original-commit: 8027e13aa3bb515452ab48b7f9253cbde02d8b60
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2022-10-06 19:58:38 +02:00
Ricardo Gomes Rodrigues (rigr) ae5453775b [FIX] account: prevent resequence of an invoice if it's in a locked period
Currently, the user can resequence invoices that are in a locked period.
This is not desirable, this commit fixes this.

closes odoo/odoo#102469

X-original-commit: b1009e4aa514215054de44544a8914c16932f55e
Related: odoo/enterprise#32423
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-10-06 19:04:33 +02:00
Kevin Baptiste 8a71cdf22b [FIX] hr_holidays, lunch: fix post-always edit
This PR adapts the form views since the merge of #100570.

task-3002537

closes odoo/odoo#102467

X-original-commit: de72d27ea121c1944d7a3d3e5996ce08473d3b09
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 19:04:31 +02:00
Dossogne Bertrand f39e08e69b [FIX] hr_skills: fix skills display
Fixes skills display on both employee and applicant page.

task-3002256

closes odoo/odoo#102463

X-original-commit: b93af7c2b502d7b884fbb6a271e5c5cda03af054
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 19:04:28 +02:00
Mathieu Duckerts-Antoine 4044635677 [FIX] web: ModelFieldSelectorPopover: edition of path in input
Before this commit, it was not possible to edit the path via the
model field selector popover input (visible in debug mode). We fix that.

closes odoo/odoo#102462

X-original-commit: 084af201f1f4f4cb3476ab34d3dcd649a71a4254
Signed-off-by: Luca Vitali <luvi@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-10-06 19:04:25 +02:00
stefanorigano (SRI) 7ce4abcc10 [FIX] web: 'listView` and tables
- Set striped tables order to 'even'
- Adjust vertical padding

task-3008334

closes odoo/odoo#102443

X-original-commit: 12fbe5bbfb63d344e3f4e074f752551baaa3cd48
Related: odoo/enterprise#32409
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-06 19:04:14 +02:00
tsm-odoo cc462a0be4 [IMP] bus: throttle update bus presence method
Before this commit, the `updateBusPresence` method could have been
called many times in a row, resulting in many `update_presence` messages
being sent through the socket. This commit solves this issue by throttling
this method in order for it to only be called once in `UPDATE_BUS_PRESENCE_DELAY`
seconds.

closes odoo/odoo#102442

X-original-commit: 0b581f5af509040928babf0e892732c0f4c873e5
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:04:11 +02:00
Didier (did) b95c95e6d4 [IMP] mail: convert LegacyComponent CallOptionMenu
part of task-2783065

closes odoo/odoo#102433

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-10-06 19:04:09 +02:00
maximilien(malb) a6fff60782 [FIX] account: journal view
The "configure email server" was misplaced, a colspan fix this issues

closes odoo/odoo#102429

X-original-commit: 8a435032d8a15c954a949b7c5fac5bd4ee18ca22
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
2022-10-06 19:04:06 +02:00
Pierre Masereel f510dd8fe9 [FIX] point_of_sale: display cash balance on session
When you are opening the session form in the backend to display what has
been done during the session you cannot easily see what was the starting
and ending balance of the cash of a session.

So we are now displaying those fields in the session form.

closes odoo/odoo#102428

X-original-commit: 0ab780ec61d265e2d68d873bd8bc5b7bebfcd01f
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-06 19:04:00 +02:00
Damien Bouvy 59481e5421 [FIX] stock: return wizard grid form views compat
closes odoo/odoo#102426

X-original-commit: 0e66037ca6a6fb3c2c107520545de9d09281457a
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 19:03:58 +02:00
William Braeckman eec2f1eea4 [FIX] website_sale: reintroduce pricelist selector on product pages
There was a missing class on the pricelist selector for product pages
leading to the pricelist selector simply not being displayed.

TaskId-3007737

closes odoo/odoo#102425

X-original-commit: 522cb8116d959dbc17717e149b76490b0ec2fd63
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-10-06 19:03:55 +02:00
Damien Bouvy b7b27287b7 [FIX] website: correct creation wizard view
Having multiple groups one after the other will cause the labels to not
have the same width; converge all in a single group

closes odoo/odoo#102424

X-original-commit: c787b16421807355e58d3029a0941d3bdd65fad7
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 19:03:53 +02:00
Damien Bouvy cbd04638f6 [FIX] payment_stripe: grid form compat
X-original-commit: 281731c1ca517aa3c4e37032a69e82adc72ebc46
Part-of: odoo/odoo#102424
2022-10-06 19:03:53 +02:00
tsm-odoo 9e4a8dc43f [IMP] mail, *: split mock server by model/controller
*: bus, calendar, hr_holidays, im_livechat, note, rating, snailmail,
website_livechat.

The mail mock server is getting bigger and bigger. As a consequence,
navigating/keeping it up to date is quiet inconvenient.

This commit solves this issue by splitting it by model/controller.

closes odoo/odoo#98374

Related: odoo/enterprise#32314
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:03:49 +02:00
clesgow 8e80f6bece [IMP] stock: Storage category capacity menu
"Storage Category Capacity" menu appears as long as the debug mode is
on, even if the "Storage Category" isn't selected in the settings and
the corresponding group isn't set.

Since this menu is accessible from the Storage Category form anyway, we
move the link to this table in the settings (where we can safely display
it in debug AND with the setting activated), and we remove it from the
menu.

Part of task-2985735

closes odoo/odoo#102422

X-original-commit: 8b2ca9743af423dbe89c4992f462d36d434a60a9
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-10-06 18:01:42 +02:00
Didier (did) bc5fde3e3e [FIX] mail: introduce hasEditButton
closes odoo/odoo#102421

X-original-commit: 715902da8ae76f5f027e4209c52e69c28f4bcb71
Related: odoo/enterprise#32400
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Debondt Didier (did) <did@odoo.com>
2022-10-06 18:01:37 +02:00
tsm-odoo 6aa91b5666 [FIX] bus: reconnect websocket after user log in/out
Before this PR, a websocket would wait for the server to close
it with a `SessionExpired` close code to be refreshed after the user
logged in/out. Indeed, the server is responsible to check for outdated
sessions on incoming/outgoing messages.

This is problematic: a user logging in with more than one tab opened,
would have to wait to receive its messages. This PR solves this issue
by refreshing the connection immediately in this scenario.

closes odoo/odoo#102420

X-original-commit: 225f80882a130ae63af193adef412e6b993f2c11
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
2022-10-06 18:01:35 +02:00
Didier (did) f54c392111 [IMP] mail: convert LegacyComponent webClientViewAttachmentView
Since
https://github.com/odoo/enterprise/commit/afcdd1878a2eaf4cbca85d1169dea31a108c8c43#diff-f064a21c91b8daa5d78c44e88e2c02345ff0a7230403dd3600a65d3a6b0653d3L18
there is no listener for preview_attachment_validation.

Part of task-2783065

closes odoo/odoo#102406

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 18:01:29 +02:00
Xavier Morel 9b891b6bb2 [IMP] core: error reporting on tour timeouts
When 2e8647bf16 converted the browser
runner to a more reactive / evented system, one bit was missed in
"wait_code_ok": concurrent.futures.Future raises exceptions on various
events, such as tour timeouts. Because those exceptions were not
caught (or just ignored) the code which takes screenshots was
bypassed, leading to a lack of screenshots on tour timeouts (and a few
other rarer errors), making debugging more complicated.

The error reporting was also not ideal as `wait_code_ok` would raise
an unexpected (by its caller) `TimeoutError` rather than
`ChromeBrowserException`.

Fix those two issues, should hopefully makes these occurrences clearer
and easier to diagnose.

closes odoo/odoo#102403

X-original-commit: 974217968ea970330946c5184bd3b3550ec3cde3
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-10-06 18:01:27 +02:00
Dossogne Bertrand ad445235d7 [FIX] hr_recruitment: fix wrong value for boolean
A value was set as 0 instead of false, causing a traceback.

closes odoo/odoo#102402

X-original-commit: d5a684fb562011875ec472c0263c2022de1656d5
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 18:01:24 +02:00
Damien Bouvy 8eefd51ff9 [FIX] barcode: unexpected grid views behaviours
closes odoo/odoo#102401

X-original-commit: e5c3036739c5084cc6216bed767de0f746a9be3e
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 18:01:21 +02:00
William Henrotin 8d30502e1b [FIX] mrp: convert the Google Slides viewer in Owl
closes odoo/odoo#102398

Task: 2991906
X-original-commit: ba593c742c62db9cf9b310eaf5e104802821dad3
Related: odoo/enterprise#32383
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-10-06 18:01:09 +02:00
William Henrotin 9dc5f5f60f [FIX] mrp_workorder: fix status badge on kanban card
The status badge on workorder kanban card was hidden behind a dropdown
widget because of a wrongly used class.

X-original-commit: 491546a5c3ce6203763a7d829b44107e66ff3f42
Part-of: odoo/odoo#102398
2022-10-06 18:01:09 +02:00
Didier (did) 85bfd00dd4 [IMP] mail: convert LegacyComponent discuss to Component
part of task-2783065

closes odoo/odoo#102388

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 18:01:02 +02:00
Adrien Minne 1befe0567d [IMP] spreadsheet_dashboard_*: update dashboards to latest version
closes odoo/odoo#102383

X-original-commit: bf6fc61a2bd2724be3bfc4d8e496e0dfc11cdfdf
Related: odoo/enterprise#32374
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-10-06 18:00:54 +02:00
clesgow 866d9a3aa8 [FIX] stock: No backorder validation
When validating a batch containing both fully done pickings and
partially done pickings, if we select "No backorder" it will remove the
partially done pickings from the batch.
This is because only the partially done pickings will be considered as
"pickings not to backorder", while the fully done will be considered as
"pickings to backorder".
Then validation is splitted between the two groups of pickings, and
since by the end of the first validation, the batch is not fully done
(since the other group will be validated afterwards), those pickings are
removed from the batch.

This fix aim to consider all pickings that are fully/partially done as
"not to backorder" if this option is selected.

opw-2971574

closes odoo/odoo#102382

X-original-commit: a98b3ff73d1c3d5fda7da3433caf83d58acc2f3c
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-10-06 18:00:49 +02:00
clesgow 99361d8172 [FIX] delivery_stock_picking_batch: batch by weight
When checking if the picking is auto-batchable, calling
`_is_auto_batchable()` with `picking` having it's default value `None`,
it would raise an error as it would try to access the `weight` property
from a NoneType.

Part of task-2985735

X-original-commit: 574ff569e5b9a043d29b7113f8bfe3a549a74d72
Part-of: odoo/odoo#102382
2022-10-06 18:00:49 +02:00
clesgow 93ed42f12e [FIX] purchase_stock: confirm push pickings
When creating a Purchase Order with multi-step reception, the pickings
created by the push rules won't get confirmed as they should be (like in
the sales multi-step flow).

This creates issues further down with auto-batch as created pickings
don't get auto-batched even if the picking type is set to do it.

Task-2971346

X-original-commit: dc517bbe7ffbae8a8774f705c9431dce45c461ba
Part-of: odoo/odoo#102382
2022-10-06 18:00:48 +02:00
clesgow cd2dbf0a67 [FIX] stock_picking_batch: Backorder autobatch
When a backorder was created and the auto_batch was activated for this
picking_type, no batch was assigned to the created backorder, even if it
matched the auto-batch criterias.

Now when a picking is done, we check if backorders were created. If they
are eligible for auto-batchs (given their picking_type, etc.), they also
get the auto_batch done for them.

We can't simply use the previous picking's batch, because if this batch
is now done, then introducing a non-done picking into the batch would
raise an inconsistency between the pickings' states and raise an error.

Removes the old override of backorder confirmation as now batch
dissociation is done in the picking's 'action_done()' override.

Allows the validation of a batch that has pickings 'waiting for another
operation', as they now will get removed from the batch in the process,
no longer blocking the batch's validation.

Finally, makes that pickings that had no quantities done when validating
a batch aren't cancelled when selecting 'No backorder' in the
confirmation wizard, but are instead removed from the batch.

Task-2971346

X-original-commit: 1720840b7bd9b3e3e90f7cf860f60f1d0746ce63
Part-of: odoo/odoo#102382
2022-10-06 18:00:48 +02:00
clesgow d7488f56f4 [IMP] stock: picking sanity_check
Move the sanity check from the `button_validate()` outside so it can be
run premptively in a different context.

Basically it allows batches to run the santiy_check as a whole. This
means that when the function checks if there is at least one quantity
done to check only those move_lines for the lot/serial numbers, it is
now able to check the pickings independantly from each others like
before, but also as if they were a single entity.

This can avoid this weird behavior in the following batch :

Picking | product_name   | qty | done_qty
--------|----------------|-----|---------
Pick_1  | product_1      |   2 |       0
Pick_1  | product_serial |   1 |       0
Pick_2  | product_2      |   2 |       0

Setting a done_qty on product_1 would be fine to validate the batch,
since at least one done_qty would be found within Pick_1. But setting a
done_qty on product_2 would raise an error for missing serial numbers
since then no done_qty would be found within Pick_1.

This commit evens the behavior of the sanitizer in this case. While
keeping the way it works outside of a batch validation.

Task-2971346

X-original-commit: 3a3b5d90d58339f65b1db0b52a2c81e02b5a3f17
Part-of: odoo/odoo#102382
2022-10-06 18:00:48 +02:00
Joseph Caburnay 1b2b759a49 [FIX] web: remove green outline on active cell
closes odoo/odoo#102381

X-original-commit: a4d68f6d0a7b6910d48fcd067b3d98cccddc29f0
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2022-10-06 17:00:36 +02:00
Joseph Caburnay e28a3862c6 [FIX] web: background of active row should not be grey
**Current behavior before PR:**

When changing the focus with keyboard (keyboard navigation),
the background of the active row is grey, we don't like grey.

**Desired behavior after PR is merged:**

We want the plain old white background.

X-original-commit: bb70c3c289a3b6222bd991f0426c4e5e63359872
Part-of: odoo/odoo#102381
2022-10-06 17:00:36 +02:00
Benoit Socias 720a8c9940 [IMP] base, web: unify the behavior of cookie setters
Both implementations of `set_cookie` in `http.py` and the one of
`setCookie` in `cookie_utils.js` are slightly different.

This commit unifies both Python implementations and replicates the same
behavior in JS:
- default the cookie type to "required"
- if setting that type is not allowed, delete that cookie if it was
previously set

task-2800976

closes odoo/odoo#102380

X-original-commit: fa8fdab2894607f1f89cdd195f62ec37af7b0342
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-06 17:00:33 +02:00
Benoit Socias 329b0522a7 [FIX] website: restore padding editability of discrete cookies bar
In [1] the padding of the discrete cookies bar template was moved from
the column to the row.
This prevents editing the padding per column using the website editor.

This commit moves this padding back onto the columns and wraps the text
inside a paragraph so that it does not get closer to the bottom border
of the screen.

[1]: https://github.com/odoo/odoo/commit/2ca91a90d0aa61405547349d5cd366179bc3f419

task-2800976

X-original-commit: c50e2adf592a336d1f991e9a461eeeb21a2a64f0
Part-of: odoo/odoo#102380
2022-10-06 17:00:33 +02:00
Julien Van Roy 7d2ddf23ad [FIX] account_edi: fix _compute_edi_format_ids on journal
When computing the edi_formats on a journal, keep the ones
that are already checked (if they are compatible with this journal).

The bug occurs when migrating a DB: if a new edi_format is created,
the `create` will call the `_compute_edi_format_ids` on all journals.
Thus, all edi_formats will be reset since nothing keeps track of the
already checked edi_formats. This PR fixes this.

closes odoo/odoo#102368

X-original-commit: 166aaeef1ca69399581714b61ea77db7c3e04f31
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
2022-10-06 17:00:27 +02:00
Louis Wicket (wil) abfc535a1f [IMP] mail: add error message for field patch with fieldType
closes odoo/odoo#102363

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 17:00:24 +02:00