Commit Graph
155021 Commits
Author SHA1 Message Date
Kevin Baptiste 63f8a7cc57 [FIX] hr(_timesheet): fix department kanban dropdown
The "Reporting" title was not properly displayed (stuck to the left of
the dropdown) and the Timesheets entry was not displayed as a proper
dropdown item.

task-3001445

closes odoo/odoo#102351

X-original-commit: 250809a201386cfb1d2ba52d3911bd765a2c910a
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 17:00:07 +02:00
sofiagvaladze 6e5dc0b570 [FIX] hr_expense: introduce analytic changes to hr.expense.split
The following PR - odoo/odoo#98914 introduced changes in
accounting analytic.
The changes were applied to 'hr.expense' but they were not applied to 'hr.expense.split'.
Which lead to traceback.

task - 2997510

closes odoo/odoo#101997

X-original-commit: 4f5c531b854271284238b5a13f95d66eb2e12f93
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 16:59:53 +02:00
Ricardo Gomes Rodrigues (rigr) cc895ce3ea [FIX] account: wrong account suggestion if no invoice exists for set partner
Steps:
- New invoice
- Select a partner that has no invoices yet
- Create a new line
- The default account is quite random

Fix:
Only use the most frequent account for the set partner if there are existing invoices for that partner.
Otherwise we fallback on the default account of the invoice's journal (instead of the suspense account).

closes odoo/odoo#102350

Task-id: 2972993
X-original-commit: 471924c0d0e2647a25aa38507224f8321b598211
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-10-06 15:58:05 +02:00
Didier (did) 96dc4fb357 [IMP] mail: convert LegacyComponent of ActivityMarkDonePopoverContent
part of task-2783065

closes odoo/odoo#102349

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 15:58:02 +02:00
Xavier ALT 55fb68845d [FIX] website: avoid 'NoneType' has no attribute 'context' at install
When loading a registry from route with auth="none" and where module
'website' is set as 'to install', request.env will be None and install
will crash as follows:

```
Traceback (most recent call last):
  ...
  File "/home/odoo/src/odoo/saas-15.3/odoo/modules/registry.py", line 88, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/odoo/src/odoo/saas-15.3/odoo/modules/loading.py", line 482, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/home/odoo/src/odoo/saas-15.3/odoo/modules/loading.py", line 371, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/home/odoo/src/odoo/saas-15.3/odoo/modules/loading.py", line 303, in load_module_graph
    module.write({'state': 'installed', 'latest_version': ver})
  File "/home/odoo/src/odoo/saas-15.3/addons/website/models/ir_module_module.py", line 78, in write
    if request and request.context.get('apply_new_theme'):
  File "/usr/lib/python3/dist-packages/werkzeug/local.py", line 348, in __getattr__
    return getattr(self._get_current_object(), name)
  File "/home/odoo/src/odoo/saas-15.3/odoo/http.py", line 1029, in context
    return self.env.context
AttributeError: 'NoneType' object has no attribute 'context'
```

closes odoo/odoo#102343

X-original-commit: fcf6e462e116d13533014e31d4191763354811cf
Signed-off-by: Xavier Alt (xal) <xal@odoo.com>
2022-10-06 15:58:00 +02:00
Didier (did) 85bd7c5069 [IMP] mail: convert activity LegacyComponent to Component
part of task-2783065

closes odoo/odoo#102336

Related: odoo/enterprise#32360
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-10-06 15:57:55 +02:00
Florian Charlier c37c16c95d [FIX] mail: fix readonly body on new template
Purpose: restore edit access to body when creating a new template.

Likely introduced by 2bb148f9.

Task-3002242

closes odoo/odoo#102326

X-original-commit: 506e6cc8383236432947045afdcea7bc3555bc16
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-06 15:57:52 +02:00
Radhika Shyara 9b07a00fb4 [FIX] project: fix the delete icon on chatter attachment
Before this commit, on project sharing chatter attachment delete
icon is displayed on the middle of attachment thumbnail instead it
should be displayed on right top corner of thumbnail when we hover
on attachment.

So in  this commit, added a class for project sharing view so delete
icon should be displayed properly

task-2904015

closes odoo/odoo#102298

