Commit Graph
164813 Commits
Author SHA1 Message Date
Florian Damhaut baaecf2b2f [IMP] sale: improve sale calendar view
The goal of this task is to help user manage their sale_order
by having a summary view of all their next activities.

Sale calendar view is now based on the next activity for each
sale_order.

closes odoo/odoo#132287

Task-id: 3463325
Related: odoo/enterprise#45945
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
2023-09-06 11:50:46 +00:00
pash-odoo 133f4da844 [FIX] hr_skills: fix resume end date wrong selection
before this commit, in resume we are able to put end date less than start date
which is not possible in real life.
inside form view add daterange widget to start date field so user not able to
select end date less than start date. switch the position of Display Type and
Certification or Course field to show the additional field below the Display
type when Display type is selected.

task-3397726

closes odoo/odoo#128269

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-09-06 11:50:43 +00:00
Guillaume (guva) 3a4bd36f1b [FIX] account: display payment term partial invoice
When having a payment terms with several lines,
the payment term lines are not displayed when
printing the invoice if this one has been
partially paid.

opw-3482256

closes odoo/odoo#134343

X-original-commit: 26a63a94fe167944fc24de2191c9abb2f502219a
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
2023-09-06 10:26:02 +00:00
Guillaume (guva) 9505abe97b [FIX] l10n_ch: qr bill report with attachment
When having an attachment to the qr-bill report,
an error is raised when printing the report:
"the report's template does not contains the
 attributes 'data-oe-model' and 'data-oe-id' on
the div with 'article' classname."

Steps:

- With a Swiss company
- Activate QR code on customer invoices
- Go to Settings>Technical>Reports and select QR-bill
- In Advanced Properties tab, set an attachment
- Create an invoice for a swiss customer, confirm
  and print the QR-bill
-> Error

We this commit, we simply add oe-data-model and
oe-data-id to the div with the article class
in the template, as indicated in the error message.

opw-3480179

closes odoo/odoo#134337

X-original-commit: 55aea3e851c61e1ad138937c1d40372f7ba7cf26
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
2023-09-06 10:26:01 +00:00
Jorge Pinna Puissant 52e20a3dd3 [REF] web, *: change name noReload to reload
This commit change the name of the option noReload to reload, this is to
avoid having negative variables names for boolean. This is a general
known best practice, and in this case it's important to have a better
readability of the code (specially when a negation of a negative
variable occurs).

closes odoo/odoo#134317

Related: odoo/enterprise#46913
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-09-06 10:25:59 +00:00
Yolann Sabaux f35db5c31f [FIX] account: display banner tax lock before creation
Steps to reproduce:
- set a tax lock date
- create a new move
- set the accounting date prior to the tax lock date
- set an invoice_line with a tax

Issue:
The banner teeling you information about the tax lock date won't appear unless the move is created.

opw-3370727

closes odoo/odoo#134388

X-original-commit: d67aa6a798d9f7359549bbf56ec6fa2913f930ec
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
2023-09-06 06:54:50 +00:00
David Monnom (moda) ab4d9056d4 [FIX] point_of_sale: skip receipt screen blinking
Currently when the pos.config is set to "Skip Preview", when printing a
receipt, the receipt or bill screen shows very quickly and disappears.
This is not good UX.

Now, the receipt is printed from the payment screen itself. We don't
need to show the receipt screen at all.

closes odoo/odoo#132550

Taskid: 3441238
Related: odoo/enterprise#46187
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-09-06 06:54:47 +00:00
Jérémy Hennecart (jeh) 706df048b3 [FIX] website_event: add answers info in registration summary
- Add the registration answers of the attendee in the registration
summary.
- Add a mobile kanban view for answers on the attendee form to
make them more visible.

task-3491881

closes odoo/odoo#134404

