Commit Graph
129466 Commits
Author SHA1 Message Date
Xavier-Do 48503fcf08 [IMP] core: improve logging in case of subtest failure
closes odoo/odoo#36787

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2019-09-12 13:20:54 +00:00
Naglis Jonaitis dc7a033903 [IMP] *: remove duplicate data files from addon manifests
*: account, google_calendar, website_slides

closes odoo/odoo#36530

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-07 13:39:06 +00:00
niyasraphy 9520935aec [CLA] Add Niyas Raphy CLA
closes odoo/odoo#36657

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-11 13:15:20 +00:00
Xavier-Do 3620656542 [REM] web_diagram: remove unused module
closes odoo/odoo#36638

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-09-10 13:45:26 +00:00
jbm-odoo 514f782a76 [FIX] hr_holidays: Time unit in time off summary
If time off type is in hours, I want to have hours as unit in the summary
(upper my personnal calendar).

closes odoo/odoo#36421

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-04 12:29:52 +00:00
Jinal Patel ca9a733b27 [IMP] web: support oe_read_only and oe_edit_only in x2m list
Before this rev., classNames 'oe_read_only' (only display in
readonly mode) and 'oe_edit_only' (only display in edit mode)
didn't work in x2m lists inside form views (only the cells in the
tbody were hidden, but not the header). This rev. makes this work.

Task 1949618

