Commit Graph
147686 Commits
Author SHA1 Message Date
Rémy Voet (ryv) a72f19b66e [REF] mrp: remove confirm_no_consumption field
The `confirm_no_consumption` field was useless
(can be replace by a other condition). Also
it was compute in a slow computation method
which should't not use in batch (not ready for now)

See odoo/upgrade#2792

closes odoo/odoo#75827

Signed-off-by: Tiffany Chang <tic@odoo.com>
2021-09-01 16:23:00 +00:00
William Henrotin d9f45ba694 [IMP] product,stock{_picking_batch}: product labels revamp
This commit removes the pdf and zpl reports for product templates and
variants. Instead, labels are printed via a new wizard allowing to
specify the label quantity, format and optional text.

There are a bunch of usual retail label sizes in pdf or zpl code

Task : 2501730

closes odoo/odoo#69690

Related: odoo/enterprise#20246
Related: odoo/upgrade#2542
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-09-01 15:01:48 +00:00
Kevin Baptiste d73c2b7db2 [IMP] hr_timesheet: add timesheet entries report on project
- Add the "Timesheet Entries" report on project.project

TaskID: 2615316
Related: odoo/enterprise#20426
Related: odoo/upgrade#2773
2021-09-01 14:22:38 +02:00
Kevin Baptiste d9e47e23ef [IMP] project: UX improvements
- Align colors of Project Update bubble's to kanban colors
- Allow Project User to manage Project Updates

TaskID: 2615316
Related: odoo/enterprise#20426
Related: odoo/upgrade#2773
2021-09-01 14:22:38 +02:00
Lucas Perais (lpe) 33476a4888 [FIX] web, mail: remove unnecessary console.log
Following commit 118ddcace0.
a few console.log escaped the attention of the reviewer.

This commit removes them.

closes odoo/odoo#75832

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2021-09-01 11:05:50 +00:00
Parth GajjarandKishan Gajjar 6e67c17538 [ADD] payment_mollie: added mollie payment acquirer
closes odoo/odoo#74136

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
Co-authored-by: Kishan Gajjar <kig@droggol.com>
2021-09-01 11:05:44 +00:00
Parth Gajjar 772a9ba41b [CLA] signs the CLA for pga-odoo
Part-of: odoo/odoo#74136
2021-09-01 11:05:43 +00:00
clesgow 79804719fe [FIX] stock_account: product_category_form inherit
Directly inheriting stock.product_category_form_view_inherit would raise
an error as group "account_property" wouldn't yet exist in the inherited
record.

Fixes 61d937f7d6

closes odoo/odoo#75822

Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-09-01 09:38:58 +00:00
Katherine Zaoral 3654addf5c [IMP] l10n_cl, l10n_latam_invoice_document: move field
move l10n_latam_document_type_id_code field definition to latam module
in order to be re used by another latam localizations

closes odoo/odoo#75764

Related: odoo/enterprise#20513
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-01 09:38:51 +00:00
Joseph Caburnay 1c89dd9093 [FIX] point_of_sale,pos_sale: missing context and styles
After merging https://github.com/odoo/odoo/pull/75322, orderManagement
context and order-management-screen styles were removed by which
pos_sale was dependent. Because of this, settling quotations in pos_sale
doesn't work. We restore the needed context and styles in this commit.

closes odoo/odoo#75809

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-09-01 08:26:10 +00:00
Samuel Degueldre e060539e77 [FIX] base: avoid crashing when removing empty list from bundle
Previously, having a remove directive in a bundle that didn't match any
file of that bundle's type would raise an error, saying that the path
we're attempting to remove could not be located in the current bundle.

This basically breaks the remove directive inside of xml/js-css hybrid
bundles, because getting the assets path in xml-mode will cause all
remove directives that only target css/js files to fail and vice versa.

This commit fixes that by only raising an error when there were files
that match the extensions currently enabled, and those files were not
found in the bundle.

closes odoo/odoo#75790

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-09-01 08:26:06 +00:00
Romeo Fragomeli 36495ef59d [IMP] web: Add zoom on employee avatar
This commit enables the zoom on mobile.

