Commit Graph
126133 Commits
Author SHA1 Message Date
Jeremy Kersten f9b7104f7c [FIX] website_sale_comparison: bs4 fix, don't display compare box if nothing to compare 2018-08-29 11:56:27 +02:00
TWA 1b7cdbe925 [IMP] mrp: Correct demo data for traceability report
Purpose
=======

The traceability report is empty because the components have not been consumed in the mo
2018-08-29 11:38:52 +02:00
len-odoo 683ecab8dd [FIX] web: use an unused variable in mock server
Fine-tuning of commit:
https://github.com/odoo/odoo/commit/818c18e55d0718286ff5bf332186a10f4d7a58ef
which introduced a variable that it didn't use.

opw 1867049
2018-08-29 11:04:46 +02:00
Goffin Simon 6bc2be09f5 [FIX] stock: Description for receptions are not being shown in Delivery Slip
Steps to reproduce

- Create a product with a custom description for receptions

- Create a purchase order

- Open the resulting picking

Shown behavior

- Product name is shown, description for receptions isn't shown in the delivery slip report

PS: Same scenario with a sale order

opw:1879069
2018-08-29 10:07:53 +02:00
Pierre Paridans 118526e0a8 [FIX] web: restore access to minDate/maxDate functions on the DateWidget
Used in Enterprise (sale_subscription_dashboard).
Solve a traceback as reported on BS4 pad
2018-08-29 10:02:52 +02:00
Martin Trigaux a8469c4590 [FIX] tools: handle code in po
The previous code, as explained at b505ba9e0a, was to avoid creating duplicated
code entries for the same source (as only one is considered).

In case of a po comment like
 #. openerp-web
 #: model:ir.ui.view,arch_db:base.ir_access_view_search
 #: code:addons/web/static/src/js/chrome/search_inputs.js:716
 #: code:addons/web/static/src/xml/base.xml:1125
 #, python-format

the condition was not triggered (trans_type is model), creating two code entries

Necessary in #26614 to fix #26553
2018-08-28 18:10:03 +02:00
Martin Trigaux fe9cd11ab5 [FIX] base: generate translations in po format
Instead of csv, it allows to benefit from some features of POFile class like
handeling the duplicated terms correctly

In #26553, generating the missing terms was creating a new translation for
base.xml with no translation (value=src), making a previously translated term
no longer translated.

Closes #26614
Fixes #26553
2018-08-28 18:09:36 +02:00
Martin Trigaux 3e52413aa5 [FIX] base: correct typo in button label 2018-08-28 17:39:09 +02:00
Martin Trigaux fb14e4519f [FIX] gamification: allow employee to grant badge
If the user does not have the rights to write on the user profile, he will
trigger an access error.
Put it as a simple computed readonly field to avoid access errors

In 10.0, a workaround was developed at 0312c604f4 but it should be reverted
after this commit
2018-08-28 17:35:20 +02:00
Martin Trigaux 0312c604f4 [FIX] hr_gamification: allow employees to grant each other badges
When creating a new wizard, the related field user_id = employee_id.user_id
forces a write on employee model

Make sure we actually have the same value (to avoid using the wizard to modify
employees) and use sudo to grant the badge.

In master, the field should not be stored
2018-08-28 17:32:56 +02:00
David Beguin 03108f7237 [FIX] mass_mailing : fix unsubscribed page when contact doesn't exist anymore 2018-08-28 17:18:59 +02:00
Florent de Labarre 3b389348be [FIX] stock: move line: lot and product
In the detailed operations view and in an immediate transfer:
    - add a line
    - select a random lot_id
    - select a random product_id
    - validate

The system won't raise while the combination of product_id/lot_id may
not make sense. We add a constraint to solve this isse.

Closes #25766
opw-1868453
2018-08-28 16:34:55 +02:00
Martin Trigaux 9e6e0da06f [FIX] web: accept false value in comparison
momentjs `isSame` method considers undefined values but not false
our method _isSameValue does consider false

Correct the error when running web tests
    Deprecation warning: value provided is not in a recognized ISO format
2018-08-28 16:10:40 +02:00
Martin Trigaux c77789b590 [FIX] web: do not split 'Save & Close' translation
Fixes #26629
2018-08-28 16:06:53 +02:00
eco-odoo 282638653a [IMP] account: reorder bill and invoice form fields
This is an attempt to harmonize vendor bill and customer invoice form fields, specifically the `Other info` tab.
2018-08-28 15:42:05 +02:00
eco-odoo 683085ce06 [IMP] account: update config template to allow easier inheritance
Other modules can now add intrastat settings more easily.