X-original-commit: 35ed7ccfd24ea31df86f9c863e75f1cb0fb77f0d
Related: odoo/enterprise#46957
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Jérémy Hennecart (jeh) <jeh@odoo.com>
2023-09-06 05:53:58 +00:00
Baskhuu LodoikhuuandAntoine Dupuis b8b4135842 [IMP] l10n_mn: Changes needed for updated reports
Necessary changes to:
- CoA
- Taxes
- Fiscal Positions
- Account Tags
for supporting up-to-date Mongolian reports.

closes odoo/odoo#134379

X-original-commit: c76a837d8f517f6388fb37bc3126c2daa9d42446
Related: odoo/enterprise#46947
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Antoine Dupuis (andu) <andu@odoo.com>
Co-authored-by: Antoine Dupuis <andu@odoo.com>
2023-09-06 05:53:55 +00:00
Vincent Larcin d1796b4768 [FIX] project: fix portal task groupby
In the portal view of tasks, we set a default groupby in _prepare_task_values to project.
However, since this method is called every time we change the groupby, it is effectively
impossible to group by anything other than project.

This commit fixes this so that it is possible to select other groupbys.

Task-3438490

closes odoo/odoo#134378

X-original-commit: 02629788f24efb4646703cf94f1a8c603179e185
Related: odoo/enterprise#46945
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-09-06 05:53:54 +00:00
Vincent Larcin c5fe911540 [FIX] project: allow groupby project when it has shared documents
When viewing an individual project in the portal, despite there being a single project,
we still want to group by project when that project has shared documents, so that the
"Documents" button is displayed.

This commit adds a method meant to be overriden in documents_project so that behavior can
be readded for project with shared documents only.

Task-3438490

X-original-commit: b8e68f35fe151d59bd60510ccd3a43c0a92e1190
Part-of: odoo/odoo#134378
2023-09-06 05:53:54 +00:00
Victor Feyens 23d2c5294a [FIX] product: automatic generation of documents for attachments
Finetuning of #132739

closes odoo/odoo#134364

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-09-06 05:53:51 +00:00
Walid 585c2d806a [FIX] stock_landed_costs: reconcile LC after posting the bill
Steps to reproduce:
- Create a PO (fifo automated product)
- Recieve product
- Create the bill and add the landed cost product to it
- Create the landed cost before posting the bill
- Post the bill

Bug:
when creating the landed costs if the bill is already posted
the created amls are reconciled otherwise they aren't

Fix:
reconcile the landed costs amls after posting the bill

opw-3377088

closes odoo/odoo#134349

X-original-commit: 233699522c48dce9b541a79db756cc478ed71592
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
2023-09-06 05:53:50 +00:00
Sébastien Geelen (sge) bfa3090be2 [FIX] web_editor: delete behavior before table
Before this commit:

* A delete at the end of an empty block just before a table (unbreakable), nothing happened.

After this commit:

* A delete at the end of an empty block just before an unbreakable block, the empty paragraph should be removed and the selection put at the beginning of the unbreakable block.

task-3186679
task-3252775

closes odoo/odoo#125211

closes odoo/odoo#134327

X-original-commit: 70a03c931438fd549d167deb9ad500f3fc8b6024
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
2023-09-06 05:53:48 +00:00
Sébastien Geelen (sge)andAashish Thakur 8c481c7b8e [FIX] web_editor: delete behavior in LI
Before this commit:

* A backspace at the beginning of a List Item (LI), the indentation of the list item was reduced by 1 unit.
If not possible, the current LI was merge with the previous LI.
* A delete at the end of a LI, first we remove one unit of indentation from the next LI,
only when not possible anymore we merge next LI in the current LI.

After this commit:

* A backspace at the beginning toggle off the current LI ( the LI tag is remove and popped out of the List )
The parent List is splitted if needed.
* A delete at the end of a LI directly merge next element inside the current LI.

task-3186679

