Commit Graph
147686 Commits
Author SHA1 Message Date
Louis Wicket (wil) 1edec02e4b [IMP] mail: rename dialog model
Rename javascript model `mail.dialog` to `Dialog` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81333

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 11:12:02 +00:00
Louis Wicket (wil) 08e34b4ca9 [IMP] mail: rename attachment list model
Rename javascript model `mail.attachment_list` to `AttachmentList` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81316

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 11:11:58 +00:00
Louis Wicket (wil) 5108f97b8c [IMP] mail: rename attachment box view model
Rename javascript model 'mail.attachment_box_view' to AttachmentBoxView
in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#80602

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:11:54 +00:00
Louis Wicket (wil) 5ce76d3af8 [IMP] hr: rename employee model
Rename javascript model 'hr.employee' to 'Employee' in order to
distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80561

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:11:51 +00:00
Paolo (pgi) b63901b41d [FIX] account: Manual write-off with tax fixed
When the Reconciliation Model had a tax on the writeoff,
the journal_id wasn't populated by widget.get_reconciliation_dict_from_model(),
preventing the reconciliation from happening.

opw-2689002

closes odoo/odoo#81396

X-original-commit: 17a1c960cc3cce1850a6009ebf9641174e0304fb
Related: odoo/enterprise#22891
Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
2021-12-15 10:18:09 +00:00
Louis Wicket (wil) cfbfca7c83 [IMP] mail, website_livechat: rename country model
Rename javascript model `mail.country` to `Country` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81331

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 10:18:01 +00:00
Julien Van Roy e4818b6821 [IMP] account: Invoice / Bill Outstanding Debit / credit improvement
This commit:
1) fixes the customer invoice/vendor bill outstanding debit/credit warning anchor link
2) improves the customer invoice/vendor bill outstanding section
3) fixes the customer invoice/vendor bill outstanding debit/credit warning messages when viewing an account move reversal
4) modifies the order of the 'invoice lines' tab for mobile view

1) The anchor link did not work when pointing to a field (the id of a field is not propagated into the DOM).
Hence,the target field is put inside a div with the correct id.

2) The outstanding section is placed to the right, below the amount due and next to the description for clarity purpose.
The 'Add' button is turned into a secondary button (s.t. it is more noticeable). Each entry name is now a link to to the corresponding account move.

3) The warning messages are modified because they were not consistent and confusing when viewing an account move reversal.

4) Previously, the order on the 'invoice lines' tab was: narration>total>widget, now it is: total>widget>narration

task-2669132

closes odoo/odoo#78550

Signed-off-by: Laurent Smet <las@odoo.com>
2021-12-15 09:26:54 +00:00
Julien Van Roy e2c0fec9ff [IMP] account: remove dead code
Part-of: odoo/odoo#78550
2021-12-15 09:26:54 +00:00
Florian Damhaut e0c1071d59 [FIX] uom: Correct uom creation link
Since 6f182eeeab UoM should be created through the UoM category tab as the UoM form view is now unusable.
To ensure that this is the case, we remove menu link to the form view and update the other to lead to UoM category instead.

opw-2702953

closes odoo/odoo#81221

X-original-commit: 58a3954d606d48b2a4cf678eb0bf13d6e28b1aef
Signed-off-by: Damhaut Florian (flda) <flda@odoo.com>
2021-12-15 08:15:43 +00:00
Louis Wicket (wil) 61c658542a [IMP] mail: rename thread partner seen info model
Rename javascript model `mail.thread_partner_seen_info` to
`ThreadPartnerSeenInfo` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81435

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:27 +00:00
Louis Wicket (wil) 58118d2f1d [IMP] mail: rename thread cache model
Rename javascript model `mail.thread_cache` to `ThreadCache` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81434

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:23 +00:00
Louis Wicket (wil) a43d662017 [IMP] mail, *: rename thread model
Rename javascript model `mail.thread` to `Thread` in order to
distinguish javascript models from python models.

Part of task-2701674.
 * = hr, hr_holidays, im_livechat, website_livechat

closes odoo/odoo#81433