X-original-commit: c9609c62efe163901f8c2b1a30355b60dd34ad51
Signed-off-by: Xavier <xbo@odoo.com>
2022-10-06 15:57:44 +02:00
Ricardo Gomes Rodrigues (rigr) 35a2fff2dd [FIX] account: allow quick invoice encoding even if the partner is not set
Currently, when using the quick invoice encoding feature, we do not create the invoice line if no partner is set.

This commit fixes by falling back on the default values of the account and the tax.

closes odoo/odoo#102297

X-original-commit: a387b3b07b806eb82f359767e01be8555c79ee9f
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-10-06 14:57:06 +02:00
Victor Feyens f52c731965 [FIX] *_product_matrix: correct display of extra prices
keep the +/- before the price, to correctly highlight the fact that it's
an additional price.

closes odoo/odoo#102245

X-original-commit: 32a2379b34b8646b681d3e42412bbc1ce2a045f1
Related: odoo/enterprise#32319
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-06 14:57:00 +02:00
Victor Feyens 26382f9e83 [FIX] sale(_*): deprecated t-esc directive
t-esc directive has been deprecated.
This commit replaces remaining occurrences in the modules under our
responsiblity.

Was only noticed recently during runs in dev mode because the
deprecation warnings are only posted when odoo is launched in dev mode.

"Found deprecated directive @t-esc=%r in template %r. Replace by @t-out"
in base/models/ir_qweb.py

X-original-commit: 7083b65e31626acc826c47d1d450f12b7d1c2d4a
Part-of: odoo/odoo#102245
2022-10-06 14:57:00 +02:00
Victor Feyens e05d01c12a [FIX] sale: do not allow opening the product form view from the SO lines
X-original-commit: 328f528c4007be087085a020616c78a04b91e92c
Part-of: odoo/odoo#102245
2022-10-06 14:57:00 +02:00
Victor Feyens 145ffe5ce7 [FIX] sale: remove useless configurator css
class o_edit_product_configuration was removed during owl conversion and
its css logic is not needed anymore.

X-original-commit: 9b40bb011ae5430b8a082bc6ddd24ca9ec8fdcf1
Part-of: odoo/odoo#102245
2022-10-06 14:57:00 +02:00
Victor Feyens 26351dfe73 [FIX] sale_product_configurator: correct name for product_id column
X-original-commit: 02cdc5218eef422106bf43246286afaa0475b67c
Part-of: odoo/odoo#102245
2022-10-06 14:56:59 +02:00
Martin Trigaux fde3f4d4b9 [I18N] *: export 16.0 source terms
closes odoo/odoo#102163

X-original-commit: 011d7aac5aacedb3ab373f247471ba69d67f50f3
Related: odoo/enterprise#32288
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-10-06 14:56:52 +02:00
Renaud Thiry eaf905d55a [IMP] mass_mailing: hide mailing option on invalid
Currently when creating a composer in mass mode
the composer always shows the 'mass mailing name' option
even when a mailing cannot be created.

This silently creates a regular mass mail.

This hides that option when selecting records of models
that do not inherit from thread. So that users do not falsly
believe a mailing will be created.

task #2990447

closes odoo/odoo#102105

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-06 14:56:49 +02:00
Louis Wicket (wil) c90e18c3df [IMP] mail: move code from components to models (PersonaImStatusIcon)
+ Turn props on component into fields on PersonImStatusIconView model
+ Move handler from component methods to model record methods

Task-3004188.

closes odoo/odoo#101943

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-10-06 14:56:47 +02:00
Louis Wicket (wil) 8bd03d3984 [IMP] mail, *: move code from components to models (ThreadIcon)
Task-3002515.

* = hr_holidays, im_livechat

closes odoo/odoo#101774

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-06 14:56:44 +02:00
Samuel Degueldre 493a521466 [FIX] mail: restore chatter flex-grow to match attachment preview
Recently, the chatter was migrated to owl. When doing this, it lost its
flex-grow property, whereas the attachment preview has kept it, which
causes layout shift when moving from a record without an attachment
preview to another with one and vice versa. This commit fixes that.

closes odoo/odoo#102323

X-original-commit: 6228500a3f3cdb17286d50f2662f3e7b0226f667
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-10-06 13:06:02 +02:00
Samuel Degueldre 211ee645fa [FIX] web: fix checkbox taking up more vertical space in some contexts
It was missing the bootstrap form-check class

closes odoo/odoo#102321