To avoid any issue in website, we first only activate it in the backend.
Note that it's not, strictly speaking, a zoom. It only shows the
original size of the picture.

Steps to reproduce:
* Open Employee
* Select an employee
* Touch on the photos

closes odoo/odoo#75785

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2021-09-01 07:17:55 +00:00
Nathan Marotte (nama) 0e7b58a439 [FIX] sale_timesheet : not finding invoice when reversing with period
Issue: When reversing an invoice of timesheet and selecting a time
period, there is an user error saying there is nothing to invoice

Steps to reproduce :
 1) Create a SO with a timesheetable service
 2) Deliver some hours
 3) Invoice them
 4) Confirm the invoice, then add credit note, confirm
 5) Invoice the same hours again (the sales order indeed says 0 hours
 invoiced)
 -> There is nothing to invoice

Why is that a bug:
 When creating the invoice in `sale_make_invoice_advance`, if there is
 a period selected, we are going to search with a domain to only count
 the quantity that have not been invoiced, this is done by checking that
 either the invoice_line_ids are not set, or that they are cancelled
 but when reversing an invoice, the state is posted, so we need a better
 domain to take that in consideration

opw-2525655

closes odoo/odoo#75760

X-original-commit: 269a5da4f505998a46d834176beda4f000835175
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-01 07:17:49 +00:00
William Braeckman e0a6e75ea6 [FIX] web: fix some minor css problems
This commit fixes some minor css problems related to the
many2many_avatar_user widget.

Task-2398734

closes odoo/odoo#74087

Related: odoo/enterprise#19780
Related: odoo/upgrade#2723
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-09-01 07:17:40 +00:00
William Braeckman 7563b448da [IMP] project: add personal task stages and multiple assignments
Adds personal stages to tasks.
Users assigned to tasks will be able to have their own pipeline to
handle their tasks independently of the project's pipeline.

The assignee field on Tasks has also been changed to a Many2many to
support multiple assignees on one task.

The same table is used to store those information, essentially a triplet
(task, user, stage), to ensure that:
1) personal stages only apply to tasks to which you are assigned to.
2) synchronizing to make sure that you don't have a personal stage for a
   task on which you are not assigned anymore.

Alongside those changes, some minor changes have also been made:
- Modified the task's tree view.
- Renamed the Tasks menu to 'My Tasks'.
- The default view is now the kanban view for the 'My Tasks' action.
- project_id is not required anymore, tasks with no project are
  considered 'private', those tasks are only visible to those that are
  assigned to it.
- Added tracking of both user_ids and depend_on_ids in the chatter.

Closes odoo/odoo#74087

Task ID: 2398734
2021-09-01 07:17:40 +00:00
Bruno Boi 65f7de37df [FIX] web: keep context on form dialog save&new by default
ISSUE ADDRESSED
- Open Project > Tasks > Gantt view
- Click the ADD button to open the form dialog
- Fill the form and click on SAVE&NEW button
- Fill again the form and click on SAVE&CLOSE button
- Both tasks are created, but only the first has been planned, because the second one has lost a part of the context (plan dates...)

BEFORE
Opening a form view dialog without passing a _createContext method (see commit c14b17c485 where it was introduced) was still passing an empty object additionalContext argument when save&new was hit.
This was leading to not take into account the full context (see BasicModel._getContext).

AFTER
If no _createContext method is passed to a form view dialog, then no empty object additionalContext is passed to evaluate the context, resulting in the full context being used.

closes odoo/odoo#75807

X-original-commit: 3fe5961988220b2864db005ae9d79474de608fc5
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Signed-off-by: Bruno Boi <brboi@users.noreply.github.com>
2021-08-31 23:35:46 +00:00
Martin Trigaux 4da0e06034 [ADD] transifex: add contribute button on the edition of xml_translate fields
When modifying a view, it's useful to go directly to transifex

closes odoo/odoo#75804

X-original-commit: 8a5db8d160fee7aa38a18f8c3f3cc1490b1f551e
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-31 23:35:41 +00:00
Sébastien Mottet (oms) 2f54d2ad3b [IMP] website: put emphasis on recommended palette selection
Add a button for the selection of the recommended palette. Clicking
on the generated palette to select it doesn't seem to be directly
understood by the user. This button is here to grab its attention
and avoid the confusion.