X-original-commit: b177c29ee0df8c7edf72b177c59c5dff6bd0d270
Part-of: odoo/odoo#134327
Co-authored-by: Aashish Thakur <aath@odoo.com>
2023-09-06 05:53:48 +00:00
Sébastien Geelen (sge)andSanjay Sharma d8d30bc7b1 [FIX] web_editor: backspace should keep current node
Before this commit:

On backspace current node is removed and it's content were moved to it's
preceding node.

After this commit:

Now keeping the current node it removes preceding node if empty and if not empty
then merge current node to previous node.

Task-2909314
task-3186679

X-original-commit: bca7f0455ce56268a592c924ac22f9f2dc6541db
Part-of: odoo/odoo#134327
Co-authored-by: Sanjay Sharma <shsa@odoo.com>
2023-09-06 05:53:48 +00:00
Alexandre Kühn 78fcad9176 [FIX] mail: properly type static methods of discuss models
Before this commit, static methods on discuss models like `.get()`
or `.new()` where not properly documented.

The superclass `Record` documents `@returns`, but jsdoc failed to
deduce these static methods return subclass instances. We tried to
find a way to define things once in `Record` and let typedoc deduce
things automatically without overriding in each models just for the
sake of type. However typedoc still sucks in 2023 despite requests
for improvements to support this specific case since 2016, 7 years
ago.

This commit fixes the issue by overriding static method in all discuss
models so that the `@returns` is properly documented.

closes odoo/odoo#134316

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-06 05:53:46 +00:00
Arnold Moyaux 38abfc16e7 [IMP] mrp: add a table in stock
closes odoo/odoo#134314

Related: odoo/enterprise#46908
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2023-09-06 05:53:45 +00:00
David Monnom (moda) c825bd0b25 [IMP] point_of_sale: change skip line color
Previously before the bootstrap refactoring the skip line color was
`#7F82AC` which is a dark purple. After the refactoring the color was
changed to `text-secondary` color which is a light gray.

This commit changes the color to `#7F82AC` again to keep the same
behavior as before the refactoring.

closes odoo/odoo#134305

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-09-06 05:53:43 +00:00
Gabriel de Paula Felix (gdpf) a14bc16647 [FIX] microsoft_calendar: traceback trying to delete recurrence
Before this commit, trying to delete a recurrent event that was already synced with Google Calendar or Microsoft Calendar was raising a traceback and not showing the User Error which forbids this action to be done.

After this commit, the traceback is not shown anymore and the User Error is correctly presented to the user while trying to delete a recurrent event (with Microsoft synchronization active).

Traceback snippet:

result = _call_kw_multi(method, model, args, kwargs)
File '/data/build/odoo/odoo/api.py', line 448, in _call_kw_multi
  result = method(recs, *args, **kwargs)
File '/data/build/odoo/addons/microsoft_calendar/models/calendar.py', line 168, in action_mass_archive
  if self._check_microsoft_sync_status() and any(self.microsoft_id):
TypeError: 'bool' object is not iterable

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error

closes odoo/odoo#134293

Issue: 3468190
Task-id: 3473180
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Signed-off-by: Gabriel de Paula Felix (gdpf) <gdpf@odoo.com>
2023-09-06 05:53:42 +00:00
tsm-odoo f5c12800c9 [FIX] mail: fix record deletion crash
Before this commit, calling `record.delete` twice would
result in a crash. This is due to `this.Model`being cleared
once the delete is done. This commit skips the deletion if
it was already done: calling delete will result in the desired
state anyway.

This can be easily reproduced:
- Throttle your network
- Send a message on the discuss app
- A crash occurs

closes odoo/odoo#134254

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-06 05:53:41 +00:00
Josse Colpaert a8a752a14e [FIX] l10n_es_edi_tbai: avoid external tests on l10n staging
For mysterious or logical reasons, the test classes inherit
the test tags from each other.  This means that the TBai external
test will have the post_install_l10n tag inherited and are currently
run when staging.  It should not block our staging when they are
down, ... by accident.

https://runbot.odoo.com/runbot/build/50405024

closes odoo/odoo#134286

