Commit Graph
129077 Commits
Author SHA1 Message Date
Arnaud Baes dbafe14735 [IMP] stock: hide columns on picking type tree view 2019-08-14 12:27:04 +00:00
Arnaud Baes 062ad598bf [IMP] stock: default sequence for picking types 2019-08-14 12:27:04 +00:00
Arnaud Baes 9410e0ce00 [MOV] stock, stock_barcode: barcode fields in views 2019-08-14 12:27:04 +00:00
Arnaud Baes fcce6a2f82 [REF] stock, mrp: codes on picking type 2019-08-14 12:27:04 +00:00
Arnaud Baes 4e66eac9a4 [IMP] stock: default adress on warehouses 2019-08-14 12:27:04 +00:00
Arnaud Baes 0ac4f8f20a [IMP] stock, mrp: empty views on stock_move_line 2019-08-14 12:27:04 +00:00
Arnaud Baes 0690b7829a [REF] stock: empty views on pickings 2019-08-14 12:27:04 +00:00
Robot Odoo e88fe6f380 [IMP] product: pricelist flow
Pricelist flow isn't quite intuitive in its current state (and certainly not clean in a technical point of view).

# Improvements
1. Price Rules are opened in independent view from the product/product template.
2. Price rules of a product are still accessible in advanced pricelist mode.
* From a product.template : You see the rules on this product and on its variants
* From a product.product : You see the rules on the variant and on its template
3. UI refactorings

## Other changes
* Don't create a rule for all pricelist by default.  If no rule is defined on a pricelist for a given product, it takes the sales price by default.
* Technical : multiple overly complicated pricelist settings are removed.