task-2602521

closes odoo/odoo#75647

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-31 23:35:36 +00:00
William Braeckman a3980aec99 [IMP] hr: remove personal documents tab
The personal documents tab on the employee form view is removed in favor
of the chatter + documents app to hold and manage documents.
The fields are kept because the salary configurator needs fields to bind
to be able to still request documents. This might change in the future.

Closes odoo/odoo#75506

Task ID: 2628750

Related: odoo/enterprise#20420
Related: odoo/upgrade#2769
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-31 23:35:21 +00:00
Quentin Wolfs 50addeeef6 [FIX] stock: revert description_pickingin/out fields as text
This was changed in Task-2499504
The problem here is that those fields are related to business logic and
therefore cannot just be used as an Html() field.

Task-2428819

closes odoo/odoo#74364

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-08-31 23:35:17 +00:00
Quentin Wolfs 45afa9243b [IMP] hr_expense: set expense demo products as services
Set expense demo products as 'service' instead of 'consumables' so they
are not shown anymore in inventory products.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:17 +00:00
Quentin Wolfs fd78d36fbe [IMP] stock: clarify state badge colors
Colors are not clear enought, draft should be in grey.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:17 +00:00
Quentin Wolfs 61d937f7d6 [IMP] stock: regroup info in product_category form
The 'Logistics' and 'Inventory Valuation' blocs should be regrouped into
two columns on the product_category form

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:17 +00:00
Quentin Wolfs 7dc09981de [IMP] stock: hide product category in on-hand quantity view
The product category is not relevant here and needs to be hidden by
default (Can still be selected on the right).

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:16 +00:00
Quentin Wolfs a9ba716510 [IMP] purchase: display proper state for PO in error
The raised error currently displays the internal state (e.g. 'purchase'
instead of 'Purchase Order') and therefore is not translated.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:16 +00:00
Quentin Wolfs aa7e396474 [IMP] stock: QoL change on production.lot form
When in the production.lot form, creating a product on the fly should
set tracking by lot by default.
Also, duplicates shoud create different lot/serial number as this would
immediately raise an error.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:16 +00:00
Quentin Wolfs b2088069cd [IMP] stock: cannot select view location as destination
Do not allow to select views as destination or source location in a
picking.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:15 +00:00
Quentin Wolfs 70ce14e798 [IMP] stock: group_by WH when multiple WH
The inventory overview should use the 'warehouse' group_by as long as
the 'storage locations' setting is on.

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:15 +00:00
Quentin Wolfs 6f54faa5af [IMP] stock: hide info in immediate transfer
In case of an immediate transfer:
- Hide the reserved column in picking form
- Hide the initial demand in the lot picking form
As both make no sense in this case

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:15 +00:00
Quentin Wolfs 782e50da89 [FIX] stock: uneccessary lot selection in picking
lot selection form was available in picking form when the product wasn't
tracked when it should have been hidden

Task-2428819

Part-of: odoo/odoo#74364
2021-08-31 23:35:15 +00:00
Odoo's Mergebot 551bdae463 [MERGE] survey: add average duration and clean demo data definition
Purpose is to clearly separate various available demo surveys, their user
inputs and input lines. It is easier to update and maintain those demo
data in several files than hidden in big files or CSV files. No change
should occur with this commit as this is only some data manipulation.

We also quickly cleanup some demo data in this commit. Notably

  * remove unnecessary user inputs;
  * improve passed / succeeded statistics by improving or adding right
    answers;
  * fix some typos;

Average duration of each survey is added. To avoid performance issues value
is not stored, and calculated with raw SQL. It requires to have an end
datetime on survey user inputs, allowing to compute average duration it
took people to complete survey.

Live surveys now open in a new tab instead of in-place.

Also rename some css / scss files to ease understanding. Remove unnecessary
class on survey form view.

Task-2634805

closes odoo/odoo#72298

Related: odoo/enterprise#19082
Related: odoo/upgrade#2624
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-01 01:34:56 +02:00
52fedc8e91 [IMP] survey: add average duration on survey
Average duration of each survey is added. To avoid performance issues value
is not stored, and calculated with raw SQL. It requires to have an end
datetime on survey user inputs, allowing to compute average duration it
took people to complete survey.