X-original-commit: 7ebc8cc5771d069b32722d493dd0ae5341e54c96
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-09-06 02:22:43 +00:00
Didier (did) ae9da88c0c [IMP] mail: simplify link preview payload
Before this PR the link preview formatter was creating an unnecessary complex
object in the message key.
This PR simplify the payload by using a message_id key and remove the
unnecessary object.

closes odoo/odoo#134283

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-06 01:18:47 +00:00
Aaron Bohy e6fde6b694 [FIX] web: apply correct limit when grouping list/kanban
Be in an ungrouped list or kanban view. The "limit" number of
records is displayed (by default 80). Apply a group by. The same
limit is applied for the number of groups, whereas there's a
specific parameter ("groups_limit") for the number of groups to
fetch and display. The same problem occurs the other way around
(going from grouped to ungrouped), as in this case the groups_limit
is kept when the view is no longer grouped.

This commit fixes the issue by forcing a reset of the limit when
we go from grouped to ungrouped and from ungrouped to grouped.

We also add a test to ensure that the "groups_limit" is taken into
account even when there're multiple groupbys, which wasn't the
case in previous versions, but which is working as expected with
the new model.

closes odoo/odoo#134253

Signed-off-by: Francois Georis (fge) <fge@odoo.com>
2023-09-05 21:18:19 +00:00
FrancoisGe 956393ab90 [FIX] web: clean input m2mTagsAvatar
Before this commit, performing a search in a Many2manyTagsAvatarFields
and selecting an element does not remove the search value from the input.

Why not?
The value passed to Autocomplete is the default ''.
As this value never changes, onWillUpdateProps is never called and cannot
empty the input.

Solution:
Use the resetOnSelect option to force the input to be reset at each select
if props.value is the default value.

closes odoo/odoo#134242

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-09-05 21:18:17 +00:00
Didier (did) a6ebc20b73 [FIX] mail: only display followers with mail.mt_comment activated
Before this commit, recipient list in chatter when using composer
in "Send message" mode where listing emails of all followers, instead
of only subscribers of "Send message" (= `mail.mt_comment`).

This commit solves this issue by loading and showing followers
that are recipients in this list. Because this feature and follower
list lazy-load some data, they need to manage they own list for
the "load-more" aspect. That's why the diff shows some duplicated
code as with `followers` field of JS thread model.

closes odoo/odoo#134225

X-original-commit: ba43502b22f8f00e7a2318b341302b809e7129dc
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-05 21:18:14 +00:00
althaf shaik e9266ad1c0 [FIX] sale: make payment when journal type is not sale
This traceback arises when a user tries to make a payment on the website.

To reproduce this issue:

1) Install 'website_sale'
2) open invoicing/configuration/journals
3) Change the journal type if it is 'sales'
4) Install and enable 'Wire Transfer' payment provider in
   invocing/configuration/Payment Providers
5) Now open 'website/shop' add any product to cart and proceed to checkout
6) Make a payment with 'Wire Transfer'

Error: 'ValueError Expected singleton: account.journal()'

On '_compute_sale_order_reference' method, 'invoice_journal' variable
is getting values with the reference of 'type=sale'.
See:-
https://github.com/odoo/odoo/blob/ebc4ed6c4fb11b01be28cf417b27de83d5361cef/addons/sale/models/payment_transaction.py#L20-L30

Because of user changed the type of journal, 'invoice_journal'
value will be empty recordset and it is referenced to call
'_process_reference_for_sale_order' method.

In '_process_reference_for_sale_order' method ensure_one() is used,
which leads to above traceback.

sentry-4392496618

closes odoo/odoo#134083

X-original-commit: c880a295d0f7feff48b08fd00723a41b8d564d2d
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Altaf Shaik (alsh) <alsh@odoo.com>
2023-09-05 21:18:12 +00:00
Pierre Paridans bb18aace54 [IMP] web,*: removes jQuery.browser
This commit removes the $.browser as not used anymore and already
removed in jQuery itself in v1.9, and reintroduced in our codebase to
support jquery.ba-bbq (in odoo/odoo@4d07900cf7)
which was also removed.