[Task 34788](https://www.odoo.com/web?#id=34788&action=333&active_id=1725&model=project.task&view_type=form&menu_id=4720)

closes odoo/odoo#35432

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-16 09:12:49 +02:00
Victor Feyens 7d8df4bec1 [IMP][REF] product,sale,p_o_s: pricelist usability refactoring
Manage pricelists through a common configuration between sale and point_of_sale
Remove lots of technical fields

Improved Pricelist Flow
-----------------------

if pricelists enabled (product.group_product_pricelist), two modes are proposed:
* basic(default): pricelists enabled, but only with basic rules
* advanced: pricelists enabled, but with advanced rules (product.group_sale_pricelist)

When pricelists are enabled, we can always access them through the menu OR access their product-targeted rules from the products/templates views.
2019-08-14 14:03:23 +00:00
Victor Feyens 852f02ba14 [REM] product: default pricelist item
When creating a new pricelist, don't fill it with a default global rule.
When a pricelist has no rule for a given product, fall back to Sales Price.
2019-08-14 13:39:11 +00:00
Victor Feyens 4e5b950741 [FIX] product: pricelist item cannot be without a pricelist ref 2019-08-14 13:39:11 +00:00
Antoine Vandevenne (anv) fb83017d79 [IMP] sale: add a settings section to display sale connectors
Prior to this commit, sale connectors (sale_amazon, sale_ebay, ...) had no dedicated section in sale's settings. If merged, this commit will allow to install such connectors in one click from the settings of the sale module.

task-19575

closes odoo/odoo#35120

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-14 11:48:21 +00:00
mgh-odoo 737746c05c [IMP] im_livechat: allow visitors to get a transcript of their live chat
after this commit user can get a copy of the conversation with operator

task-2029660
closes #34620

closes odoo/odoo#35083

Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-08-14 12:25:12 +00:00
wan 3d9abe6332 [FIX] account: remove env.company_id in wizard_tax_adjustments
The field company_id is not on environment since https://github.com/odoo/odoo/commit/a5b6f31cf28e5381e1c85f66730bcdb55998e643
We should use company instead

closes odoo/odoo#35554

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-08-14 09:49:56 +00:00
Christophe Simonis 7fea618b25 [FIX] web: correct test
Oversight of previous forward-port.
2019-08-14 17:42:38 +02:00
Christophe Simonis 140ee6b8f0 [MERGE] forward port branch saas-12.4 up to 98a55917a6 2019-08-14 16:48:10 +02:00
jbm-odoo 839696d2d7 [IMP] settings: Fix Improve general UX (back2basics)
closes odoo/odoo#35710

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-14 08:42:51 +00:00
Damien Bouvy 1dac1faaff [FIX] sale_stock: forgotten field after 0cc30bf08
`confirmation_date` => `date_order`

closes odoo/odoo#35708

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-14 12:05:26 +00:00
Jeremy Kersten 1067767e2a [FIX] website_sale: rename date_order/date
Before this commit it was no more possible to access website menu once
ecommerce installed, because the dashboard crashes with an
"Invalid field 'date_order' in leaf".
2019-08-14 12:05:12 +00:00
Lucas Lefèvreandjbm-odoo 14bb91e9ae [FIX] mail: only show suggested partners once
In the chatter composer, suggested partners were shown more than
necessary.

1. Create a new partner;
2. Open the chatter composer to send a message
(the new partner is suggested as a recipient);
3. Re-open the chatter composer
=> the partner is still suggested, but it is already a follower now!

Task-Id 2050102

closes odoo/odoo#35604

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>


Co-authored-by: jbm-odoo <jbm@odoo.com>
2019-08-14 12:11:18 +00:00
Hetashree Chauhan 59f838d5b1 [IMP] web: Show all kanban records of same size
task-2042304
closes - https://github.com/odoo/odoo/pull/35482

closes odoo/odoo#35482

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-14 12:13:27 +00:00
Hetashree Chauhan cdc8bf4bb1 [IMP] mrp, maintenance: back to basics
Modify tree view for MRP Production
Modify form view and tree view for Unbuild orders
Add group by for Bill of Materials
By default show line shart when opening MRP Production report
Modify view for Work Orders
Modify view for Work Centers
Modify view for Routings
Modify view for Maintenance Request
Modify view for Bill of Materials

task-2042304
closes - https://github.com/odoo/odoo/pull/35482
2019-08-14 12:13:27 +00:00
Victor Feyens 699a4614ef [FIX] purchase(_product_matrix): no_variant attributes
Display no variant infos in the purchase order line description.

closes odoo/odoo#35717

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-14 10:23:38 +00:00
wan 98a55917a6 [FIX] account: expand by default account move lines tree view
The commit https://github.com/odoo/odoo/commit/c429c0e0bd1208694623d5567682c43f9f0e51b7 removed context keys that were used to expand the view in some cases here: https://github.com/odoo/odoo/blob/c429c0e0bd1208694623d5567682c43f9f0e51b7/addons/account/views/account_move_views.xml#L162. This commit adds a new context key, clearer than the previous one.
Also, the commit https://github.com/odoo/odoo/commit/bc131c0cfb51c953de8ec41fb820c8c7831eefb5 duplicated some actions. We remove them here too.

closes odoo/odoo#35653

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-14 08:04:15 +00:00
Sébastien Theys 64008bdcab [FIX] sale_product_matrix: fix traceback with no_variants attributes
To reproduce the issue:
- configure a product with no_variant attributes
- select "grid" mode
- add this product to a sales order
- fill the grid
- confirm

-> Traceback

closes odoo/odoo#35701

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-13 16:36:58 +00:00
fleodoo 8858a98b68 [IMP] hr_recruitment: open voip on mobile phone number click
Task-Id: 1913470

closes odoo/odoo#30754

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-08-14 09:43:44 +00:00
Josse Colpaert f8d4bf4499 [IMP] account, l10n_xx: change CoA loading methods
Before, we only had a public method that installed
the CoA for the current active company.

With the multi-company changes, it was not
possible anymore to install a module with a
demo company and then have the CoA installed
in that demo company correctly.

We changed that public method to be able to
put an extra optional parameter and shortened
its name to try_loading instead of
try_loading_for_current_company.  The method that
it calls when there is no chart installed
is made private and renamed to _load.

closes odoo/odoo#35703

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-14 08:42:27 +00:00
William Henrotin 275dcfa412 [FIX] mrp: successively plan/unplan the same mo
Introduces by #0679d0d54269ffe0664845e8e0bd1238110fd514 when you plan a
workorder, the corresponding workcenter will reserve a leave to avoid to
plan an another workorder in the same time slot.
But before this commit, when you unplan your workorder, the leave wasn't
unlinked, so the time slot stay reserved.
Now when a workorder is unlinked, its leave is too.

closes odoo/odoo#35003

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-14 08:44:52 +00:00
svs-odooandWhenrow 2a2c27fa45 [IMP] mrp, sale_mrp: planned date on MO
The purpose of this commit is to simplify the `mrp.production` model in
reducing the number of date field.

The following fields was kept:
    - `date_planned_start`: the planned date for the beginning of the MO
    - `date_planned_finished`: the planned date for the ending of the MO
    - `date_start_wo`: the preferred date to start a Work Order in case
      the MO will plan one.
    - `date_deadline`: is only indicative and is automatically set when
      the manufacturing order is needed for a sale order.
    - `date_start` and `date_finished`: no changes.

Task #1935229

Co-authored-by: Whenrow <whe@odoo.com>
2019-08-14 08:44:52 +00:00
svs-odoo 629e8da14f [REF] mrp: remove duplication in mrp product
The method `action_view_mos` was written two times just for a difference
in the action's context.
2019-08-14 08:44:52 +00:00
Robot Odoo e9dbf45b3b [IMP] pos, hw_drivers, hw_posbox_homepage: Six terminals
Add support for Six payment terminals.

TaskId: 1932416

Linked to odoo/enterprise#4435

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#33673

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-14 11:27:10 +02:00
Robot Odoo 4cb1825d6a [IMP] payment*: payment acquirer UX
Simplify payment acquirer configuration.
Mostly screen changes, except the combination of website published/test mode in a single state button (disabled/test/enabled);
Rename ogone to ingenico in UI.
Slight changes in the message configurations.

Task 1832899

closes odoo/odoo#29064

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-14 10:24:00 +02:00
Antoine Prieels 5ba6237931 [IMP] point_of_sale: Receipt assets in backend
We will need to print Balance receipts for payment terminals  from
Odoo's backend. The CSS and libraries need to be available there too.

TaskID: 1932416
2019-08-13 16:57:39 +02:00
Gert Pellin 2f6b2da914 [IMP] point_of_sale: Warning no chart of account
Point of sale config have multiple fields that depends on the accounting
localisation, but when you create a new company, the default values for
the journals, accounts, etc are not yet created because there is no
chart of account installed for the company.

So to avoid user that create a pos config to manually create accounting
journals and accounts, we are warning them to install first an
accounting localisation that will create them all necessaries account
and journals.

TASK-ID: 2028954

closes odoo/odoo#35042

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-08-13 13:13:04 +00:00
Sébastien Theys 08f3f3dffb [IMP] website_sale: speed up loading of attributes on shop
For 10000 templates, of which around 1000 have variants, with 100 existing
attributes and 20 values for each:

- Displaying the /shop page takes 0.55s before the commit and 0.49s after.
That's a 60ms again, around 10% faster.
- The number of queries goes from 113 to 106.
- The specific line that is changed goes from 6.3% total request time down to
2.77%, so the line becomes 2.3 times faster.

closes odoo/odoo#34213

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-08-13 16:55:45 +00:00
Robot Odoo 1856b895cb Barcode scanners as IoT Devices
This PR is linked to: odoo/enterprise#4913

We updated the hw_scanner module to transform it into an IoT Driver. Since barcode scanners work the same way than keyboards, we will use a single Driver for both of them.

Here are the different changes that are introduced :
- Move all the js code that is related to barcode readers to a separate file for clarity.
- Move KeyboardUSBDriver to Community. Barcode scanners should be available in Community.
- Remove hw_scanner. We use the same route in the new driver (for Community) so backward compatibility is ensured. In Enterprise, we now use the longpolling to read the barcodes.
- Send real characters instead of the key's name. For example, we now send '_' instead of 'UNDERSCORE'.
- Add the possibility to select the keyboard/scanner layout from the IoT Device form view. An action is called on the IoT Box.
- Add support for modifiers: Shift, Ctrl, Shift Lock, Num Lock...

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#35084

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-13 18:55:23 +02:00
Martin Trigaux 43d355c208 [IMP] base: better default for translation overwrite
FP request: hide the field from the view as too technical
MAT analysis: it should be true by default as most expected behaviour
(it was the reason why it was displayed in the first place)

closes odoo/odoo#35679

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-13 14:21:00 +00:00
Martin Trigaux caa43300f2 [IMP] base: revert c875d02572
Remove the placeholder that was added at task 1921583
Cf fp discussion about task 2028152
2019-08-13 14:12:17 +00:00
Martin Trigaux bdec8efabf [ADD] web: add the language code in the translation widget
The planet icon is not very clear for translation feature.
Replace it with the code of the current language.

Task-id: 2028152
2019-08-13 14:12:17 +00:00
Dhruv Patel 2347b84c66 [IMP] account: improved statement report
- Improved statement report with simpler layout and by adding extra details like bank account, transaction date and long transaction details.
- On validating bank statement, pdf report should be attached to chatter.
- One can view attached pdf report without downloading it from statement itself.

Task: 2029364

closes odoo/odoo#34659

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-13 14:49:58 +00:00
Antoine Prieels 26a5df9507 [IMP] hw_drivers: Save keyboard layout in config file
When a user selects a keyboard layout, we save it to a file. This is
needed to keep the selected layout after a reboot of the box.

TaskID: 1961025
2019-08-13 15:35:38 +02:00
Antoine Prieels e0b4adbc3b [FIX] iot: Kbd Close previous barcode request
In Community, we use a longpolling to get the scanned barcodes in
KeyboardUSBDriver. When refreshing a POS session, a new longpolling is
started but the read_next_barcode function is still waiting and will
still try to send a response to the previous longpolling, even if it is
closed.

If an old process is still waiting when we try to get a new barcode, we
stop it by sending a dummy barcode. We use a lock to be sure that the
new request doesn't read the dummy barcode that it just sent.
2019-08-13 15:35:38 +02:00
Antoine Prieels 728903bd20 [IMP] point_of_sale: KeyboardUSBDriver special characters
Add keysym mapping to the IoTBox config to be used in KeyboardUSBDriver.

The Keysym -> Character mapping provided by Xlib only supports latin-1
encoded characters. For keysyms corresponding to special characters, X11
won't return anything. We provide a Keysym to Unicode mapping for most
of the characters not supported by X11.
2019-08-13 15:35:38 +02:00
Antoine Prieels 4e649a8ca9 [REF] hw_{driver, scanner}: Barcode scanners as IoT Devices
Barcode scanners are now part of KeyboardUSBDriver. We also add
the possibility to change the keyboard/scanner layout from an
action. The list of available layout can be retrieved with a new
route.

`hw_scanner` has been removed. Backward compatibility is ensured
because the name of the route that is now used in community is the
same that was used previously.

TaskID: 1939455
2019-08-13 15:35:38 +02:00
Antoine Prieels 9790c81d5b [IMP] hw_drivers: Move Keyboard driver to Community
The KeyboardUSBDriver will be transformed to integrate barcode
scanners. The barcode scanners will be used in Community so we move the
driver in Community.

TaskID: 1961025
2019-08-13 15:35:38 +02:00
Antoine Prieels 7846c6f3a3 [IMP] point_of_sale: Move barcode scanner code
We put all the code concerning barcode scanners in a separate file, for
more clarity.

TaskID: 1961025
2019-08-13 15:35:38 +02:00
Toufik Ben Jaa 0f6740c80c [FIX] website_sale_digital: invoice_id doesn't exists anymore
- Since commit https://github.com/odoo/odoo/commit/beaa30a3d1843de43a45f419bfbc1bfa7613a920
the object `account.invoice` has been removed.

We now refer to `account.move` when talking about invoices.
In website_sale_digital, a piece of code was still refering to the
field `invoice_id` in `account.move.line` instead of using `move_id`.
- Fixing some missing adaptation after the account refactoring

closes odoo/odoo#35630

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-08-13 11:43:50 +00:00
Christophe Simonis 964f1c2b59 [MERGE] forward port branch saas-12.3 up to 3972e9ea3e 2019-08-13 20:03:07 +02:00
Christophe Simonis 3972e9ea3e [FIX] hr: remove redefined record rule
Actually revert commit 7b1a894573

closes odoo/odoo#35698

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-08-13 14:03:14 +00:00
Nicolas Seinlet 0855f94181 [FIX] website_crm_partner_assign: force date format as format is forced in XML
https://github.com/odoo/odoo/blame/saas-12.3/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml#L674

closes odoo/odoo#35697

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-08-13 14:02:48 +00:00