Task: 1869419
2018-08-28 15:42:05 +02:00
eco-odoo f1b2d165fb [IMP] sale: creating an invoice from a sale order now triggers _onchange_partner_id
We need to trigger _onchange_partner_id manually in order to allow computations related to the partner change and to avoid creating bridge modules.
2018-08-28 15:42:05 +02:00
Hetashree Chauhan 6145a71da9 [IMP] stock: add class on validate button
Since it exists two action_validate button (one highlithed and the other
not) depending the situation. This commit add a class on the not
highlited button in order to allow an override.
2018-08-28 15:36:40 +02:00
Hetashree Chauhan 4d1d8d457e [IMP] purchase: create bill button
Before this commit the user add to click on vendor bill
button that redirect him to an empty list view where he has
to click on create. Now, vendor bill show a list view of existing
invoice and it exists a new button create bill that directly create
a new invoice with missing delivered product.

It also order button in order to put primary buttons first in the
header.

The tour is modify since the stat button is invisible if the PO does not
have an invoice linked. Instead it clicks on 'create bill' button.

This commit is related to task ID 1835441.
2018-08-28 15:36:34 +02:00
Darshil Trivedi 19e62fa7c3 [IMP] purchase: clean mail template
Usability change:
- Remove amount from RFQ template
- Remove origin from both templates
- Modify last sentence to a proper English
- Add partner reference in PO template

Technically remove the conidtion on object state in
order to guess if it's a RFQ or a PO since the check
is already made in python and it exists a template
for the RFQ and a template for PO.

This commit is related to task ID 1835441
2018-08-28 15:36:27 +02:00
Darshil Trivedi 6d6009c0e0 [IMP] purchase: settings link to roboto fonts
This commit is related to task ID 1835441
2018-08-28 15:36:20 +02:00
David Beguin 61a34dd8a5 [IMP] crm : add is partner blacklisted in crm.lead
Since the mass mailing blacklist, it's possible to see if a contact is blacklisted
using the blacklist_mixin.is_blacklisted. As crm.lead.opportunity view is displaying
one of the two fields email_from and partner_address_email and is_blacklisted is
computed on email_from, it was necessary to add a related fields that read
the is_blacklisted value of the related partner to see directly of the opportunity
is blacklisted or not.
2018-08-28 14:55:48 +02:00
Martin Trigaux 228225a1eb [IMP] hr_payroll: log the error during evaluation
If the number fails, it is probably an programming error in the safe_eval
Log the error for easier debug

Closes #26173
2018-08-28 14:48:58 +02:00
Martin Trigaux e398e1674a [IMP] base: log the name of the group that is failing
Closes #26173
2018-08-28 14:47:13 +02:00
Sébastien Theys 1c59de867d [FIX] web: prevent handle from crashing with text field
289adeb63f introduced a bug where we tried to trigger an event on an element that didn't exist. Indeed there is no input if it's not in edit mode.

This commit fixes it.

PR: none
Task: none
2018-08-28 12:03:35 +02:00
David Beguin e2bc4d57c2 [IMP] mass_mailing : add invalid mass mailing contact email filter
In order to be aligned with the valid recipients counter on mass mailing list,
the valid recipients filter should also exclude invalid emails.
2018-08-28 11:21:51 +02:00
Olivier Colson e886c2edd3 [IMP] base: res.partner.bank: always display account holder name field (not only in debug) 2018-08-28 10:54:31 +02:00
Hiral Bhavsar d24eb183cd [FIX] web: restore tags' names color on kanban
Those were broken with recent m2m tags refactoring.
2018-08-28 10:46:01 +02:00
Christophe Simonis df62c251bf [FIX] web: print boolean checkmarks
Boolean are rendered via background images. Force printing them.

opw-1877570
2018-08-28 10:41:42 +02:00
Goffin Simon 4a8d0b3484 [FIX] account: Rounding error with multi-currency payment
Fine tuning of this commit: a10ea93dbe

opw:1870351
2018-08-28 10:16:41 +02:00
Sébastien Theys 38cf16d304 [FIX] account: make section and note field widget stronger
The widget was made of duplicate code that was impossible to maintain.

Now we instantiate the correct widget directly.

PR: #26566
Task: 1869469
2018-08-28 09:54:12 +02:00
Sébastien Theys a175c1d202 [FIX] web: o2m correctly left-align the first create button
When there is no handle field, there was an unnecessary margin-left. When there was a handle field, the margin-left wasn't the correct way to align it.

PR: #26566
Task: 1869469
2018-08-28 09:54:12 +02:00
Goffin Simon 3efc853f5f [FIX] stock_account: Display variant name in INVENTORY VALUATION report
When clicking on "Inventory valuation" in Stock module, the display name
of the variants didn't appear. So with a product template with several
variants, all the variants had the same name in the inventory valuation.