Reference:
https://api.jquery.com/jquery.browser/

task-3439226

closes odoo/odoo#133916

Related: odoo/enterprise#46736
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2023-09-05 19:58:08 +00:00
Pierre Paridans 0b8c9afb08 [IMP] website,*: removes compatibility layer for (really) old browsers
*:web_editor,portal

This commit aims at removing the need to rely on `$.browser`, which was
mainly the case to support deprecated and unsupported browsers like MS
Internet Explorer or old version of Firefox.

Doing so, this commit removes the `data-browser` attribute initialy
introduced by odoo/odoo@a7e0b73930 as not
needed anymore nowadays and to generally promote "feature detection"
instead of "user-agent sniffing" to handle browsers' feature support and
edge cases.

task-3439226

Part-of: odoo/odoo#133916
2023-09-05 19:58:08 +00:00
David Monnom (moda) 0bab00cb4f [IMP] pos_self_order: add carousel on kiosk landing page
Carousel is a slideshow for cycling through a series of images. It is a
dynamic display of content that can be used to show a rotating series of
pictures, articles, or advertisements.

Following the specifications, the carousel is displayed on the landing
page of the kiosk mode. Images of carousel can be configured from the
settings (ir.attachement).

Used carousel is a bootstrap carousel.

closes odoo/odoo#133760

Taskid: 3484170
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
2023-09-05 19:58:07 +00:00
Joren Van Onder d4e8c88da6 [IMP] base_vat,l10n_br: depend on l10n_latam_base to categorize id types
This adds the two main identification types we use in Brazil. CNPJ is
used the standard VAT type. The custom check_vat logic was removed
because stdnum supports this out of the box.

Another non-VAT CPF type was added that is checked for validity using
stdnum as well.

task-3475609

closes odoo/odoo#132773

Related: odoo/enterprise#46127
Related: odoo/upgrade#5062
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-09-05 19:58:04 +00:00
maad-odoo aa8b60a0c8 [IMP] mail: rename activity type To Do to To-Do
upgrade: https://github.com/odoo/upgrade/pull/5057

Renaming the activity type 'To Do' into 'To-Do' so that the naming
convention is consitent with the To-Do app.

task-3469745

closes odoo/odoo#132467

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-05 19:58:02 +00:00
FrancoisGe d8f03151fa [IMP] web: add relatedFields in x2m sub-views
The goal of this commit is to allow relatedFields to be added to a one2many
field using a sub-view.

Before this commit, if an x2many custom contains a sub-view and relatedFields,
we ignore the sub-view and use only the relatedFields.

Now we're going to add the relatedFields to the fields/activeFields
defined in the sub-view.

Use case:
Created a custom x2many field dependent on the 'display_name' of
a many2one field that should not be present in the sub-view. For example,
to simulate a groupBy on this many2one field.

closes odoo/odoo#132351

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-09-05 19:58:01 +00:00
shag-odoo f581d4ad17 [IMP] fleet: improve the search positioning and add filter_domain
Before this commit, the 'Current Driver(Employee)' option was present within the
search menu and appeared as the last choice in the search list.

IMP:
Following this commit, the 'Current Driver(Employee)' is been
removed and all its functionality is implemented in Driver.

closes odoo/odoo#131512

Taskid: 3459896
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-09-05 19:58:00 +00:00
Didier (did) 6aa3a1e243 [IMP] mail: message action registry + reorder actions in inbox
Before this commit, message actions were all defined in template
of `Message` component. It's good when there are few actions and
the ordering of actions is always the same, but there are now
many actions and we want to order these actions depending on context.

This commit fixes the issue by introducing a special registry to add
message actions. This registry is quite similar to thread actions:
each item define conditions to be shown, behaviour on click, and
their sequence which can depend on the context where the message is
being viewed.