X-original-commit: 4218a3ed6022032577c2764deefa7923db32cf89
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 13:05:59 +02:00
Lucas Lefèvre ea78565152 [FIX] spreadsheet_dashboard_sale: add __count measure
The `__count` pivot measure was removed by mistake in the last
dashboard update
https://github.com/odoo/odoo/commit/4d6fb4549d4069fc52af0ba500f91ba271e9c62b

closes odoo/odoo#102320

X-original-commit: 3d1e1d4fa2f2919eba2b30366919e091f3fc1d61
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-06 13:05:57 +02:00
Romeo Fragomeli e505ca48d2 [FIX] survey: adapt form layout
Since the usage of the `CSS Grid` some view are broken.
The new form view system is less tolerant to missing colspan.
This commit, change the colspan when needed (e.g. no label) and in some
case extract the label outside the `DIV` to use `GRID` layout.

Steps to reproduce:
* Go to survey
* Select a survey
    * Select the Option notebook, fields are not aligned => BUG
* OR
    * Click on Add a question
    * list view in Answers notebook are not aligned => BUG

closes odoo/odoo#102319

X-original-commit: 51c1f6ed300e3dd185c45e14dff1ee9250f6e562
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
2022-10-06 13:05:54 +02:00
Younn Olivier 9599e81cd2 [FIX] website: open url attachments in the top window
When [1] introduced the website edition using an iframe, it did not
correctly adapt url attachments redirections.

Following this flow, in the Website Builder:
- From the Media Dialog, click on the "add document" top right button,
- Paste a google doc url and save,
- Click on the inserted document icon,
=> The google doc is opened inside the iframe (it leads to tracebacks).
This commit fixes the way these documents are opened from the
Website Preview iframe: '/web/content/...' links are always opened in
the top window, as they can be external redirections.

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2172311

closes odoo/odoo#102318

X-original-commit: c05f7de22600b5719117a188ab105e4140b6a3de
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Younn Olivier (yol) <yol@odoo.com>
2022-10-06 12:04:57 +02:00
stefanorigano (SRI) 0bd93d5df3 [IMP] web: uniform font-weights across versions
Following https://github.com/odoo/odoo/pull/100606, uniform font-weights
across versions in order to get "predictable" visual results.

task-3006942

closes odoo/odoo#102316

X-original-commit: 4b3fb9a93ae0330b67818be8e0ea85faa8a02494
Related: odoo/enterprise#32348
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-10-06 12:04:51 +02:00
Pierrot (prro) 460927a77a [FIX] account: use default account taxes
The accounts setting allows to have default taxes on accounts, but
they are not used when changing the account on an account_move_line.

closes odoo/odoo#102313

X-original-commit: ed40e71aa879b9f42e7acbe35647a88388afc107
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-06 12:04:49 +02:00
Rémi Rahir e88bc0b040 [FIX] spreadsheet: Introducing stacked line charts
Allow users to use stacked line charts. The chart.js configuration
is mimicking the one inside Odoo community.

task 2888350

closes odoo/odoo#102312

X-original-commit: 1ccb2cd685c60eecd767eb15967d4b4c25262ded
Related: odoo/enterprise#32345
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2022-10-06 12:04:44 +02:00
Julien Van Roy fdb0079e90 [IMP] account_edi_ubl_cii: always generate Factur-X silently
Always generate a Factur-X xml and embed it when a PDF is created. But no edi.document
is created, no warnings will be displayed on the invoice, and the PDF is not PDF/A-3.
The only purpose here is the Odoo interoperability.

Rename the 'Factur-X' option to 'Factur-X PDF/A-3' and make it only visible for FR and DE companies.

This 'Factur-X PDF/A-3' option will trigger the regular account.edi flow: create an edi.document
and show warnings on the move if errors are detected. When a PDF is printed, embed the Factur-X xml
and make the PDF a PDF/A-3. Thus, it can be used on Chorus Pro.

task-2957808

closes odoo/odoo#102311

X-original-commit: 25d4635d544a0a48ac937b35c996f2cbdb8073ec
Related: odoo/enterprise#32344
Related: odoo/documentation#2789
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
2022-10-06 10:42:56 +02:00
aliya 40ac191644 [FIX] l10n_lu: fix the lines order in the tax report
With sequence gone, the lines are now ordered incorrectly in the simplified LU tax report.
Reordering the lines correctly.

closes odoo/odoo#102310