Related: odoo/enterprise#22910
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:16 +00:00
Louis Wicket (wil) 0b43921d3b [IMP] mail: rename suggested recipient info model
Rename javascript model `mail.suggested_recipient_info` to
`SuggestedRecipientInfo` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81432

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:12 +00:00
Louis Wicket (wil) a408eb8f7d [IMP] mail: rename sound effects model
Rename javascript model `mail.sound_effects` to `SoundEffects` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81431

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:08 +00:00
Louis Wicket (wil) 6fd5f70358 [IMP] mail: rename sound effect model
Rename javascript model `mail.sound_effect` to `SoundEffect` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81417

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:59:03 +00:00
Louis Wicket (wil) e6c27f5fc1 [IMP] mail: rename rtc session model
Rename javascript model `mail.rtc_session` to `RtcSession` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81416

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:58:59 +00:00
Louis Wicket (wil) 74fddfd312 [IMP] mail: rename rtc peer notification model
Rename javascript model `mail.rtc_peer_notification` to
`RtcPeerNotification` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81415

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:58:55 +00:00
Louis Wicket (wil) 5f87c6ff47 [IMP] mail: rename rtc option list model
Rename javascript model `mail.rtc_option_list` to `RtcOptionList` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81414

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:58:51 +00:00
Louis Wicket (wil) 4d56255d73 [IMP] mail: rename rtc layout menu model
Rename javascript model `mail.rtc_layout_menu` to `RtcLayoutMenu` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81413

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:58:47 +00:00
Louis Wicket (wil) b3091216d7 [IMP] master: rename rtc controller model
Rename javascript model `mail.rtc_controller` to `RtcController` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81412

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:58:43 +00:00
Louis Wicket (wil) 66382ab1d7 [IMP] mail: rename rtc configuration menu model
Rename javascript model `mail.rtc_configuration_menu` to
`RtcConfigurationMenu` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81411

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:43 +00:00
Louis Wicket (wil) 56e1257dc4 [IMP] mail: rename rtc call viewer model
Rename javascript model `mail.rtc_call_viewer` to `RtcCallViewer` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81410

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:40 +00:00
Louis Wicket (wil) 4a647e17b0 [IMP] mail: rename rtc call participant card model
Rename javascript model `mail.rtc_call_participant_card` to
`RtcCallParticipantCard` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81409

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:37 +00:00
Louis Wicket (wil) 916fc7430b [IMP] mail: rename rtc model
Rename javascript model `mail.rtc` to `Rtc` in order to distinguish
javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81408

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:33 +00:00
Louis Wicket (wil) e4eeff3d4f [IMP] mail: rename popover view model
Rename javascript model `mail.popover_view` to `PopoverView` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81407

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:30 +00:00
Louis Wicket (wil) 1d8da9232a [IMP] mail: rename model model
Rename javascript model `mail.model` to `Model` in order to distinguish
javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81390

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:26 +00:00
Louis Wicket (wil) 9303e896f4 [IMP] mail, *: rename messaging notification handler model
Rename javascript model `mail.messaging_notification_handler` to
`MessagingNotificationHandler` in order to distinguish javascript models
from python models.

Part of task-2701674.
* = im_livechat, website_livechat

closes odoo/odoo#81389

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:23 +00:00
Louis Wicket (wil) e8552668f0 [IMP] mail: rename messaging menu model
Rename javascript model `mail.messaging_menu` to `MessagingMenu` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81388

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:18 +00:00
Louis Wicket (wil) c8cfc58ea8 [IMP] mail, *: rename messaging initializer model
Rename javascript model `mail.messaging_initializer` to
`MessagingInitializer` in order to distinguish javascript models from
python models.

Part of task-2701674.
* = crm_livechat, im_livechat, mail_bot

closes odoo/odoo#81387

Related: odoo/enterprise#22889
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:51 +00:00
Louis Wicket (wil) deb12bc032 [IMP] hr, mail, snailmail: rename messaging model
Rename javascript model `mail.messaging` to `Messaging` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81386

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:48 +00:00
Louis Wicket (wil) bf297be03a [IMP] mail: rename message view model
Rename javascript model `mail.message_view` to `MessageView` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81385

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:44 +00:00
Louis Wicket (wil) b02edc2887 [IMP] mail: rename message seen indicator model
Rename javascript model `mail.message_seen_indicator` to
`MessageSeenIndicator` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81384

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:41 +00:00
Louis Wicket (wil) d7d5d522c2 [IMP] mail: rename device model
Rename javascript model `mail.device` to `Device` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81332

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:37 +00:00
Louis Wicket (wil) 4dfec3b8bf [IMP] im_livechat, mail: rename chat window model
Rename javascript model `mail.chat_window` to `ChatWindow` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81322

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:34 +00:00
Louis Wicket (wil) 7936173c27 [IMP] mail: rename activity type model
Rename javascript model 'mail.activity_type' to 'ActivityType' in order
to distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80600

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:30 +00:00
Louis Wicket (wil) c873ea643a [IMP] mail, calendar, website_slides: rename activity model
Rename javascript model 'mail.activity' to 'Activity' in order to
distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80555

Related: odoo/enterprise#22593
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:23 +00:00
Louis Wicket (wil) a74c67169a [IMP] mail: rename channel command model
Rename javascript model `mail.channel_command` to `ChannelCommand` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81320

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 22:26:58 +00:00
Louis Wicket (wil) de0eec346a [IMP] mail: rename attachment viewer model
Rename javascript model `mail.attachment_viewer` to `AttachmentViewer`
in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81317

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 21:37:13 +00:00
Louis Wicket (wil) ccabe512b3 [IMP] mail: rename attachment image model
Rename javascript model `mail.attachment_image` to `AttachmentImage` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81315

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 20:42:44 +00:00
Raphael Collet 6a12cd65d5 [FIX] core: create() always inverses fields in the same order
This makes the inversion of fields deterministic, as some orderings make
street fields crash in module base_address_extended.