In addition to this message action registry, this commit also
reorder message actions in inbox as follow:

1. Quick actions:
 - Add a Reaction
 - Mark as To do
 - Mark as Read
2. More menu:
 - View reactions
 - Reply
 - Unfollow
 - Edit
 - Delete

Task-3458086

closes odoo/odoo#131426

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-09-05 18:44:24 +00:00
Vincent Larcin 71705e4ea3 [IMP] project: add date_last_stage_update to task list view
This commit adds the "Last Stage Update" field to the task list view

Task-3455177

closes odoo/odoo#130880

Signed-off-by: Vincent Larcin (vila) <vila@odoo.com>
2023-09-05 18:44:23 +00:00
Vincent Larcin fef29c62f5 [IMP] project: update date_last_stage_update when changing state
Currently, the field date_last_stage_update is updated when the state of the task is changed,
but only if the target stage is a closing state.

It could however be useful to know when the state was last changed regardless of if it's closing or not.

This commit makes it so that the field is updated after any state change.

Task-3455177

Part-of: odoo/odoo#130880
2023-09-05 18:44:23 +00:00
Prakash Prajapati b038bbfad4 [IMP] hr_recruitment: remove default responsible in applicant
Steps:
 - install hr_recruitment app
 - Create a job Positions without Recruiter
 - Published job Positions
 - Got To website and apply
 - Open applicant
 - Public user is set in applicant responsible

Issue:
   public user is set if Recruiter is empty in job Position

Fix:
   In this commit we have removed the default current user as the responsible
  applicant.

task-3424017

closes odoo/odoo#128721

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-09-05 18:44:20 +00:00
Adrien Guilliams (adgu) 17d1a52f56 [IMP] pos*: Improve demo data
pos*: point_of_sale, pos_restaurant, pos_self_order

**Purpose:** This change is for better UX of the testers.

**Notable changes:**

1. Historical pos order data which include past sessions and past orders.
2. New open session and open orders.
3. Onboarding data containing all demo datas and the new open session
and open orders.
4. Adding more drinks demo products.

closes odoo/odoo#128699

Task-id: 2484444
Related: odoo/enterprise#44198
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-09-05 18:44:18 +00:00
Benjamin Vray 7f730f81ec [IMP] web_editor, website: add an "on hover" option for animations
This commit adds an "on hover" option for animations. We've added the
"on hover" option to the animation selector. This feature is only
available for images. It allows you to pick an animation that triggers
when you hover your mouse over an image. There are six different
animations to choose from. This new animation option doesn't work with
animated shapes and devices shapes.

task-3094258

closes odoo/odoo#119197

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-09-05 18:44:17 +00:00
Benjamin Vray fbb395021d [IMP] web_editor: allow to flip/rotate image shapes
This commit adds the possibility to horizontally/vertically mirror and
rotate the shape of an image. We've introduced a new sub-option for
image shapes called "Transform". This new option is not available for
certain shapes:
- If the transform will have no effect (a vertically and horizontally
symmetrical shape).
- With some animations, if the animation is too complex for the system
to work.
- For "devices" shapes because they are too specific for the option to
work. And anyway "devices" shapes are already available horizontally
flipped in the list.

task-3094258

Part-of: odoo/odoo#119197
2023-09-05 18:44:17 +00:00
Odoo's Mergebot 76fcebd2ca [MERGE] base_automation: simpler edition workflow
This PR makes "Automated Actions" more discoverable and usable by:

- Adding a menu in the kanban header config dropdown to add/edit them.
- Creating a new custom kanban view for a clear understanding of each
  automated action record and its associated actions.
- Introducing new "smart" triggers that appear in the form view based on the
  chosen model:
  - Updated Values category:
    - "Stage is set to" when a `stage_id` field exists in the model,
      allowing users to select a specific stage value.
    - "State is set to" when a `state` field exists in the model,
      allowing users to select a specific state value.
    - "Priority is set to" (`priority`) where users can select a specific priority.
    - "User is set" (`user_id`, `user_ids` fields)
    - "Tag is added" (`tag_ids` field) where users can select a specific tag.
    - "On Archive"
    - "On Unarchive"
  - Timing Conditions:
    - "After creation"
    - "After last update"
