When you need to add certain details to the data in order to make a
maintenance request. I can't do it using the old code.
As a result, I've included a hook method to be more flexible with
customers.
closesodoo/odoo#81052
X-original-commit: a71a8fbc43cf0deee669869792b2ff2ac9ab9a8b
Signed-off-by: Arnold Moyaux <arm@odoo.com>
- Set up a POP account
- On the POP account, receive emails addressed to various recipients,
e.g. `my_alias_1` and `my_alias_2`. Receive more than 50 emails to
`my_alias_2`.
- In Odoo, create a mail alias for `my_alias_1`
- Run the fetchmail cron
The cron runs endlessly until it is killed. In the logs, inconsistent
messages are shown:
```
...
Fetched 3507 email(s) on pop server xxx; -16493 succeeded, 20000 failed.
Fetched 3507 email(s) on pop server xxx; -16543 succeeded, 20050 failed.
...
```
First the message count is incorrect in the log. We fetched at most 50
emails, not the total number of emails. Then, the endless loop is due
to the fact that
- we do not delete failed messages (= messages addressed to
`my_alias_2`)
- we always fetch messages from `num=1`
If the first 50 messages fail, we fetch them endlessly until the cron is
killed.
To avoid this, we compare the number of failed messages with the number
of messages retrieved. If all messages retrieved have failed, we stop
the loop.
After the fix, consistent messages are show in the logs and the process
stops after the first complete failure:
```
start checking for new emails on pop server xxx
Fetched 50 email(s) on pop server xxx; 0 succeeded, 50 failed.
```
Note that it doesn't solve the core of the issue; we just fail faster. A
proper way would probably be to use an offset so we don't always start
at `num=1`. On the other hand, it is just a matter of time before the
cron times out: if the mailbox is full of messages which canot be
treated, we will just spend more and more time trying to find the ones
which can be treated.
closesodoo/odoo#81493
X-original-commit: 72cd8d0769097b21bbf94a34496888617058cb1b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Rename javascript model mail.volume_setting to VolumeSetting
in order to distinguish javascript model from python model.
Task-2701674
closesodoo/odoo#81479
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Steps to reproduce:
- Install and launch sales
- In settings: activate price lists and discount; price list based on advanced rules
- Create a new price list; based on percentage (54%)*; applicable on all products; show discount
- Make sure the Public Price List has show discount activated
- Create a new quotation
- Select the Test pricelist
- Select a product (price 0.03 eur/$/other)*
- Change the price list to Public price list
- update the prices
- change the price list to Test price list
- update the prices
-> The Discount shown is not the one defined in the price list (66.67%)*
*(values for my example)
Solution:
Use the real price and not the a posteriori-rounded price for the computation of the discount in the `update_prices` method.
opw-2677884
closesodoo/odoo#81395
X-original-commit: 986dbc20952caae9d5a1b4b7ee34cfb994dea077
Signed-off-by: yosa-odoo <yosa@odoo.com>
In this commit, we add the 'rating' field to the list view of 'project.task'.
Also, make the field optional and hidden by default.
rating_text field will be used to search tasks and tickets by rating text.
closes#78973
task-2667754
Related: odoo/upgrade#3031
Related: odoo/enterprise#21880
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
-if an analytic tags are inserted on the project, it will be added to the timesheet /invoice
analytic tag.
-In this commit, analytic tags field is added on project in order to gain in
granularity.Those tags are passed to the invoice lines generated from the
project's SO lines.
-set the analytic account and analytic tag of the project by default on its tasks.
-added string 'Analytic Tags' analytic_tag_ids field on task.
closes#78973
task-2667754
The aim of this commit is to make the cogs generation multi-company
safe.
2 bugs are fixed in this forwardport commit:
- The product.valuation on the line wasn't evaluated in a company safe
way.
- cogs method weren't company safe either
Before this commit:
- When posting an invoice from company B with both company A and B
selected and A being selected as "main", the cost from company A could
be selected instead of cost from company A to create the anglosaxon
lines.
- If company B's product isn't in real time valuation, cogs aren't even
created.
After this commit:
Whatever the selected companies are, the cost selected will always be from
the company that created the invoice.
closes odoo/odoo#81492
Task: #2686104 and #2713607
X-original-commit: e34caf0ec33a3001bb6343e02d34a6edb5a9f609
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Brice Bartoletti <bib@odoo.com>
Currently Bank Suspense Account has "Current Liabilities" type, while it should be "Current Assets"
Task ID: 2702804
closesodoo/odoo#81491
X-original-commit: c6d2a50499744a9ddbb09a9974d6ab52116ef542
Signed-off-by: Laurent Smet <las@odoo.com>
Go through all the x2many javascript models fields and make their name
plural when needed.
closesodoo/odoo#81467
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model mail.user_setting to UserSetting
in order to distinguish javascript model from python model.
Task-2701674
closesodoo/odoo#81478
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model mail.follower_subtype_list to FollowerSubtypeList
in order to distinguish javascript model from python model.
Task-2701674
closesodoo/odoo#81470
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model mail.thread_view to ThreadView
in order to distinguish javascript model from python model.
Task-2701674
closesodoo/odoo#81468
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model `mail.discuss_sidebar_category` to
`DiscussSidebarCategory` in order to distinguish javascript models from
python models.
Part of task-2701674.
closesodoo/odoo#81345
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.message` to `Message` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81366
Related: odoo/enterprise#22883
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model mail.user to User in order to distinguish
javascript models from python models.
Task-2701674
closesodoo/odoo#81471
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model `mail.qunit_test` to `QUnitTest` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81462
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit fixes the way is_internal_project is computed.
closesodoo/odoo#81463
X-original-commit: ea7d5451be3277b0a3ab779e05920ca5757a2a6e
Signed-off-by: Xavier <xbo@odoo.com>
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Slightly raise some undeterministic query counters, because another
unknown query appears on nightly runbot (around 10PM)
closesodoo/odoo#81458
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
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
closesodoo/odoo#81457
X-original-commit: f8eaf7b69085a475a50c24bb732a95bf7ef0d7a9
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Rename javascript model `mail.thread_view_topbar` to `ThreadViewTopbar`
in order to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81442
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.welcome_view` to `WelcomeView` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81441
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `website_livechat.visitor` to `Visitor` in order
to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81440
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.thread_viewer` to `ThreadViewer` in order
to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81437
Related: odoo/enterprise#22911
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.composer` to `Composer` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81327
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.chatter` to `Chatter` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81325
Related: odoo/enterprise#22863
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model `mail.canned_response` to `CannedResponse` in
order to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81318
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.notification` to `Notification` in order
to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81418
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
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
closesodoo/odoo#81406
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.notification_group` to `NotificationGroup`
in order to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81405
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.message_reaction_group` to
`MessageReactionGroup` in order to distinguish javascript models from
python models.
Part of task-2701674.
closesodoo/odoo#81383
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.message_in_reply_to_view` to
`MessageInReplyToView` in order to distinguish javascript models from
python models.
Part of task-2701674.
closesodoo/odoo#81382
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.message_action_list` to `MessageActionList` inorder to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81381
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.mail_template` to `MailTemplate` in order
to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81372
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.locale` to `Locale` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81371
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model `mail.follower_subtype` to `FollowerSubtype` in
order to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81370
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.follower` to `Follower` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81369
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.discuss_sidebar_category_item` to
`DiscussSidebarCategoryItem` in order to distinguish javascript models
from python models.
Part of task-2701674.
closesodoo/odoo#81367
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.discuss` to `Discuss` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81335
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model `mail.dialog` to `Dialog` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81333
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model `mail.attachment_list` to `AttachmentList` in order
to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81316
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Rename javascript model 'mail.attachment_box_view' to AttachmentBoxView
in order to distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#80602
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Rename javascript model 'hr.employee' to 'Employee' in order to
distinguish javascript model from python model.
Part of task-2701674.
closesodoo/odoo#80561
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
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
closesodoo/odoo#81396
X-original-commit: 17a1c960cc3cce1850a6009ebf9641174e0304fb
Related: odoo/enterprise#22891
Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
Rename javascript model `mail.country` to `Country` in order to
distinguish javascript models from python models.
Part of task-2701674.
closesodoo/odoo#81331
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
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
closesodoo/odoo#78550
Signed-off-by: Laurent Smet <las@odoo.com>
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
closesodoo/odoo#81221
X-original-commit: 58a3954d606d48b2a4cf678eb0bf13d6e28b1aef
Signed-off-by: Damhaut Florian (flda) <flda@odoo.com>
Rename javascript model `mail.thread_partner_seen_info` to
`ThreadPartnerSeenInfo` in order to distinguish javascript models from
python models.
Part of task-2701674.
closesodoo/odoo#81435
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>