closes odoo/odoo#80824

Related: odoo/enterprise#22711
Related: odoo/upgrade#3093
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-12-14 19:13:18 +00:00
Yannick TivisseandVictor Feyens 18952cdc76 [IMP] *: Convert single create method into multi
Taskid: 2703085
Part-of: odoo/odoo#80824
Co-authored-by: Victor Feyens <vfe@odoo.com>
2021-12-14 19:13:18 +00:00
Louis Wicket (wil) b403c7e068 [IMP] mail: rename activity box view model
Rename javascript model `mail.activity_box_view` to ActivityBoxView in
order to distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80605

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 19:13:13 +00:00
std-odoo ea5101a4ee [IMP] mail: add capital letters to the "Read More / Less" button
Purpose
=======
In the chatter, when we reply to an email, the parent email is folded
behind a "read more" button. Add capital letters to this button to make
it more visible.

Task-2656302

closes odoo/odoo#80571

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 19:13:09 +00:00
Louis Wicket (wil) 1b74cb210e [IMP] mail: rename guest model
Rename javascript model 'mail.guest' to 'Guest' in order to distinguish
javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80547

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 19:13:05 +00:00
thcl-odoo 28fc85c661 [FIX] sale_stock: correctly display lot's quantities on invoice
Current behavior :
Quantity displayed on 'Detailed operations' block for a product lot isn't correctly displayed on the invoice sometimes.

Steps to reproduce :
- Install Sales and Stock
- Enable 'Units of Measure' in Settings
- Enable debug mode then go to Users and enable 'Display Serial & Lot Number on Invoices' for current user (i.e. Mitchell Admin)
- Create a new product
  - Tracking set to 'By Lots'
  - UoM set to 'g'
- Create a quotation with the previously created product and set the quantity to 3.07
- Confirm the quotation, go to the Delivery and confirm it too
- Go back to the SO and create the invoice, then go to the invoice and confirm it
- Print the invoice

OPW-2704307

closes odoo/odoo#81422

X-original-commit: 5a978bce24266ae35db4cfc2180cbaa61d21897f
Signed-off-by: Arnold Moyaux <arm@odoo.com>
Signed-off-by: Claude Thibault (thcl) <thcl@odoo.com>
2021-12-14 18:23:23 +00:00
Laurent Stukkens (LTU) 4a6f5a7268 [FIX] hr_timesheet: use correct field type for timesheet_count
This commit fixes #80080 where a bad field type has been used.
Fortunatelly the field is only used in conditions where it is checked as being Truthy.

closes odoo/odoo#81419

Signed-off-by: Xavier <xbo@odoo.com>
2021-12-14 18:23:13 +00:00
svs-odoo 6d034d9e52 [FIX] *sale*: exception when cancel SO
The commit ca7d5701c6a46f7781bdc9af9f2d26cca880eb93 fixes issue with
backorder being to quickly canceled but as it call `action_cancel`
before the condition who's looking on the SO state, the condition can
never be matched as the SO state will always be `cancel`.
So, the exception about the SO being cancelled will not be logged on
following documents.

How to reproduce:
  - Create a product and enable route MTO + Manufacture on it and create
    a BoM for this product;
  - Create a SO for this product and confirm it;
  - Cancel the SO and check the generated MO => There is no exception
    about the cancellation of the SO.

This commit fixes this issue and doesn't impact the previous fix.

task-2657799

closes odoo/odoo#79215

closes odoo/odoo#81178

closes odoo/odoo#81401

Related: odoo/enterprise#22008
Related: odoo/enterprise#22814
Related: odoo/enterprise#22896
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2021-12-14 18:23:03 +00:00
Louis Wicket (wil) f3e0671a8d [IMP] mail: rename composer view model
Rename javascript model `mail.composer_view` to `ComposerView` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81328

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 18:22:59 +00:00
Louis Wicket (wil) feb30408cb [IMP] mail: rename channel invitation form model
Rename javascript model `mail.channel_invitation_form` to
`ChannelInvitationForm` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81321

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 18:22:55 +00:00
Camille Spiritus 3732aea4b8 [IMP] account,sale: move partner_shipping_id field from sale to account
The computation of 'partner_shipping_id' is now done using a 'compute' instead of 'onchange'.

task-2601934

closes odoo/odoo#78449

Related: odoo/enterprise#22098
Related: odoo/upgrade#3000
Signed-off-by: Laurent Smet <las@odoo.com>
2021-12-14 14:47:25 +00:00