Commit Graph
147217 Commits
Author SHA1 Message Date
Louis Wicket (wil) 9705820334 [IMP] mail: properly pluralize x2many fields
Go through all the x2many javascript models fields and make their name
plural when needed.

closes odoo/odoo#81467

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 22:31:16 +00:00
Alexandre Kühn 86db17588e [IMP] mail: rename user setting model
Rename javascript model mail.user_setting to UserSetting
in order to distinguish javascript model from python model.

Task-2701674

closes odoo/odoo#81478

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 20:53:56 +00:00
Alexandre Kühn 990b88d88e [IMP] mail: rename follower subtype list model
Rename javascript model mail.follower_subtype_list to FollowerSubtypeList
in order to distinguish javascript model from python model.

Task-2701674

closes odoo/odoo#81470

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 18:46:01 +00:00
Alexandre Kühn c4bd8e8bdc [IMP] mail: rename thread view model
Rename javascript model mail.thread_view to ThreadView
in order to distinguish javascript model from python model.

Task-2701674

closes odoo/odoo#81468

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 18:45:57 +00:00
Louis Wicket (wil) 55d0001647 [IMP] im_livechat, mail: rename discuss sidebar category model
Rename javascript model `mail.discuss_sidebar_category` to
`DiscussSidebarCategory` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81345

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 18:45:54 +00:00
Louis Wicket (wil) 41076d1f1c [IMP] mail, sms, snailmail: rename message model
Rename javascript model `mail.message` to `Message` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81366

Related: odoo/enterprise#22883
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 16:40:21 +00:00
Alexandre Kühn b2d2b78fbc [IMP] mail: rename user model
Rename javascript model mail.user to User in order to distinguish
javascript models from python models.

Task-2701674

closes odoo/odoo#81471

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 15:50:44 +00:00
Alexandre Kühn 3c5714ba9a [IMP] mail: rename test models (test hobby)
Follow-up of https://github.com/odoo/odoo/pull/80562
Omission of 'test.hobby' in the renaming of test models.

Task-2701674

closes odoo/odoo#81469

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 15:50:40 +00:00
Louis Wicket (wil) 2418883cd5 [IMP] mail: rename qunit test model
Rename javascript model `mail.qunit_test` to `QUnitTest` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81462

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 13:51:57 +00:00
Laurent Stukkens (LTU) c7d3dcb593 [FIX] hr_timesheet: correctly compute is_internal_project
This commit fixes the way is_internal_project is computed.

closes odoo/odoo#81463

X-original-commit: ea7d5451be3277b0a3ab779e05920ca5757a2a6e
Signed-off-by: Xavier <xbo@odoo.com>
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2021-12-15 12:56:55 +00:00
Victor Feyens 5d1afb360e [FIX] sale_stock: query count checks
Slightly raise some undeterministic query counters, because another
unknown query appears on nightly runbot (around 10PM)

closes odoo/odoo#81458

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-12-15 12:07:30 +00:00
dht-odoo 25ad0bb08c [FIX] hr_skills_slides: keep plaintext description on 'hr.resume.line'
In the `slide.channel`, description field was converted from Text type
to HTML(see commit[1]). This field is also used as a description of the
`hr.resume.line` model. However the later one expects plaintext value
but gets the HTML. This leads to displaying HTML tags to the users.

With this commit, we convert description of the `slide.channel` into
plaintext before adding it as a description of `hr.resume.line`.

commit[1] - https://github.com/odoo/odoo/commit/6d914c005183aa5ae69650e3002a5a85ca83b4a6

taskID-2711308

closes odoo/odoo#81457

X-original-commit: f8eaf7b69085a475a50c24bb732a95bf7ef0d7a9
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-15 12:07:26 +00:00
Louis Wicket (wil) d0252f7022 [IMP] mail: rename thread view topbar model
Rename javascript model `mail.thread_view_topbar` to `ThreadViewTopbar`
in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81442

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 12:07:19 +00:00
Louis Wicket (wil) 1e445e027e [IMP] mail: rename welcome view model
Rename javascript model `mail.welcome_view` to `WelcomeView` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81441

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 12:07:15 +00:00
Louis Wicket (wil) 682ed3f370 [IMP] website_livechat: rename visitor model
Rename javascript model `website_livechat.visitor` to `Visitor` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81440

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 12:07:11 +00:00
Louis Wicket (wil) 4749ce25a8 [IMP] hr_holidays, mail, sms, snailmail: rename thread viewer model
Rename javascript model `mail.thread_viewer` to `ThreadViewer` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81437

Related: odoo/enterprise#22911
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 12:07:03 +00:00
Louis Wicket (wil) 683fc344af [IMP] mail: rename composer model
Rename javascript model `mail.composer` to `Composer` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81327

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

Part of task-2701674.

closes odoo/odoo#81325

Related: odoo/enterprise#22863
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 12:06:53 +00:00
Louis Wicket (wil) 01709c6a74 [IMP] mail: rename canned response model
Rename javascript model `mail.canned_response` to `CannedResponse` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81318

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 12:06:46 +00:00
Louis Wicket (wil) d54f224f2b [IMP] mail, snailmail: rename notification model
Rename javascript model `mail.notification` to `Notification` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81418

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

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

closes odoo/odoo#81406

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:47 +00:00
Louis Wicket (wil) b024377742 [IMP] mail, sms, snailmail: rename notification group model
Rename javascript model `mail.notification_group` to `NotificationGroup`
in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81405

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:42 +00:00
Louis Wicket (wil) 512d19896c [IMP] mail: rename message reaction group model
Rename javascript model `mail.message_reaction_group` to
`MessageReactionGroup` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81383

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:39 +00:00
Louis Wicket (wil) 561c6736f0 [IMP] mail: rename message in reply to view model
Rename javascript model `mail.message_in_reply_to_view` to
`MessageInReplyToView` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81382

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:35 +00:00
Louis Wicket (wil) 443cbc625c [IMP] mail: rename message action list model
Rename javascript model `mail.message_action_list` to `MessageActionList` inorder to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81381

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:31 +00:00
Louis Wicket (wil) 25dbc6e58b [IMP] mail: rename mail template model
Rename javascript model `mail.mail_template` to `MailTemplate` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81372

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:28 +00:00
Louis Wicket (wil) 35c932e406 [IMP] mail: rename locale model
Rename javascript model `mail.locale` to `Locale` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81371

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 11:12:24 +00:00
Louis Wicket (wil) d535acf459 [IMP] mail: rename follower subtype model
Rename javascript model `mail.follower_subtype` to `FollowerSubtype` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81370

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:20 +00:00
Louis Wicket (wil) 3ec2b9e5b5 [IMP] mail: rename follower model
Rename javascript model `mail.follower` to `Follower` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81369

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:16 +00:00
Louis Wicket (wil) 4e2ab22270 [IMP] im_livechat, mail: rename discuss sidebar category item model
Rename javascript model `mail.discuss_sidebar_category_item` to
`DiscussSidebarCategoryItem` in order to distinguish javascript models
from python models.

Part of task-2701674.

closes odoo/odoo#81367

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:13 +00:00
Louis Wicket (wil) 421c671fbf [IMP] im_livechat, mail: rename discuss model
Rename javascript model `mail.discuss` to `Discuss` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81335

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 11:12:06 +00:00
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