Live surveys now open in a new tab instead of in-place.

Also rename some css / scss files to ease understanding. Remove unnecessary
class on survey form view.

Task-2634805
PR odoo#72298

Part-of: odoo/odoo#72298
Co-authored-by: David Beguin <dbe@odoo.com>
Co-authored-by: Mariska Archielli <ram@odoo.com>
Co-authored-by: Thibault Delavallee <tde@odoo.com>
2021-08-31 23:34:55 +00:00
Thibault Delavallée 18b555bbf8 [IMP] survey: reorganize (and fix) demo data
Purpose is to clearly separate various available demo surveys, their user
inputs and input lines. It is easier to update and maintain those demo
data in several files than hidden in big files or CSV files. No change
should occur with this commit as this is only some data manipulation.

We also quickly cleanup some demo data in this commit. Notably

  * remove unnecessary user inputs;
  * improve passed / succeeded statistics by improving or adding right
    answers;
  * fix some typos;

Task-2634805
PR odoo/odoo#72298
2021-08-31 23:34:54 +00:00
ramandDavid Beguin 3d72a6a4d2 [FIX][IMP] web: fix ribbon CSS to allow its use on kanban
Adapt css to allow a nice display of ribbon widget on kanban.

Task-2634805
PR odoo/odoo#72298

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Mariska Archielli <ram@odoo.com>
2021-08-31 23:34:54 +00:00
ramandDavid Beguin 740f981088 [IMP] web: allow kanban to pass xml attributes
The kanban view allows to instantiate widgets but not to give attributes as
options. Fine tuning some widgets require to be able to control them directly
from XML declaration using options and attributes.

Task-2634805
PR odoo/odoo#72298

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Mariska Archielli <ram@odoo.com>
2021-08-31 23:34:54 +00:00
jpr-odoo 98857a72d1 [IMP] website_sale: show breadcrumb with current category selected
Show breadcrumb on the shop page if eCommerce Categories are enabled or not
enabled on the left, and there is one category selected visible in the URL.

task-2488865

closes odoo/odoo#72149

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-08-31 23:34:40 +00:00
jdoutreloux a8e6b57fef [IMP] resource,web : modifies the timezone_mismatch widget
This modifies the widget to allow a title option.

Task-2352428
Closes #67021

Related: odoo/upgrade#2223
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-08-31 19:54:19 +00:00
jdoutrelouxandLaurent Stukkens 96ff372034 [IMP] project_timesheet_holidays : generate timesheet entries for global time off
Generate timesheet entries for each employee when a  global time off is created
if module_project_timesheet_holidays is true.

This only impacts the employees with the corresponding resource calendar
The entries are linked to the project and task set in the settings.

The number of hours timesheeted corresponds to the timeframe during which both the global time off
and the working hours of the employee overlap (same behavior as for regular time off).

If the global time off is modified or deleted, the timesheet entry is adapted accordingly.

Task-2352428
Closes #67021

Co-authored-by: Laurent Stukkens (LTU) <ltu@odoo.com>
Co-authored-by: jdoutreloux <jud@odoo.com>
2021-08-31 19:54:18 +00:00
Romain Derie 34ea4030b1 [FIX] web_editor: restore linked date field edition
4eafd78847 was not correctly adapted with new editor.
The `removeClass` and the css for that class was left in the code but the code
in charge of adding that class was just removed, breaking the behavior.

closes odoo/odoo#75786

X-original-commit: e59f91d74ad07430a4942efeeb479a538993c918
Signed-off-by: Antoine Guenet <Zinston@users.noreply.github.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-08-31 18:48:54 +00:00
Joseph Caburnay 92e70b8392 [IMP] point_of_sale,pos_*: refund orders thru POS UI
* Perform refunds in the POS UI.
* Select orderlines and quantity to refund.
* Add refund orderlines in the active order.

closes odoo/odoo#75322