opw:1879572
2018-08-28 09:35:16 +02:00
Martin Trigaux 82a6f4f199 [FIX] base,account,sale: typo in field labels 2018-08-28 09:32:29 +02:00
David Beguin f0068c3675 [IMP] mass_mailing : Add dependance with contacts
Contacts is now installed when installing mass_mailing.
It was possible to send mass mailing to contact without having
the contact app installed. which was a non sense because the user could not
manage the contacts and the admin could only send mail to the contact demo data,
which is not very useful.
2018-08-28 09:06:02 +02:00
David Beguin 6ca6e383e7 [IMP] mass_mailing : campaign menu items access only if campaign activated
Campaign Tags and Campaign Stages was accessible in debug mode even if
campaign was not activated in the mass_mailing settings.
there are now not available if the option is not activated.
2018-08-28 09:06:02 +02:00
David Beguin fdd68dab03 [REF] mass_mailing : Renaming Received stat into Delivered
In order to be align between kanban view and form detailed view of mailing,
the name of the delivered mails have been aligned into a signle work : delivered.
2018-08-28 09:06:02 +02:00
LP Papillon b8e4374a4e [FIX] account_payment: use correct field
state_message instead of state_mesage

Closes #26444
2018-08-28 08:53:30 +02:00
LP Papillon 722b7e3867 [CLA] d2go Signs Odoo's CCLA
Done at #26444
2018-08-28 08:53:01 +02:00
Abdur-Rahmaan Janhangeer 5f25b902e5 [FIX] doc: update obsolete openobject link
The library https://github.com/syleam/openobject-library is obsolete
and advises to use OdooRPC instead.

Closes #26596
2018-08-28 08:49:57 +02:00
Abdur-Rahmaan Janhangeer 08d5390995 [CLA] signature for Abdur-RahmaanJ
Closes #26617
2018-08-28 08:49:03 +02:00
Alexandre Kühn eee49f13f0 [FIX][REF] mail: several thread windows fixes
This commit fixes some bugs on thread windows, and make some
improvements on tests related to thread windows.

Fixes:

	1. Correctly position last visible thread window when there are more
	   open thread windows than available slots.
	2. Closing a thread window now marks it as read.
	3. Can now fold/unfold the blank thread window (aka 'New' thread window).

Tests cleaning:

	1. Removed unnecessary 'before assertions' in thread window tests.
	   > Solved with this: https://github.com/odoo/odoo/commit/9b1daa1218f7adf9d741afba607ef5b55b16e3e6
	1. Added basic rendering test for a (non-blank) thread window.
	2. Cleaned thread window tests
	   > Split in different files.
	   > Grouped in 'Thread Window' QUnit module.
2018-08-27 18:32:58 +02:00
qsm-odoo d578644756 [FIX] web, *: use correct DOM for m2m tags
* mail, calendar

- Fix traceback when clicking on a tag without color field (introduced
  in recent changes)
- Properly allow to delete tags on firefox (a button obviously cannot
  contain another button)

Closes https://github.com/odoo/odoo/pull/26547
Thanks to @hbh-odoo
2018-08-27 17:12:56 +02:00
Sébastien Theys 8ba517bfa8 [FIX] web: correctly set the width of the handle column on Firefox
Before this commit, the handle field column would become 1px too big on Firefox when editing the line because of a rounding issue.

Task: none
PR: none
2018-08-27 16:51:21 +02:00
Christophe Simonis 9947133361 [MERGE] forward port branch saas-11.5 up to 40430699df 2018-08-27 16:44:17 +02:00
Olivier Colson 40430699df [IMP] base: res.partner.bank : always display "account holder name" field
[IMP] account: partner form view: add a small link under the bank accounts list, allowing to open the tree view of the linked res.partner.bank, so that they can be fully edited

Before that, as the bank_ids field of res.partner is displayed as an editable tree view with only two columns, it was impossible to edit more specific fields of the bank accounts through the partner form view, such as acc_holder_name.
2018-08-27 15:30:19 +02:00
Sylvain LE GAL 3c0a0261be [FIX] doc: js mixin inheritance
Hamster extends Animal, not itself

Closes #26595
2018-08-27 15:26:40 +02:00
Christophe Simonis 8185970270 [FIX] web: correct test selector
Avoid selecting <td> that contains only a non-breaking space, leading to
wrong string comparison.
2018-08-27 14:35:17 +02:00
Christophe Simonis 1aca7be521 [FIX] point_of_sale: adapt view to renamed field 2018-08-27 14:35:17 +02:00
Thibault Delavallée 2b70abe484 [FIX] hr_holidays: allow to reinitialize module
Demo data prevent from reinitializing hr_holidays module. Indeed confirming
already confirmed leaves or allocations does not work. Demo data are
updated so that we can initialize hr_holidays several times.

This commit is linked to task ID 1876795 and PR #26423.
2018-08-27 14:25:33 +02:00