X-original-commit: 3a5cfeb0806bbfe5245c740378883eaf8618d743
Related: odoo/enterprise#32343
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2022-10-06 10:42:51 +02:00
Bruno BoiandJorge Pinna Puissant 98796c6fe8 [FIX] web: calendar event and filter colors
This commit fix the following issues :
- When an event don't have a color provided, the first color was used.
    The issue with this, is that that color can be used with another
    filter. Now, a neutral color is used to avoid confusion.
- The filter that don't provided a color, will also use a neutral color,
    to keep harmonization with the color of the event.
- The color of the current user, was missing on the user filters.
- The color attribute set on the view was taken instead of the color
    attribute set on a field when the field is set as filter, which
    leads to a traceback.

closes odoo/odoo#102307

X-original-commit: c83379f68f395004e1750336ced8a4a4132f67fe
Signed-off-by: Michaël Mattiello <mcm@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Co-authored-by: Bruno Boi <boi@odoo.com>
Co-authored-by: Jorge Pinna Puissant <jpp@odoo.com>
2022-10-06 10:42:48 +02:00
Víctor Martínez c1246034d3 [FIX] mrp: Set the state of the production correctly.
If the components of the manufacturing order are in done or cancel
state you should NOT define the status of the manufacturing order as done.
It should only be set as done if components and finished moves are done/cancel.
TT38551

closes odoo/odoo#102273

X-original-commit: 8cc7af8af300829e25033781673b7c071dd57638
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-10-06 10:42:45 +02:00
clesgow 8e516d3827 [IMP] stock: Add (copy) to stock location name after duplicate
When duplicating a location, it is currently confusing to know if we're
now updating the duplicate or the original.
Adding a (copy) to the `name` after a duplicate will make it easier to
know which location we are currently updating.

Part of task-2985735

closes odoo/odoo#102244

X-original-commit: 177c50076e175a1d607a9aae87aee8307709f71c
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-10-06 10:42:42 +02:00
Samuel Degueldre 9c59d9a4a0 [FIX] web: support <widget> in list new view
When converting the list view to owl, the support for view widgets was
overlooked as this feature is not used very extensively and was not
tested.

This commit adds support for them and adds a test for it.

closes odoo/odoo#102193

X-original-commit: 9098c1d3cd4af8f324b5b09668e92822575f932d
Signed-off-by: Géry Debongnie <ged@odoo.com>
Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-10-06 10:42:40 +02:00
Sylvain LE GAL 547c3da36e [FIX] base : correct display of Documents to Delete
closes odoo/odoo#102173

X-original-commit: 0d0cd890bc823497a03bb709b2949e833f9ed6a4
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 10:42:37 +02:00
Stanislas Sobieski e57804207b [FIX] core: avoir firebase_admin DeprecationWarning
With version of urllib3 in ubuntu 22.04 (1.26.5) and with version of firebase_admin between 2.17.0 and 4.5.2 a gives the following
warning:
In firebase_admin/_http_client.py:30: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead

It has been fixed in later version
https://github.com/firebase/firebase-admin-python/pull/532 since v4.5.2

closes odoo/odoo#101731

X-original-commit: 66934cde91843a90b99ec02557b41cb68c281119
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2022-10-06 10:42:34 +02:00
Aurélien Warnon 4b6cb49770 [FIX] web: allow to ignore some dropdowns in kanban-views
Currently, the "kanban compiler" parses the XML and post-processes all
dropdowns defined in the view.

This commit adds a "kanban_ignore_dropdown" class, allowing to ignore this
additional post-processing if one wants to add simple dropdowns within his
kanban cards that are not transformed by the compiler.

This will be useful notably for the social_twitter kanban where we use a
regular dropdown to show re-tweet options.

Task-2855647

closes odoo/odoo#102314

X-original-commit: 263ba9bae78f692ea84a85202e27e530af1c4f8e
Related: odoo/enterprise#32346
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-10-06 08:40:46 +02:00
Patrick Hoste 5cc8961696 [IMP] web: add inputName prop to FileUploader
Currently since the input has no name we can't
retrieve the file when using FormData instance.

This commit allows the developer to pass an input
name when instanciating a FileUploader component.

Task-2855647