Task-id: 2481561
Related: odoo/enterprise#20358
Related: odoo/upgrade#2753
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-31 17:11:56 +00:00
Joseph Caburnay a2ff6d5383 [IMP] point_of_sale,pos_*: combine ticket and management screens
We are referring to TicketScreen and OrderManagementScreen.
The two screens almost serves the same purpose. There is not much reason
to keep them separate. We combine the two in this commit. Basically,
we remove OrderManagementScreen and its components. Some are kept and
moved to the TicketScreen.

Task-id: 2481404
Part-of: odoo/odoo#75322
2021-08-31 17:11:56 +00:00
Joseph Caburnay 2c78ed1b27 [FIX] point_of_sale: negative accumulated bank payment
Revert the outstanding and destination accounts when the accumulated
bank payment amount is negative. We do this because account.payment
model doesn't accept negative amount.

Part-of: odoo/odoo#75322
2021-08-31 17:11:56 +00:00
std-odoo 4b3d75437b [FIX] mail: message_notify use the model and res_id arguments
Bug
===
The arguments model and res_id were declared on the method but never
used. This method was supposed to be callable from the model and not
from the records with those 2 parameters.

Make this possible.

Task-2599676

closes odoo/odoo#75779

X-original-commit: 07dbd96b3736efe84b670a7b4d45dd6cd07b14f9
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-31 12:43:58 +00:00
William Braeckman b74960f571 [IMP] project: hide dependency change subtype if option is disabled
A recent commit allows mail subtypes to be hidden depending on the
record fields. This allows us to hide the dependency changed subtype if
the option is disabled.

Closes odoo/odoo#75749

Task-2628818

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-31 12:43:54 +00:00
qsm-odoo 014446f84b [FIX] web_editor, website: combine dataset "image" and "img" keys
Commit [1] introduced a new "image" option instead of fixing the "img"
option which already existed. Also it created a <img> tag with a "fa-fw"
class which does not make much sense. Also, our system with data-img
actually creates a <svg> tag so that the color of the icon is the one
decided in our SCSS instead of the one hardcoded in the image and so
that there is an hover effect.

[1]: https://github.com/odoo/odoo/commit/02ccad3200187724d5f133842032981fb91f7465

closes odoo/odoo#75743

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-31 10:01:20 +00:00
Jacky (trj) 5bb8b9de6f [FIX] point_of_sale: info button on empty orderline
Behavior before the commit: when clicking on the info button from the control buttons, if no orderline was selected, a traceback error happened.

After the commit: nothing happens when clicking on the product info button when there's no orderline.

Related task id: 2518884

closes odoo/odoo#75728

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-31 10:01:16 +00:00
Jacky (trj) 4e31e49c99 [FIX] point_of_sale: info button on product item is now clickable in mobile
Behavior before the commit: the product information popup could not be called by clicking on the info button from the product item in mobile version. This happens because of the border in the `active` css state of the product item. When clicked, the product item has a 50px border which hides the info button for a micro second.

After the commit: Product information popup can now be called from the product item.

Related task id: 2518884

Part-of: odoo/odoo#75728
2021-08-31 10:01:15 +00:00
Arnaud Joset 1f5c0fdc25 [FIX] google_calendar,microsoft_calendar: hide sync buttons on non calendae views
Before this commit, the sync buttons refactored in https://github.com/odoo/odoo/pull/68700 would appears in all calendar views (sale,time-off,...).
This commit only displays them in the calendar event view.

closes odoo/odoo#75702

Taskid: 2633415
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-31 10:01:10 +00:00
JF Aubert 1016bb25b5 [IMP] mrp: Improve MRP Planning features
Review Work Order pop up design:
- add mo reference and Components tab at first
Manufacturing Readiness:
- set 'When all components are available' as default

closes odoo/odoo#75675

Task: 2527408
Related: odoo/enterprise#20515
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-08-31 10:01:03 +00:00
bbh-odoo 2fb887225d [IMP] hr_timesheet: improved access rights
before this commit:
The approver can access all timesheets which is not coherent.

after this commit:
improved the labelling of the timesheet app's roles, modified the menu according
to role of User.Aprrover now can access his own timesheets only by click only
available option  'My timesheets'.

TaskID - 2531321

closes odoo/odoo#74242

Related: odoo/enterprise#19858
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-31 10:00:50 +00:00