- Deprecating previously known triggers "On Creation" (`on_create`) and "On
  Update" (`on_write`) to simplify the user experience. "On Creation & Update"
  (`on_create_or_write`) is retained and renamed to "On save".
- Changing the `ir.actions.server` Many2one relationship to a One2many
  relationship. Automated actions can now directly contain multiple actions,
  eliminating the need for an "Execute several actions" action in automation
  rules.
- Introducing a widget for the new `ir.actions.server` One2many field for a
  clearer understanding of multiple actions.

This commit also enhances the usability of "Server Actions" (`ir.actions`) by:

- Removing the `ir.server.object.lines` model and the associated `fields_lines`
  One2Many field. The attributes of the removed model are now merged into
  `ir.actions`. An action can now write to only one field, and the create action
  is now a name_create action.
- Adapting the form view when creating an "Update the record" action. The value
  field shown adapts itself based on the field to update; this field can be a
  `reference` field for a `one2many` `update_field_id`, a `one2many` field for a
  selection `update_field_id`, or a `text` field otherwise.
- Refactoring the form view to display only relevant details and other
  miscellaneous improvements.

closes odoo/odoo#114352

Taskid: 3085360
Upgrade: https://github.com/odoo/upgrade/pull/4904
Enterprise: https://github.com/odoo/enterprise/pull/37782
Related: odoo/enterprise#37782
Related: odoo/upgrade#4904
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2023-09-05 18:44:13 +00:00
Damien Bouvy 9751075208 [IMP] base_automation: use backend action for Automations button
This commit ensures that the 'Automations' button uses the backend
action and not one created on the fly.

This ensures that the user lands in a view which has the correct helper
text.

Task-3085360

Part-of: odoo/odoo#114352
2023-09-05 18:44:13 +00:00
Damien Bouvy b75fad0df9 [IMP] base_automation: modular kanban header action
This commit makes it possible to have the same 'Automation' button hook
in this module (in community) and in web_enterprise (which is in the
Enterprise edition, as one may have guessed).

The purpose of the override in web_enterprise is to promote Odoo Studio
as the module to install to enjoy automations. Including this Studio
promotion in Odoo CE makes little sense, especially since only
base_automation is actually needed. Therefore we needed to have both a
promotion button in EE and an actual button in CE but not both when
base_automation was installed along with web_enterprise.

This commit simply adds an intermediary function on the KanbanHeader
component, which calls an indirect function that is only defined
in base_automation. In that way, the web_enterprise module can
override the intermediary function and can check the existence of
the indirect function.

Task-3085360

Part-of: odoo/odoo#114352
2023-09-05 18:44:13 +00:00
0a744accc2 [IMP] base_automation,*: simpler edition workflow
*: base, crm, digest, mail, mass_mailing, sms, test_base_automation,
   website_forum, website_sale

This commit makes "Automated Actions" more discoverable and usable by:

- Adding a menu in the kanban header config dropdown to add/edit them.
- Creating a new custom kanban view for a clear understanding of each
  automated action record and its associated actions.
- Introducing new "smart" triggers that appear in the form view based on the
  chosen model:
  - Updated Values category:
    - "Stage is set to" when a `stage_id` field exists in the model,
      allowing users to select a specific stage value.
    - "State is set to" when a `state` field exists in the model,
      allowing users to select a specific state value.
    - "Priority is set to" (`priority`) where users can select a specific priority.
    - "User is set" (`user_id`, `user_ids` fields)
    - "Tag is added" (`tag_ids` field) where users can select a specific tag.
    - "On Archive"
    - "On Unarchive"
  - Timing Conditions:
    - "After creation"
    - "After last update"