X-original-commit: 33bc32c52bef4787ae2e529f05837c2f7dbddc7f
Part-of: odoo/odoo#102314
2022-10-06 08:40:46 +02:00
maximilien(malb) 36681866da [FIX] account: Analytic line
The financial account must be editable until a journal items is set, which wasn't the case before this PR. I also switched the two fields so that's more logical for the user.

closes odoo/odoo#102309

Task-id: 3006879
X-original-commit: 5cc72bb6d6f9a04ec32e47d02ebfaf8e12aba559
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-10-06 07:43:46 +02:00
Michael (mcm) 2d97866f5a [IMP] web: hide relation in field selector
There was an option in the legacy ModelFieldSelector
that could be used to prevent following the relations.
This option was lost since the widget has been
converted. This commit simply reintroduces the option.

closes odoo/odoo#102308

X-original-commit: 673faab4dec7a0df434cf0575303df97a36db0f1
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 00:37:36 +02:00
Yolann Sabaux 661b35c1e7 [FIX] hr_expense: allow saving expense with UOM readonly
Steps to repoduce:
- go to expense
- select Mileage [MIL]
- Save

Issue:
Canno save, different UOM

opw-3001568

closes odoo/odoo#102280

X-original-commit: 4621d776f0108fa0226cfac56b0f376a5f2a0b2d
Signed-off-by: Kevin Baptiste <kba@odoo.com>
Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
2022-10-06 00:37:30 +02:00
Laurent Desausoi (lade) cb621c5512 [FIX] point_of_sale: adapt logo for multi companies customer display
Customer display does not show the appropriate logo when multi-company is
enabled. The logo shown is always the logo of the default company.

Step to reproduce the issue:
1) Install Point of Sale and set up a second company
2) Put a logo on both companies (different ones)
3) Create a POS session on the newest company (not the default one)
4) In this session, activate Customer Display
5) Launch the session and open the Customer Display
The logo shown is the logo of the default company.

Solution: The issue is that when fetching the logo, we don't include
information about the current company. Thus, we include the logo of the default
company (at url /logo). We can easily specifiy which logo we need via the url
/logo?company={company_id}. As dynamic information cannot be included into a
CSS, we include this into the XML as it is done with other images rendered.
In our case, we don't need to retrieve the logo and map it to base 64 (for
ressources requiring to be logged in) because the logo is a resource available
to anyone.

opw-2745014

closes odoo/odoo#102257

X-original-commit: ceb244d31a72ad826e841dfd06b7e1ed59f2c994
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
2022-10-06 00:37:27 +02:00
MerlinGuillaume 20434b5c7a [FIX] web: show decimal part of floats in exported xlsx
If the decimal separator of the currently selected language is a comma,
exporting data in an xlsx would use a wrong float format

Steps to reproduce:
1. Install Invoicing
2. Go to Settings > Languages, add 'French / Français' language and
   switch to it
3. Go to Facturation > Fournisseurs > Factures
4. Export the data (there should be at least one amount with a decimal
   part)
5. The decimal part of the amounts is not displayed