closes odoo/odoo#36117

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-08-30 10:52:09 +00:00
Xavier Morel 4057227def [FIX] core: compatibility with Werkzeug 0.15 ProxyFix
Werkzeug 0.15 modified ProxyFix such that by default it only forwards
the REMOTE_ADDR when enabled, whereas before 0.15 it would also
forward scheme and host. This breaks proxied odoo as the base url
becomes incorrect (cf #34412).

Use properly configured ProxyFix when running with werkzeug 0.15, old
configuration otherwise.

Closes #35085

closes odoo/odoo#36212

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-08-29 07:06:03 +00:00
Naglis Jonaitis 71b76efca9 [IMP] website_event_questions: remove redundant <data> element
Since this is template extension, the `<data>` element has no effect.

closes odoo/odoo#35425

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-04 11:13:14 +00:00
Martin Trigaux de6b3c97f7 [MERGE] Forward port of saas-12.5 to master up to f6f16f1934
closes odoo/odoo#36086

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-26 13:44:17 +00:00
RomainLibert f6f16f1934 [FIX] mass_mailing: replace customer by customer_rank
Since odoo/odoo@8b7f42ab and odoo/odoo@8766f388 fields customer
and supplier on `res.partner` have been replaced with
`customer_rank` and `supplier_rank`

closes odoo/odoo#36067

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-26 10:08:33 +00:00
Christophe Monniez cdb904e059 [FIX] sql_db: revert ee03fc3770
ee03fc3770 introduced a non deterministic bug by choosing an
environment in a set, so the environment is not always the good one.

closes odoo/odoo#36056

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-08-26 08:18:40 +00:00
Robot Odoo ff52295c74 [IMP] stock and mrp : Usability improvements
**Description of the issue/feature this PR addresses**:
- Task: https://www.odoo.com/web#id=1943397&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720
- Pad: https://pad.odoo.com/p/r.018c7fbae8a5a0757b9b1cc5ce2b1d01

**Description:**
- Removed "Assembly station 1" from everywhere and replaced it with "Assemmbly Line 1". Renamed "Assembly station 2" to "Assembly Line 2".
- operations field on BOM will be hidden when advanced routes are not active.
- Hide sequence field in form view in BOM and added a widget handle in list view.
- Hide field "Manufacturing readiness" in MO when WO aren't active.
- Added a domain in PLM in Lot/Serial Numbers to show only variants of the product.
- Removed red and green colors from Traceability Report.
- Renamed "Cost" to "Value" on products.
- Changed tooltip of "weight for shipping" in shipping information in inventory.

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

closes odoo/odoo#31594

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-26 13:20:27 +02:00
Damien Bouvy 9fc7887908 [FIX] sale: wrong date field since 0cc30bf
Second occurence after 1699be05. Hopefully the last.

closes odoo/odoo#36048

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-08-26 06:53:53 +00:00
Christophe Monniez 11c6d8fd37 [REL] saas-12.5 2019-08-24 10:05:46 +02:00
Hetal Dhanak 2f2ac55142 [IMP] stock: filter data for field 'product_id' in form view
of 'stock.production.lot'

previously in the selection field 'product_id' of
'stock.production.lot', all the products were always visible
no matter from where this view was getting opened from.
which is not ideal because if a user is creating a new lot
for a specific product, i.e. let's say if he opens this view
from 'product.template', he must not be able to select a
product variant other than of the product itself.

after this commit,
  if a user opens form view of 'stock.production.lot'
  by clicking on the menu action, all the products will be
  visible.
  if he opens it from product.template, only variants of
  the given products will be visible.
  if he opens it from product.product, only that particular
  variant will be visible and it will be readonly because
  there are no other valid values.

Task-1943397
2019-08-23 13:06:42 +00:00
Hetal Dhanak 7130838316 [IMP] mrp: hide sequence field
Task-1943397
2019-08-23 13:05:59 +00:00
Hetal Dhanak ef977fe634 [IMP] mrp: hide "manufacturing readiness" upon inactive WO
Task-1943397
2019-08-23 11:06:10 +00:00
Hetal Dhanak b13dfb502e [IMP] mrp: hide "operations" upon inactive advanced routes
Task-1943397
2019-08-23 11:06:10 +00:00
Hetal Dhanak 03abe6b4ae [IMP] mrp: update demo data
Removed "Assembly station 1" from everywhere and replaced it
with "Assemmbly Line 1". Renamed "Assembly station 2" to
"Assembly Line 2".

Task-1943397
2019-08-23 11:06:10 +00:00
Hetal Dhanak c38703f4e4 [IMP] stock: remove colors from Traceability Report
Task-1943397
2019-08-23 11:06:10 +00:00
Denis Ledoux ee03fc3770 [FIX] sql_db: flush in savepoint, following odoo/odoo@9920f20e4c
closes odoo/odoo#35986

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-08-23 10:07:05 +00:00
Christophe Monniez d61cb18895 [FIX] tests: log remaining requests as info
When an HttpCase browser_js test is unable to join a request thread, a
warning is logged.

To avoid mergebot failures, this commit changes the warning to a log
info.

This problem was introduced by the refactor in this commit: 3ca788f55

closes odoo/odoo#36022

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-08-23 12:33:26 +00:00
Sébastien Theys 296c2ea13d [IMP] product, point_of_sale: improve product attribute value model
`product.template.attribute.value` now retain to which
`product.template.attribute.line` they belong to. This allows the inverse
relation (o2m) to work out of the box instead of relying on a compute.

This is easier to maintain, faster, better for data integrity, and a necessary
step towards allowing multiple lines with the same attribute.

Part of task-1912579

closes odoo/odoo#35866

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-08-21 12:15:40 +00:00
Sébastien Theys e58f892457 [IMP] sale: rename variables in variant_templates
To follow the naming convention used in the rest of the code.

- `variant_id` (which made no sense in this case) -> `ptal`
- `value_id` -> `ptav`

Split commit to make the diff of a following PR easier to read.

Part of task-1912579

closes odoo/odoo#35865

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-08-20 14:29:15 +00:00
Parth ChoksiandMohammed Shekha 3e12c3251f [IMP] mail: pass systray activity menu in activity preview template
This commit passes systray activity menu as `self` in the qweb
context of the template of activity previews.

Task-Id 2034580

closes odoo/odoo#35248

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


Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-08-23 15:41:06 +00:00
Robot Odoo de1a9735c7 [IMP] sale,payment: custom payment link
**Added custom payment link**

- Added action 'Generate a payment link' in dropdown menu
- Reference id is prefilled.
- Based on change in amount, new link is generated

Task 1938635

closes odoo/odoo#31575

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-23 20:28:51 +02:00
Damien Bouvy 62627e8664 [FIX] payment: token is not required for electronic method
Also prevent modifying this once the payment is no longer draft.
2019-08-23 14:58:32 +00:00
Damien Bouvy d06672f799 [IMP] payment: link wizard UX
- default amount for moves should be the residual
- a single close button is quite enough
2019-08-23 14:23:32 +00:00
Damien Bouvy 1f8b2c5a1b [IMP] payment, sale: access token for payment link wizard
When generating a link for a payment through the website_payment/pay
route, including the partner_id 'blindly' is somewhat of a security
issue since it means you could potentially create payments for any
partner of your choosing.

This commit instead introduces an access token mechanism where the
partner_id, amount and currency_id are used to generate a unique access
token that can be checked upon accessing the payment page. This token
is only checked if the partner_id field is set (otherwise this is just
an anonymous payment like any other).
2019-08-23 14:23:32 +00:00
Damien Bouvy 61047da7c8 [IMP] payment: security for public user payments 2019-08-23 14:23:32 +00:00
Sapan Zaveri 03ae7e81d9 [IMP] payment: account_move in place of account_invoice 2019-08-23 14:23:32 +00:00
Barad Mahendraandsza-odoo bea0967114 [IMP] payment, sale: allow to generate payment link from order and invoice
Purpose of the task is, there is no easy way to request custom online
payments on sales orders or invoices. The only way is to create an
URL manually: /website_payment/pay?reference=inv-008&amount=123&currency_id=1

So added menu 'Generate payment link' in action in sales order and invoice.
while making payment pass the partner so reconcilation account flow should not
break as partner_id on account payment is reauired to reconcile.

co-authored-by: sza-odoo <sza@odoo.com>

Task-1938635
Closes: #31575
2019-08-23 14:23:32 +00:00
Simon Lejeune 81404bb3d4 [FIX] stock: inventory: falsy value in compute
task-2058684

closes odoo/odoo#36028

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-23 13:55:14 +00:00
Toufik Ben Jaa 22a71d694f [FIX] odoo: do not try to set source term on new records
closes odoo/odoo#36026

Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-08-23 13:16:40 +00:00
lejeune quentin 8373168bc5 [FIX] hw_drivers: Fix IoT Socket Manager
With this commit we catch OS Error when want use a new socket

closes odoo/odoo#36019

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-23 11:42:00 +00:00
Geoffroy Larue 5df765986a [IMP] hr_timesheet: add id on timesheets tab
Add an id on the timesheet tab on Task form view in order to refine
visibility behavior of this tab from another module (industry_fsm in
enterprise). We want to be able to hide this tab for FSM tasks.

Task-2052287

closes odoo/odoo#36015

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-23 10:15:40 +00:00
MaxLarue 322edd8df4 [IMP] project, industry_fsm: adapt task's planning and fsm kanban
The goal here is to share the same kanban between fsm and project. A few tweaks are also done to the project kanban.
As in fsm the kanban group by is different we still had to do a primary inherit in fsm.

related task 2009563
2019-08-23 10:15:40 +00:00
MaxLarue 4667ee3f6e [FIX] project,industry_fsm: fix reporting traceback
This fixes a traceback that was appearing when looking at projects reports. It was due to a typo in the name of the field to group by in a group-by

related task 2000719
2019-08-23 10:15:40 +00:00
Simon Lejeune 15245a4f1f [REF] stock_account: fifo rounding
Reintroduce remaining_value on the valuation layer. We thought we could
get rid of it and only use unit_cost but with tricky receipt value such
as 10 for three units it works indeed better.

Increment remaining_value when applying a landed cost, don't use this
field anywhere else than _run_fifo. It's a shame we have to edit in
place the value of a layer while we were able to keep them as they were
everywhere else...

There still an imprecision sometimes due to the representation of float
and their way through currency.round (see test_rounding_2) so we also
call currency.round on the computed field value_svl to get a real 0
value.

task-2057877

closes odoo/odoo#36013

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-23 09:20:40 +00:00
Pierre Masereel 7903dd8e64 [FIX] pos_restaurant: remove remaining verify sync
When we are running the tests on runbot, we get race condition when we
verify if the syncronisation is beeing sent, so we removed all of this
as it doesn't really verify if it synched or not, and we make a search
in python after tour execution.

closes odoo/odoo#36010

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-08-23 12:15:31 +00:00
Pierre Masereel 3374110a23 [FIX] pos_restaurant: move and resize table in editing
When you are trying to resize and/or move a table in editing mode on the
floor plan, it doesn't work anymore, because the polling that will count
the orders by table will re-render the table after it has been selected
so the classes making it dragable are ot there anymore and you cannot
move or resize it.

Tu ix this behavior, we are not calling table order count when we are in
editing mode.

TASK-ID: 2057368
2019-08-23 09:35:11 +00:00
Pierre Masereel 60644cf344 [FIX] pos_restaurant: edition of table
When you were trying to edit the table map of your pos, you were getting
a traceback because, it was getting information from a table that
is not in the list of table.

So we are now correctly set the table in the list when it is created and
duplicated.

TASK-ID: 2057368
2019-08-23 09:34:06 +00:00
Arnaud Baes c25803235a [FIX] repair: invoice creation from repair order
Tracebacks caused by invalid values in invoice_line_vals.
Since accountpocalypse, 'number' became 'name', and the
invoice creation process in repair was forcing the repair name
as invoice name. To keep the visibility of the information that
a repair order was the source of the invoice, a field was added
in the form view.

TaskID: 2057443

closes odoo/odoo#35930

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-08-23 09:51:00 +00:00
sza-odoo ff6e905c83 [IMP] payment: pass the partner on direct payment from payment link
Currently when payment is processed through the payment link by
public user then there is no details of partner(email, country etc..)
so due to that some payment provider(paypal, stripe etc.) produce
the traceback on public payment

so when generating link for the payment pass the partner on link so
where payment is processed by public user then it will get the customer
of the record as partner, so on behalf of the customer the payment is
processed.

task-1938635
Closes: #31575
2019-08-23 09:16:43 +00:00
Florian Gilbert b9e48f0e05 [FIX] account: remove belong(s)_to_company field.
The "belongs_to_company" field is useless and never works.

This commit revert: b154e219f6

closes odoo/odoo#35923

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-08-23 06:30:41 +00:00
Robot Odoo 8940c56008 [ADD] iot: Load a true certificate on IoT Box
With this commit we add the possibility to save the db_uuid and enterprise_code on the IoT Box.

We check the current SSL certificate and if it is not authenticated or not up to date
we send a request to `https://www.odoo.com/odoo-enterprise/iot/x509`
with the db_uuid and enterprise_code to get the certificate, key, and domain associated with the client.
The IoT Box will be accessible in HTTPS according to the following domain:

`https://<ip-with-dashes>.<sub-hash>.odoo-iot.com`

`<ip-with-dashes>` being the ip address with dashes
`<sub-hash>` being a subdomain assigned by Odoo to a customer

Task: 1931770

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

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

closes odoo/odoo#35854

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-23 17:03:55 +02:00
Shreya Modi 043393db7c [IMP] mrp: hide manufacturing order on scrap order
-There is no requirement to show production_id on scrap as it has already come
from a particular manufacturing order.

task-1959647

closes odoo/odoo#34201

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-23 12:42:40 +00:00
Shreya Modi 47219e96e1 [IMP] stock: change the dest location of product on state change
-the location of the scrapping product was set to its default vendor
location, it should be destination location.

task-1959647
2019-08-23 12:42:40 +00:00
Shreya Modi 48ed021334 [IMP] stock: hiding LOT untill it is required in product
-LOT should only be shown when the selected product have lot id.

task-1959647
2019-08-23 12:42:40 +00:00
Shreya Modi faf0eb24ec [IMP] stock: allow to delete scrap items
-In the action menu, the manager has no rights to delete the scrap order thus
added the access rights for the manager in the main csv file.

task-1959647
2019-08-23 12:42:39 +00:00