- Deprecating previously known triggers "On Creation" (`on_create`) and "On
  Update" (`on_write`) to simplify the user experience. "On Creation & Update"
  (`on_create_or_write`) is retained and renamed to "On save".
- Changing the `ir.actions.server` Many2one relationship to a One2many
  relationship. Automated actions can now directly contain multiple actions,
  eliminating the need for an "Execute several actions" action in automation
  rules.
- Introducing a widget for the new `ir.actions.server` One2many field for a
  clearer understanding of multiple actions.

This commit also enhances the usability of "Server Actions" (`ir.actions`) by:

- Removing the `ir.server.object.lines` model and the associated `fields_lines`
  One2Many field. The attributes of the removed model are now merged into
  `ir.actions`. An action can now write to only one field, and the create action
  is now a name_create action.
- Adapting the form view when creating an "Update the record" action. The value
  field shown adapts itself based on the field to update; this field can be a
  `reference` field for a `one2many` `update_field_id`, a `one2many` field for a
  selection `update_field_id`, or a `text` field otherwise.
- Refactoring the form view to display only relevant details and other
  miscellaneous improvements.

Taskid: 3085360
Part-of: odoo/odoo#114352
Co-authored-by: Florent Dardenne <dafl@odoo.com>
Co-authored-by: Julien Carion <juca@odoo.com>
Co-authored-by: Lucas Perais <lpe@odoo.com>
2023-09-05 18:44:13 +00:00
Bruno Boi e1b0763347 [REF] web: registry for KanbanHeader config items
**Before this commit**
In order to add a new entry in the KanbanHeader config dropdown,
one has to extend the xml template.

**After this commit**
A registry has been added, easing the job to add entries in this menu.

Task-3085360

Part-of: odoo/odoo#114352
2023-09-05 18:44:13 +00:00
Bruno Boi 3317e8510b [REF] base_automation: move some static files
Move some file up a folder:
- ./static/src/js/... => ./static/src/...
- ./static/src/xml/... => ./static/src/...

Task-3085360

Part-of: odoo/odoo#114352
2023-09-05 18:44:13 +00:00
tsm-odoo 1450747b3e [FIX] bus: fix single notification test
Before this commit, the "subscribe to single notification"
test failed in an nondeterministic fashion. This commit
solves this issue.

fixes runbot-24033

closes odoo/odoo#134243

Signed-off-by: Didier Debondt (did) <did@odoo.com>
2023-09-05 16:34:44 +00:00
Antoine (ande) 12c6eb017c [FIX] web: textarea do not resize properly
Current behaviour:
When clicking on a note containing
multi-line text, the textarea shrinks

Expected behaviour:
Note should show whole text

Steps to reproduce:
1. Install sale_management
2. Head to Sales > Quotations
3. Click on any quotation line
4. Click on "Add a note"
5. Input multi-line text
6. Click on the "Save manually" button
7. Click again on the note
8. Note is omly one character tall

opw-3457234

closes odoo/odoo#134231

X-original-commit: 061430f1430723d719230796774cf4efab8aa348
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Antoine Demany (ande) <ande@odoo.com>
2023-09-05 16:34:41 +00:00
momegahed 631d34e8eb [FIX] l10n_ar_website_sale: fix access to AFIP in ecommerce
Steps to reproduce:
1. install l10n_ar_website_sale
2. try to checkout out using a guest account (without sigining in)
3. error on address form

very similar to:
https://github.com/odoo/odoo/pull/130455

Issue:
due to https://github.com/odoo/odoo/pull/118701 public users can't read
`l10n_ar.afip.responsibility.type` anymore

Fix:

open access to the models

opw-3460719

closes odoo/odoo#134226

X-original-commit: dc3a2be108989343ac62d6c42a064b1b39586bbf
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Mohamed Megahed Abbas Megahed SALLAM (mome) <mome@odoo.com>
2023-09-05 14:44:14 +00:00