Solution:
Always use the same decimal separator to print in the xlsx as we can
only use a dot as a decimal separator (the comma is used as the thousand
separator). The value will then be displayed to the user according to
his OS regional settings (see https://xlsxwriter.readthedocs.io/format.html#number-formats-in-different-locales)

Problem:
When using a comma for the float format, we actually specify the format
of the integral part of the number (the thousands) without displaying
the decimal part (which is represented with the dot)

opw-2965984

closes odoo/odoo#102255

X-original-commit: 21efa4f18266a5c5c57157035c2357ed3e147a69
Signed-off-by: Julien Castiaux <juc@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2022-10-06 00:37:25 +02:00
Mathieu Duckerts-Antoine 6086fb664c [FIX] project: Project Stages record style
After the update of the bootstrap lib, the kanban records to be found in
the menu Project Stages of Project > Configuration (after activation of
a setting option) had each two weird borders. Here, we simplify the
kanban-box template in order to get only one border as it is in 15.0.

closes odoo/odoo#102249

X-original-commit: 839bdd0a853f88bfaeb0dd698d60e2168dc54188
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 00:37:22 +02:00
Stanislas Gueniffey 2a449454cb [FIX] account: display tax base on invoice report
The condition that determines whether to display the tax base was wrong
It should be displayed when either condition is met:
- There are multiple tax base amounts
- The only tax base amount is not the same as the untaxed amount

Note that this last case may happen with cash discounts

closes odoo/odoo#102247

X-original-commit: a8ff4b876c8ab48177795e6ace1bb1361744c8a7
Signed-off-by: Camille Spiritus (casp) <casp@odoo.com>
Signed-off-by: Stanislas Gueniffey (stgu) <stgu@odoo.com>
2022-10-06 00:37:20 +02:00
Romeo Fragomeli 5f2017e544 [FIX] purchase,sale: adapt colspan in form view
Since the usage of the `CSS Grid` some view are broken due to too much
CSS rules conflicting together.
The new form view system is less tolerant to missing colspan.
This commit, change the colspan when needed (e.g. no label)

Steps to reproduce:
* Go to sale
* Select the product menu
* Select a product (e.g. Printer)
* Some fields on the form view (in panel) are not aligned => BUG

closes odoo/odoo#102246

X-original-commit: 4813d1ebd4295c8be7ee6b6a892604f15cc43fce
Related: odoo/enterprise#32320
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
2022-10-06 00:37:17 +02:00
Romeo Fragomeli 3e06470f95 [FIX] web: remove top space on first separator
This commit, excludes the first separator from the selector to avoid too
top space.

Steps to reproduce:
* Go to sale
* Select the product menu
* Select a product (e.g. Printer)
* Click on the Price tab
* The separator on the right is misaligned => BUG

X-original-commit: 0e0a2014b31e2fc6423e80971ac451a2dfe89de9
Part-of: odoo/odoo#102246
2022-10-06 00:37:17 +02:00
Romeo Fragomeli 7cea356345 [FIX] web: X2Many list shouldn't be attached to pane if in group
This commit, excludes X2Many list from the selector to avoid to use
negative margin when we are in a group.

Steps to reproduce:
* Go to sale
* Select the product menu
* Select a product (e.g. Printer)
* Click on the Price tab
* The X2Many list is misaligned of the group => BUG

X-original-commit: d718ee455c05c0df419f66c0a884207322199282
Part-of: odoo/odoo#102246
2022-10-06 00:37:17 +02:00
Odoo's Mergebot a92b64bc6e [FW][MERGE][IMP] base, web: allow to use them in kanban view
Purpose
=======

Check the existence of the relational properties (many2one / many2many) in
batch and prefetch the values in batch as well to reduce the number of SQL
queries.

Allow to add the properties field in the kanban view. An option has been added
in the property definition, "View In Kanban", to decide which field must be
visible in the kanban view. This is useful when having several properties
and to avoid cluttering the UI.

This merge also contain some fixes, see sub commits for more details.

Task-2965523

closes odoo/odoo#102243

Forward-port-of: odoo/odoo#101417
Related: odoo/enterprise#32318
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-06 00:37:11 +02:00
std-odoo 8cde946b05 [IMP] web: make the property tags component more reactive
Purpose
=======
The debounced timeout is useful for the auto complete when it's used for
many2one and many2many because it makes RPC calls.

But for the property tags, we don't need this timeout and it will make
the component more reactive.

Task-2980121

X-original-commit: 9701738365c50e911cb704807c929fbbb4b43c43
Part-of: odoo/odoo#102243
2022-10-06 00:37:11 +02:00
std-odoo 1c6270ce97 [FIX] web: fix the definition popover when we move the properties
Bug
===
In knowledge, when we move for the first time a property, the popover
position is wrong. The technical reason is that the component DOM is
updated one time before the props changed, and so the DOM is not
up to date when we compute the new position.

Also, the popover might change it's relative position (top VS bottom)
and so the small arrow might be incorrect in that case. Always remove
it (rectangle popover better than a wrong arrow direction).

Task-2980121

X-original-commit: de37a3393b31d48add36fc6be5febf70dc3db31e
Part-of: odoo/odoo#102243
2022-10-06 00:37:10 +02:00
std-odoo 9d96a5f175 [FIX] web: match the new field style
Purpose
=======
The style of the standard field has been changed due to the
"edit only" form view. Adapt the properties field style to match
standard field.

Fix a bug where the autocomplete of the many2many / tags is
displayed outside of the screen.

Change the external link icon to match the new one on standard many2one.

Task-2980121

X-original-commit: 0c8e4c03529d4306be295a59d987576ff2cab490
Part-of: odoo/odoo#102243
2022-10-06 00:37:10 +02:00