Commit Graph
144794 Commits
Author SHA1 Message Date
Jérémy Hennecart fe46a4e8d3 [FIX] crm: check if attendees are present
Check if the attendees are correctly present. We replace
assertEqual by assertIn to be sure that the order of the
attendee doesn't have an impact on the test

task-2287846
COM PR: odoo/odoo#69484
ENT PR: odoo/enterprise#17792

Related: odoo/upgrade#2401
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-02 00:43:09 +00:00
Jérémy Hennecart 630a1ab27e [IMP] calendar: add alias to js calendar view
Add alias calendar controller, model and renderer to access them
in the appointment app.

task-2287846
COM PR: odoo/odoo#69484
ENT PR: odoo/enterprise#17792
UPG PR: odoo/upgrade#2401
2021-09-02 00:43:09 +00:00
harsh 4f4bfe2c9c [IMP] account,website_sale: improve the UX of terms and conditions
Purpose of the task is, to use our awesome website builder instead of
pad when creating a website page for terms & condition.
Also suggest default T&C to save user time when user enable the feature

So in this commit did the below changes:
 * Added new indicational text below "Terms as note" & "Terms as web page"
 * After enabling "Term as web page', user should be able to see the
term page url
 * For Terms editing:
   - User that have 'website' or 'ecommerce' module should edit the page
directly using the website builder with link "edit in website builder" link.
   - User that don't have nor website not ecommerce module should update
the text in the pad but in a pop-up window.
 * Also added the dynamic default term for company when term type is html.

PS: changed website_sale pre_init_hook to post_init_hook because
invoice_terms_html is compute field which depends on term_type so
when term_type is changed from init_hook it will give the key error
for the invoice_terms_html as it's not loaded to registry.

closes odoo/odoo#68225

Taskid: 2414659
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-09-01 22:03:58 +00:00
John (jol) 0a9b42252f [IMP] l10n_lu: add codes to tax report lines
closes odoo/odoo#73382

Task: 2198395
Related: odoo/enterprise#19502
Related: odoo/upgrade#2640
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-01 20:57:07 +00:00
jbw 5ad660877f [IMP] account: Improve reconciliation Models usability
This task aims to both explain supported reconciliation cases and improve the reconciliation model form view.
The form improvement is mainly about label wording and make the options more self speaking.

Also, disable bypass of the matching amount we do in case the statement line's label exactly matches the payment reference.
It can be replaced by just making a final model that is applied whatever the amount and will do the partial reconciliation on everything that wasn't matched by others.
That's cleaner, as users can way more predict what models can do and debug their config.

closes odoo/odoo#73043

Task: 2427089
Related: odoo/upgrade#2729
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-09-01 20:57:00 +00:00
Arnold Moyaux 04f3cac527 [IMP] stock, mrp: computed picking type on stock.move.line
Easier to access and avoid overwrite in function to check picking type
on manufacturing order

closes odoo/odoo#75691

Enterprise-pr: https://github.com/odoo/enterprise/pull/20102
Related: odoo/enterprise#20102
Related: odoo/upgrade#2785
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-09-01 19:08:06 +00:00
41f7c7bc64 [IMP] website(_sale): filter products by price with custom range input
When browsing the eCommerce part of the website, customers
should be able to filter shop products based on base sale price.

Desired behavior after PR is merged:
The filter slider can be enabled through the customize menu and it only
filters using the product's base price (for performance reason) and takes
into account currency conversions, not pricelists and discounts. It uses a
custom-built library for the range input with 2 cursors (min. price and max. price).

The slider is hidden when all products shown on the current page
 (category, etc.) have the same price (or there is only one product).

A more advanced version of this implementation would enable the filtering to
take more factors into account.

task-2603014

closes odoo/odoo#74575

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Co-authored-by: fja-odoo <fja@odoo.com>
Co-authored-by: Kamen Zhekov <kzh@odoo.com>
Co-authored-by: Romain Derie <rde@odoo.com>
2021-09-01 19:07:55 +00:00
std-odoo 322ed33d42 [IMP] mail_group: improve the UI and misc improvements
Purpose
=======
This commit improves the UI of the mail group module (backend and portal
view), fix some bugs and clean the code.

Bug 1
=====
If a user click 2 times on a confirmation link, an error is raised.

Bug 2
=====
A bug about the website snippets has been fixed;
- Add the snippet to a group in which you are member
- Change the group of the snippet to a group in which you are not member
- The snippet still show "Unsubscribe"

Bug 3
=====
In the portal view, when messages are filtered by month, messages which
are created in the last day of the month appear also in the next month.

Specification
=============
UI
--
Show the Allow / Ban buttons whatever is the state of the message, so
the user can ban / whitelist a message even if there's no pending email.

When we receive an email, remove the "Mailing List" footer. This was a
big issue because when some users reply many times, the footer was
duplicated on each answer.

Improve the form view of the mail group:
- On non-moderated group, show all messages instead of only pending
  message
- Show the guidelines stuff on non-moderated groups

Improve the portal view
- show the attachments under every message (not only on opened message)
- improve the template to confirm the subscription of the user
- improve the portal view for mobile device
- do not show rejected messages, even for admin
- do not show the button "X replies" when the mode is not thread

Technical
---------
Split the route "/groups/subscription" into "/group/subscribe" and
"/group/unsubscribe"

Correctly quote the parent email for the emails sent by web version of
Outlook (with the HTML id "divRplyFwdMsg").

ACLs
----
Now only administrators or responsible / moderators can write / unlink
the group.

Fix an ACL issue on the group member where the responsible of a
non-moderated group could not access the members of the group.

Members with same email
-----------------------

Improve the behavior when multiple members have the same email address
(this situation is possible because there's no unique constraint on the
email field of the <res.partner> model.) We now return the most
appropriate member for the given email address and partner.

When unsubscribing by clicking on the confirmation link that we received
by email, remove all members with the same email address.

Links
=====
Task-2599676
See odoo/odoo/pull/73640

closes odoo/odoo#73640

Related: odoo/upgrade#2774
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-01 19:07:48 +00:00
Sébastien Geelen (sge) 2cc16507fd [REV] web_editor: change link shortcut to ctrl+K
This reverts commit 0371fe2b9e54ff557265a8f8fc919d351ed6a7d5.

task-2635043

closes odoo/odoo#75842

X-original-commit: d37a807cd0000bf3aa0fd150b5924a06de31145f
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Sébastien Geelen <sebgeelen@users.noreply.github.com>
2021-09-01 16:23:11 +00:00
stefanorigano (SRI) 7d11b5fcd0 [IMP] website: configurator, handle svg preview text readability
Handle text and other components readability when placed over a colored
background. Both the element and the underlying bg must use the same
color, eg [fill="#FFF"].

closes odoo/odoo#75834

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-01 16:23:07 +00:00
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
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