Commit Graph
155940 Commits
Author SHA1 Message Date
Cindy Nguyen 0a536cbc29 [I18N] stock: Add missing translation part
- The `Returns` word should be translated but it has not been
initialized via xml
data so i added.

closes odoo/odoo#98966

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-11-03 14:11:29 +01:00
Dhaval Baraiya 2f8cb75f0d [FIX] web_editor: specify a custom color in the text input of the color picker.
Before this commit:

It's impossible to specify a custom color in the text input of the color picker
for the selected text.

After this commit:

It's possible to specify a custom color in the text input of the color picker
for the selected text.

Task-2896109

closes odoo/odoo#104560

X-original-commit: f1f3fcef6cc471fc01da574da26712e643315da6
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-11-03 13:10:46 +01:00
Aurélien (avd) a8ab288276 [FIX] mrp: add new computed field to speedup workcenter form view
When the mrp_routing_workcenter table is big, the domain
[routing_line_ids, =, []] in the workcenter FormView can
lead to significant slowness. This comes from
the ORM having to retrieve the mrp_routing_workcenter
records in the read.

To avoid such issue, adds a new boolean computed field
to check if a given workcenter has Operations.

opw-2954461

closes odoo/odoo#99313

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-11-03 12:10:10 +01:00
Pierre Rousseau 122e5142da [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/7112f4d7 [IMP] autofill: draw autofill behind selection
https://github.com/odoo/o-spreadsheet/commit/363a5898 [IMP] demo: add production use warning
https://github.com/odoo/o-spreadsheet/commit/46f3adb5 [IMP] readme: add contribution guidelines
https://github.com/odoo/o-spreadsheet/commit/ddce160a [REF] model: remove useless else to dispatch
https://github.com/odoo/o-spreadsheet/commit/7795cee6 [FIX] linkDisplay: Hide edit/remove on readonly mode
https://github.com/odoo/o-spreadsheet/commit/5d574cf4 [IMP] xlsx: import and export data filters
https://github.com/odoo/o-spreadsheet/commit/580880af [FIX] topbar: empty space between dropdown and button
https://github.com/odoo/o-spreadsheet/commit/bbbd3739 [FIX] components: rename non-english import alias
https://github.com/odoo/o-spreadsheet/commit/852f7502 [IMP] spreadsheet: remove exposeSpreadsheet props

closes odoo/odoo#104790

Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-11-03 09:37:08 +01:00
william 96b5b6b515 [FIX] hr_expense: expenses should be tax included
During a refactoring [1], the behavior of having the taxes included in
the price for all expenses was broken/removed.
All the fields related to taxes are computed should be computed with the
correct context key when computing entries related to expenses. This is
preferred to adding the context key only when creating because it will
then keep the behavior even when editing the document.

task-3043252

[1]: https://github.com/odoo/odoo/commit/d8d47f9ff8554f4b39487fd2f13c153c7d6f958d

closes odoo/odoo#104746

X-original-commit: 6e944ac5fe108d5f2bc2d3f41ab547efd88a5ede
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-11-03 09:37:03 +01:00
Amélie Dieudonné 34522d9ea5 [FIX] event: fix event type display
With new views, better use a standard label / content two-items display
instead of using a div + colspan + CSS class. Issue introduced by the
new from grid layout.

Task-2996467

closes odoo/odoo#104770

X-original-commit: ac14a6b5aa05d412d3b68bd731738cc7e94e3cf8
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-03 08:42:52 +01:00
niyasraphy 678d7d6339 [FIX] website_slides_forum: fix wrong required attribute for privacy field
Description of the issue/feature this PR addresses

Currently due to the wrong condition the invisible field in the form is getting
the required field attribute and thus user is not able to do any changes in the
form view.

Steps to reproduce
  * Create a forum, from Elearning -> Forum -> Forums
  * Now go to course menu: elearning -> Courses -> Courses
  * Open any existing record or create new one
  * In the options tab of the courses, there is field Forum,
  * Set the newly created forum here(from step 1)
  * Go back to forum menu and open the forum we created before
  * Try editing in the form and try to save the record, it will show required
    field warning for invisible field

This is due to wrong required attribute set for the field. The issue exists
from version 14 but the end users is not affected as required wont work with
radio widget in 14 and 15.

Closes odoo/odoo#104580

X-original-commit: a436d5745bd98336af43546a4ba357aa2a41a29d
Part-of: odoo/odoo#104770
2022-11-03 08:42:52 +01:00
Amélie Dieudonné e914fe8532 [FIX] event: correctly align event form view checkboxes
With new views, better use a standard label / content two-items display
instead of using a div + colspan + CSS class. Issue introduced by the
new from grid layout.

Task-2996467

X-original-commit: 0b8ead6ade89371b31c0213dd7a3909ff3b56be7
Part-of: odoo/odoo#104770
2022-11-03 08:42:52 +01:00
niyasraphy eef004e254 [FIX] website_slides: fix content form view
In this commit we fix the display of fields for additional resource, questions
and course tags so that they take all available space.

Closes odoo/odoo#103868

X-original-commit: 08af6aaed4749ca967abdc8cd52360b8ae7592fe
Part-of: odoo/odoo#104770
2022-11-03 08:42:52 +01:00
niyasraphy 124e545820 [FIX] website_slides: fix settings display
They can take the whole available space.

Closes odoo/odoo#103863

X-original-commit: f1763af69f81050cb3b4867d11665a2403ee0ae3
Part-of: odoo/odoo#104770
2022-11-03 08:42:51 +01:00
niyasraphy 9477c471be [FIX] sms: fix sms template body display
It can take the available space.

Closes odoo/odoo#104463

X-original-commit: 210d01177cdc052cf9cdfe60a422c64b868c17b9
Part-of: odoo/odoo#104770
2022-11-03 08:42:51 +01:00
Thibault Delavallée 1f59ed030e [FIX] mail: fix mail template form view settings page display
Due to strange update, some fields are duplicated. Not sure why but having
fields displayed several times is not a good idea. Better cleanup the view.
Oversight of odoo/odoo@7c4da16b59

X-original-commit: 89a3583bbe3355c10b2d3b2df87b167460f6b5c4
Part-of: odoo/odoo#104770
2022-11-03 08:42:51 +01:00
Thibault Delavallée aa323c3e36 [FIX] base, snailmail: Swaziland is now Eswatini
Swaziland was renamed to Eswatini in 2018. Time to update naming in Odoo.
We choose to make it in 16 as

  * it is the newest stable, not much people are using it in production, aka
    most people will have the updated name;
  * there is no need to rename it for all production databases previously
    as if used, it is easy to update its naming from Odoo directly;

Cheers !

X-original-commit: 4f97baa5b4d01b4510f0adc7064ec2846612a481
Part-of: odoo/odoo#104770
2022-11-03 08:42:51 +01:00
niyasraphy 8aa43bd7e5 [FIX] mass_mailing: do not crash when importing a void contact list
Mass mailing has a wizard to import contacts from a text input. It currently
crashes when trying to import a void field, while it should not.

We fix that by two means
  * make field required in view (as model cannot be modified);
  * while it is not updated, simply consider a void input should not crash and
    is considered as an input without valid input found;

Task-3053031

closes odoo/odoo#104769

X-original-commit: aa183fa29d609d2b608fa451ee48a35e3d1549b2
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-03 08:42:44 +01:00
Ahmed Khalaf (ahkh) d89359c383 [FIX] web: parent access in button context broken
Before this commit, accessing parent in a button context broke the button
throwing `EvaluationError: Name 'parent' is not defined`.

to fix,the proxy object `params.evalContext` was passed to `evaluateExpr`
similar to examples seen in `list_renderer.js`

closes odoo/odoo#102293

X-original-commit: 90afb529969ce7de83a20060f5c35a64ce4cf971
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Ahmed Khalaf  <ahkh@odoo.com>
2022-11-03 08:42:41 +01:00
william e9b807366c [FIX] account: import invoice with tax
The import feature is using a `=` as the operator.

To reproduce:
Import a file like this
```
partner_id,journal_id,currency_id,date,invoice_line_ids/account,invoice_line_ids/name,invoice_line_ids/quantity,invoice_line_ids/price_unit,invoice_line_ids/taxes
Publiroute,Customer invoices,EUR,18/06/2021,700000,Prof services 05/2021,1,100,21%
```

In this case, the ORM would look for a tax with the name equal to `2%1`
instead of `21%`.

This of course valid for any other way of using the equality operator in
the domain.

closes odoo/odoo#104764

X-original-commit: af46d8a567215a07b18d00f7d513681d385a8e7b
Signed-off-by: Julien Castiaux <juc@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-11-02 22:20:40 +01:00
william eaa2e3b452 [FIX] base: import related field with name containing %
To reproduce, import and invoice containing one line with a tax of
i.e. `21%` on it.

Because the message is recursively expanded to follow the relation of
the field, the interpolation symbol needs to be escaped every time.
Otherwise the message will contain something like
> No matching record found for name '21%' in field '%(field)s/Taxes'

Where `'21%'` will try to be mistakenly interpolated.

X-original-commit: ceb3ce3030b47baa2aca128d364a823becb173ab
Part-of: odoo/odoo#104764
2022-11-02 22:20:40 +01:00
Alexandre Kühn 410ab5ae96 [IMP] mail, *: define template in models
*: snailmail, website_livechat

This commit adds definition of component template
in the models. This allows not defining JS of component
for most view models.

Task-3053061

closes odoo/odoo#104641

Related: odoo/enterprise#33491
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-11-02 21:16:56 +01:00
Alexandre Kühn 701351ca94 [FIX] mail: missing separator at end of emoji category bar
Before this commit, there was not visual separator between
end of emoji category bar and the rest of emoji picker header.

Task-3045141

closes odoo/odoo#104767

X-original-commit: d4b654c9322fd7c9f5a3bb94fa41d20fc5d8c998
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-02 20:12:52 +01:00
Sarika Shekhada e828c72b83 [IMP] project_timesheet_holidays: improve demo data timesheet
In this commit before, timesheets are not generated for approved time off. So we
have entered the timesheet regarding the approved time off.

task-2960247

closes odoo/odoo#103071

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2022-11-02 17:38:57 +01:00
amdi-odoo 112283081b [FIX] website_slides: fix typo
Purpose
=======
Fix typo in the mail template data used for
a completed course.

Specifications
==============
Adding a 's' to 'Congratulation' on the template
subject.

Task-3026717

closes odoo/odoo#104737

X-original-commit: ea535166692ed95b3878717f3e003e23ce8c9fc5
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-02 15:34:50 +01:00
Lucas Lefèvre 080160de54 [FIX] web: reject race promise when first promise rejects
The Race concurrency promise never settles if the first settled promise
rejects and therefore you can't catch the rejected promise.

closes odoo/odoo#104733

X-original-commit: 24cc8cdb440a5af944d82a25d98b0239e72e2625
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-11-02 15:34:41 +01:00
Rémy Voet (ryv) f66fa9433f [MOV] core,base: move logic of O2MIdMapper
O2MIdMapper Class inherit of 'base' Model to change the behavior of
`create`.
Because it is in base and the `_import_current_module` is set in
models.py, move it at the end of create in models.py.

closes odoo/odoo#99550

Related: odoo/enterprise#33063
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
2022-11-02 15:34:30 +01:00
Rémy Voet (ryv) 3353dfdb29 [REM] core,base,*: deprecated some methods to be remove correctly later
- Deprecated `norecompute` (on Environment class) because it is useless
and do nothing.
- Deprecated `cache_restart` (`res.company`) because `clear_caches` do
the stuff.
- Deprecated `write_company_and_print_report` (`res.company`) because
since https://github.com/odoo/odoo/pull/33863/, it is unused
- Deprecated `open_company_edit_report` (`res.company`) because since
25f7040998, it is unused.

Part-of: odoo/odoo#99550
2022-11-02 15:34:30 +01:00
niyasraphy 5a8df8e304 [FIX] sms: remove required attribute from view
body field is required field in the model level and there is condition required attribute in the view level, this allows users to click send button with empty body.

closes odoo/odoo#104723

X-original-commit: b6cb09e8d4192b40623b72d8a9061061ff618476
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-02 14:34:45 +01:00
niyasraphy 21cfd78028 [FIX] purchase_requisition: name field alignment in the form
closes odoo/odoo#104710

X-original-commit: a90bfd58f9cdb41d5a20ca98d7e233583a679192
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-11-02 13:36:14 +01:00
aliya 65b4e0b332 [FIX] account: fix account journal form
Bank statements import-specific fields are now displayed above the form because of the invisible bank_statements_source. Adding a group name on the form allows better inheriting.

task-3046427

closes odoo/odoo#104709

X-original-commit: 684567c4dc56c2379ba19cebec96e582287b37d1
Related: odoo/enterprise#33492
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2022-11-02 13:36:08 +01:00
clesgow 707171157b [FIX] web: apply correctly the css to the upgrade_boolean fields
As in odoo#97378, the css isn't correctly applied to the extended
`upgrade_boolean` field.
Since its class is automatically set to `o_field_upgrade_boolean`, it
doesn't take the modifications made to `o_field_boolean`.
So we add `o_field_boolean` to its additionnalClasses.

Part of task-2985735

closes odoo/odoo#104708

X-original-commit: 06b99fe293bf6d3c9cd902501d9e221dfd2a70e7
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-11-02 13:36:05 +01:00
damr 5db02c9924 [FIX] project: fix task navigation in portal project
This commit purpose is to fix the navigation in the project portal. When
a project is shared, the user can access all tasks of the project
from the project portal page, but when he select one task, he can not navigate from one task to another with
the previous and next button on the right of the header.

the commit :

 * fix the previous and next button of the task page. When a task is
reached by pressing one of these buttons, the navigation is not
interrupted and the user can navigate through all the tasks of the
project without having to go back to the project page

task-3032785

closes odoo/odoo#104700

X-original-commit: 0b32d83baf0563360b858a470afc5c71fb996f84
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2022-11-02 13:36:03 +01:00
Hoang Tran 5c907fe1e3 [IMP] core: make sure addon dir exist before loading
Loading an non-existing addon directory affect all other modules to be
not loaded. This commit makes sure the path exist before proceed to
explore all the modules under that directory.

closes odoo/odoo#104704

X-original-commit: d77d9f8a9ff945f5f61924eda835c877eb4f281c
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-11-02 12:37:21 +01:00
ArnaudVerlaine fe24bab8d2 [FIX] l10n_au: fixes the default accounts
- Adds a new default income account for the exchange rate gain
- Changes the default stock output account
- Use anglo-saxon accounting by default
Task-2990419
Task-2988876

closes odoo/odoo#104699

X-original-commit: fc5fa681638b2af63a64fcd83cdf50df92bcd111
Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-11-02 12:37:16 +01:00
Joseph Caburnay 065943aff3 [FIX] web: group's count as the pager limit of grouped list
**Issue:**

When a group contains more than 10k items, its pager only shows
10k as limit, even if the group already knows it's total count.

**Solution:**

We now allow creation of `DynamicRecordList` with 'countLimit' as
one of the params. It will be used in the instantiation of the
class but will default to WEB_SEARCH_READ_COUNT_LIMIT if not
provided. This way, pager's limit will be properly set to the
group's count.

closes odoo/odoo#104698

X-original-commit: 4751f85ac9d430528106de05bcdc484ae0c7079b
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2022-11-02 12:37:13 +01:00
Alexandre Kühn db34bbacda [REV] mail: revert "[FIX] mail: remove suggested recipient"
Revert this fix, as it was not working as expected, and even prevent to create a partner.

Revert of following PR: #103596

closes odoo/odoo#104695

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-11-02 12:37:10 +01:00
Odoo's Mergebot a7afc49e36 [FW][FIX] web, project, crm: allow hiding the properties option "View In Kanban"
Purpose
=======
Some models might use the properties field in the kanban view, some other no. For that purpose, we want to add an option in order to hide the "View In Kanban" checkbox in the properties definition.

Task-3012780

closes odoo/odoo#104252

Forward-port-of: odoo/odoo#102818
Related: odoo/enterprise#33292
Signed-off-by: David Beguin (dbe) <dbe@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-02 12:37:05 +01:00
std-odoo 7df64e4eb1 [FIX] web: fix the alignment of the checkbox in the definition
Task-3012780

X-original-commit: 5451eb187007a91744858d5ff95cff4053d365fe
Part-of: odoo/odoo#104252
2022-11-02 12:37:04 +01:00
std-odoo f207a1a0f2 [FIX] crm: hide the "View In Kanban" properties option
Purpose
=======
We don't use the properties field in the leads kanban view.
Because of this, we want to hide the option "View In Kanban" in
the properties definition.

Task-3012780

X-original-commit: 8170e2aede666a4ab2b2395cc3c2d54a87e11cc1
Part-of: odoo/odoo#104252
2022-11-02 12:37:04 +01:00
std-odoo afe9497341 [FIX] project: hide the "View In Kanban" properties option
Purpose
=======
We don't use the properties field in the tasks kanban view.
Because of this, we want to hide the option "View In Kanban" in
the properties definition.

Task-3012780

X-original-commit: 63fa07d38e51b261780cadb674ab035f8b15f58e
Part-of: odoo/odoo#104252
2022-11-02 12:37:04 +01:00
std-odoo 6c1c5e1346 [FIX] web: allow hiding the properties option "View In Kanban"
Purpose
=======
Some models might use the properties field in the kanban view, some
other no. For that purpose, we want to add an option in order to
hide the "View In Kanban" checkbox in the properties definition.

Task-3012780

X-original-commit: c6fcaa53683c470158e4661aec2575bd06ee3c1e
Part-of: odoo/odoo#104252
2022-11-02 12:37:04 +01:00
Chong Wang (cwg) ca70d74766 [FIX] web: fix translation dialog
In the PR #97692, writing empty str `''` to a model term field no longer removes
all translations. Instead, only the translation for the current language is set
to empty str `''`.

Before this fix, if a web user sets a translation to emtpy str, and reopens
the translation dialog, the translation will be reverted to the 'en_US' value
which is wrong.

closes odoo/odoo#104181

X-original-commit: f97ff6308d472121e65a34d30b4dc5ab35065220
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Wang Chong (cwg) <cwg@odoo.com>
2022-11-02 12:36:59 +01:00
Thibault Delavallée 892ff87c51 [FIX] l10n_ae_pos: avoid string-based xpath
Being text-based is a bad idea. Better have clear nodes to fetch in original
XML.

closes odoo/odoo#104686

Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-11-02 11:38:38 +01:00
niyasraphy 00f4161182 [FW][FIX] base: server action sample code line-breaks
In the server action form, in state "code" ("execute python code") a linebreak is missing between the two "lines" of python, resulting in nonsensical code.

closes odoo/odoo#104682

Forward-port-of: odoo/odoo#104665
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-11-02 11:38:35 +01:00
rhe-odoo d7ac037de5 [FIX] pos_restaurant: don't clean orders with paiements
When you have orders that have paiement and not lines anymore they can
be removed from the local storage if the screen is refreshed.

That may lead to loss of paiements.

closes odoo/odoo#104363

X-original-commit: 49381e5f821368c0c4d6e20207ce7d51abbe8be0
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-11-02 11:38:33 +01:00
Xavier Luyckx (xlu) b477facbb6 [FIX] web: daterangepicker, fix months arrows color
Before this commit, the arrows in the daterange picker to switch months
wasn't correctly displayed in light mode.
This visual bug was introduced due to styling changes made for
the dark-mode.

This commit fixes this.

closes odoo/odoo#104151

X-original-commit: caa5604fbf99f6cba763109e7c26fed6e2042642
Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-11-02 11:38:30 +01:00
clesgow b940375cab [FIX] web: relational_utils save & new
As of now, if a user clicks on the "Save & New" button while the form is
not valid, it will disable all buttons without any options to make them
enabled again. The only solution then is to close the form and re-open
it.

Steps to reproduce:
Inventory -> Configuration -> Route -> Select any route -> Add a line to
the rules.
As soon as you click on the "Save & New" button and the form isn't
valid, you can't use any buttons anymore.

Part of task-2985735

closes odoo/odoo#102315

X-original-commit: 6d63d1035b28f2004774a99a7be84b92a1cb1883
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-11-02 11:38:27 +01:00
PoMa d57c55c173 [IMP] account: UX improvements
Remove quick create from the places that is either not needed or not possible
Task #2850996

closes odoo/odoo#104640

X-original-commit: ae0a11a8ce3c35542ba5ae8f6366018b88ec40d5
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Pouya Malekinejad (poma) <poma@odoo.com>
2022-11-02 10:40:24 +01:00
Rémy Voet (ryv)andniyasraphy 998de25f51 [IMP] base: improve model description
closes odoo/odoo#104555

X-original-commit: 67323e4f0af942e60bc6332282315c811c7d7e24
Signed-off-by: Rémy Voet <ryv@odoo.com>
Co-authored-by: niyasraphy <niyasraphyk@gmail.com>
2022-11-02 10:40:19 +01:00
Nasreddin Boulif (bon) 195bc157ab [FIX] account, [l10n_ar_]website_sale: always display b2b fields
Steps to reproduce:

  - Install `l10n_ar_website_sale` module

  - Go to shop (Argentinian website) and add a product to cart
  - Open cart and click on checkout
  - Click on Customize and disable `Show b2b fields` feature

Issue:

  Fields are no more displayed.

Cause:

  Since the b2b fields template (`address_b2b`) is customizable (meaning
  it can be enabled/disabled), it is possible for all countries to
  display/hide the b2b fields, but for some countries (for example
  Argentina) it should not; the b2b fields should always be displayed.

Solution:

  Add a method (`_display_partner_b2b_fields`) on website model to know
  if b2b fields should be displayed: return True if `address_b2b` view
  is active on current website or if the company (based on the country)
  must display them.

  Move content (b2b fields; vat and company name fields) of view
  `address_b2b` in `address` main view and let the `address_b2b` only be
  used as switch to display or hide the b2b fields.

  Add a condition in `address` view to display b2b fields only if the
  method `_display_partner_b2b_fields` returns `True`

opw-2941199

closes odoo/odoo#104505

X-original-commit: 1b5c85722db00a44ed8c6cb0c2bdba8905dc5292
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
2022-11-02 10:40:16 +01:00
Yolann Sabaux 41d8bb8a28 [FIX] l10n_es_edi_sii: handling error 1117 - NIF not registered
Steps to reproduce:
There is no possibility to reproduce it in test mode
But the flow would be:

- create a company with a NIF not registered
- Set up the EDI invoice
- Create an invoice

Issue:
When the NIF is not registered, is is possible to use it. It will only create an error `approbado con errores` which is apparently fine

Solution:
Whenever the server sent us an '1117' error code, we call again the post_invoice with a new context so we are able to send the request with the right information; that is, the correct ID Type whenever a NIF is not registered.
Indeed, whenever the error code is related to the NIF, is is possible to send again a request without having the invoice defined as "duplicated". It will only go through the process "AceptadoConErrores".

opw-2952108

closes odoo/odoo#104375

X-original-commit: 415d095cd418fd38d5749200724b6ce775ffa7f8
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
2022-11-02 10:40:14 +01:00
mafo-odoo 13378c4659 [IMP] calendar: add default data and signature to event mail template
Issue:
When visualizing the calendar event update mail template there is few
or no default data. Unlike the other calendar mail template there is
no signature.

opw-2968890

closes odoo/odoo#99386

Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-11-02 10:40:08 +01:00
Pierre-Yves Dufays 7c6a24d84f [FIX] mail: update message count when messages are deleted
When a record was deleted, the related messages were removed in discuss
front-end but the message counter was not updated. This solves this issue.

Task-2960281

closes odoo/odoo#99371

Related: odoo/upgrade#3841
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-11-02 10:40:05 +01:00