Commit Graph
130941 Commits
Author SHA1 Message Date
svs-odoo eb7db0c8b8 [IMP] product: editable supplier price list view
Task #2078163
2019-10-01 14:24:02 +00:00
svs-odoo 97bb455c06 [IMP] stock: editable lot list view
Makes the production lot list view multi-editable.
Also, sets the `product_id` field readonly because there is an onchange
on this field in the addon product_expiry. So, it's better the field is
always readonly than editable then become readonly when an another addon
will be installed.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 31c8ebaac5 [IMP] stock: editable reordering rules list view
Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 40c0a7ed38 [IMP] stock: editable scrap order list view
Sets `date_done` and `state` fields as readonly in the model as they
must not be editable in the list view and they were already readonly
in form view.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo dc5254cb14 [IMP] stock_picking_batch: editable batch picking
Makes batch picking list view multi-editable. Also, sets `name` and
`state` fields as readonly in the model as they must not be editable in
the list view and they were already readonly in form view.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 8c4507e7e3 [REM] stock: remove assign responsible
Removes the action assign responsible on picking since it can be assign
directly on the list view now.
The wizard must be deleted in the next version.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 06aeb07cff [IMP] stock: editable picking list view
Makes the picking view list multi-editable, and some readonly conditions
was moved form the view to in the model (for the `backorder_id`, `name`,
`scheduled_date` fields).

Task #2078163
2019-10-01 12:34:17 +00:00
sri-odooandAurélien Warnon 2a10328c13 [IMP] utm,crm,mass_mailing,link_tracker,sale: improve utm.campaign kanban view
This commit slightly improves the utm.campaign kanban view by reordering statistics and changing
their display.

The recent changes introduced in 09c9d1f0d0 were not satisfying after all.

Task#2077579

closes odoo/odoo#37612

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2019-10-01 13:38:17 +00:00
wan 63de98b9b4 [FIX] *: remove en_US as fallback for lang code
en_US may not be activated as it is possible to create a database in
another language using the database manager.

When trying to install a chart of account, the tax return entry tried
to format a date at the installation of the module, with no lang in
the context. The fallback was made on en_US but an error is raised if
that language is not activated.

As it is a very common scenario to retrieve a language from the
context, add a generic tool method to do it.

Replace and closes odoo/odoo#37629

closes odoo/odoo#37568

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-01 10:05:17 +00:00
qsm-odoo f28f787c10 [FIX] website_event: fix error in scss
A variable was not used where it should have, breaking the events page
background with the upcoming forum redesign.

closes odoo/odoo#37703

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-01 12:48:35 +00:00
Simon Lejeune fae07f3bd5 [REF] stock_account: filters on valuation layer
closes odoo/odoo#37701

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-01 12:28:52 +00:00
Lucas Lefèvre 1c5958e14b [FIX] account: Allow to post move with follower in other company
Since 6f2efae, posting an account move automatically adds
the partner_id and commercial_partner_id to the record's followers.
However, if some existing followers are in an other company and
the current user doesn't have access to the company, it
would raise an access error.

This commit fixes the multi-company issue and adds a test
for the feature.

closes odoo/odoo#37696

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-01 12:22:55 +00:00
Martin Trigaux f751dda50c [I18N] *: export saas-12.5 source terms
Still without demo data

closes odoo/odoo#37695

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-01 12:23:22 +00:00
Martin Trigaux ed04564647 [FIX] social_media: rename module
Was a technical name
2019-10-01 11:54:56 +00:00
Jorge Pinna Puissant 79afa204e0 [FIX] mail: missing attachment icon
Since 1d766c067d the attachment icon was
missing when it wasn't a pdf or image type file.

opw-2064128

closes odoo/odoo#37687

X-original-commit: c44cec7e5ed9de3be495eb44b351eda6b0f6aeee
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2019-10-01 11:34:05 +00:00
Damien Bouvy d69ded69cc [FIX] payment_test: allow to disable it
closes odoo/odoo#37621

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 15:11:18 +00:00
Damien Bouvy ad94c1e712 [IMP] payment_stripe: sca completitude
Althought most of the SCA compliance stuff was already there,
the flow was slighlty changed to better support some flows in 12.0

Reflect this changes in 12.5.
2019-09-30 15:11:16 +00:00
Antony Lesuisse 4ddce229c4 [IMP] l10n_generic_coa: improve chart
Renamed xml ids of the main accounts (in prepartion for a future multi l10n
demo system). Change account numbering to match quickbook and other US GAAP
convention and recommendations.

closes odoo/odoo#37606

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-10-01 13:09:50 +00:00
ryv-odoo 3bca1d52a0 [FIX] mass_mailing_sms : fix KPI in draft
There is the % Clicked stat button in SMS marketing form view when it
is on draft or test. Fix to be only visible
when the state is not in draft or test

TASK_ID : 2078918

closes odoo/odoo#37615

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-01 11:14:04 +00:00
ryv-odooandStéphane Debauche a7489feed0 [FIX] mass_mailing: mail template become invisible after saving
Bug
===
In the mailing mailing form view, after saving the email and creating it, the body is invisible and one needs to edit and save again to see the content
The view has two fields with the same name

Fix
===
At the end, we have only one field and some condition on the attributes (class, widget)

TASK_ID : 2078918

Co-authored-by: Stéphane Debauche <std@odoo.com>
2019-10-01 11:04:10 +00:00
ryv-odoo 43a880eb6c [FIX] mass_mailing_sms : diplay count pf contact list incorrect
In the sms marketing, the display name of the contact list was wrong
during the search of the many2one widget (contact list field,
count of valid number was the count of valid email).
Add a context attribute on the widget depending of the global context
to force the rigth count.

TASK_ID : 2078918
2019-10-01 11:04:10 +00:00
ryv-odoo f422cfdbb9 [FIX] mass_mailing_sms : the sms_allow_unsubscribe field invisible for mailing marketing
The field sms_allow_unsubscribe field was visible and checkable on the
email marketing app, but this field is reserved to the
sms marketing. Add a invisible condition.

TASK_ID : 2078918
2019-10-01 11:04:10 +00:00
Samuel Degueldre 74e23b2e2b [IMP] Prevent reverse tabnabbing in plaintext2html, linkify, _makeLink
These functions convert plain text links into clickable hyperlinks.
These open in new tabs but did not have the "noreferrer noopener" rel
attributes, which made them susceptible to reverse tabnabbing.

A lot of attack vectors were available to unregistered, uninvited
anonymous users and presented a significant phishing threat (such as
posting links in the instant-chat, through a mail-alias, in a forum post
or in a twitter post) and leading the operator to believe he had been
disconnected from odoo in the original tab, prompting them to enter
their credentials.

while these three places will add the noreferrer and noopener attributes
on the anchor tags generated by them, there are still many places that
create hyperlinks without the use of these functions, although most of
them are static links, they still represent a transitive security
vulnerability to the linked sites.

There are also a few modules and widgets that roll out their own links
or open new tabs unsafely using window.open(), these will need to be
patched separately.

closes odoo/odoo#37591

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-10-01 08:24:59 +00:00
Laurent Smet e121bacbd0 [FIX] account: Fix editable fields on editable grouped list views
Nothing is editable on account.move.line tree view.
On grouped tree views, only account_id, name, ref, tag_ids, date_maturity are editable.
The account hierarchy must not be visible on the partner ledger view.

closes odoo/odoo#37528

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-01 08:02:25 +00:00
Laurent Smet 790da8b463 [FIX] account: Prevent messing invoices when writing account_id
When writing an account from the editable groupby list view, prevent
the user to messing up the invoices by writing receivable accounts everywhere.
2019-09-30 14:31:22 +00:00
Nicolas Bayet 14116b3b9e [IMP] add ability to unlink databases from subscription more easily
closes odoo/odoo#37431

Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-10-01 07:58:02 +00:00
Gorash b1503c7ee0 [FIX] web_editor: remove image style when change to an other than image
closes odoo/odoo#37343

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2019-09-24 08:52:43 +00:00
Benjamin Vray 6eaf5da98a [FIX] sms: avoid error when resending sms
avoid a traceback when resending a SMS
It was because arguments of the js function setSmsStatus
were undefined in this case

closes odoo/odoo#36907

Task-id: 2070836
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2019-10-01 11:45:27 +00:00
Benjamin Vray 2a7796cbaf [FIX] stock_sms: Change class of disable sms button
Change class of disable sms button in secondary

task-id: 2070836
2019-10-01 11:45:27 +00:00
Benjamin Vray 5be43f8c1e [FIX] stock_sms: add order number in sms
Add order number in the sms wich indicates
that the order has been shipped

task-id: 2070836
2019-10-01 11:45:27 +00:00
Benjamin Vray 39f4920039 [FIX] crm_sms: bug when send SMS in batch
It was no longer possible to send SMS in batch in the list view
This is because it was missing the default_res_ids  key in the action context

task_id: 2070836
2019-10-01 11:45:27 +00:00
Yenthe666 24435c876d [IMP] resource: add missing sheet on form view
closes odoo/odoo#35966

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-01 12:34:51 +00:00
Muhammad Awais 750bff8c39 [CLA] signature for herawais
closes odoo/odoo#37685

X-original-commit: 65d8d3fb5e5d592ef0a0cb49c37baf5ed34298fd
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-01 11:28:55 +00:00
Laurent Smet 8f6e383397 [FIX] account: Fix invoice report template
- Description is no longer needed since it provides the same info as the header.
- The ref field will be used to set a custom description on any invoice (not just vendor bills).
- Don't display the name on the report if the move hasn't been posted.

closes odoo/odoo#37683

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-10-01 11:15:52 +00:00
qsm-odoo 18854caedd [FIX] website_event: prevent crash if clicking on register too soon
Since https://github.com/odoo/odoo/commit/02dab5dc88112fd5f5ee43882ca022529acb4abf,
the JS is now lazy loaded. As the "Register Now" button on each event
page relies on JavaScript to perform a RPC, it needs the JS to be loaded
to be able to work properly when clicking on it. In this case, clicking
on it while the JS is not loaded yet performs a standard form submit,
which lands on a route which cannot handle a standard form submit which
then results in a 400 error page.

This commit fixes the problem by adding the 'o_wait_lazy_js' class on
the button which simply prevents click on elements during lazy loading.

Discovered while working on task-2043872

closes odoo/odoo#37675

X-original-commit: https://github.com/odoo/odoo/commit/5e885436f9a77b4c387cd0b1eb07102ff85bec03
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-01 11:49:53 +00:00
David Monjoie 5f65f1e0c8 [FIX] web: fix optional fields invisible overflow
Before this commit, the "renderer with search panel" have a max-height
of 100% but no min-height. Because of this, it is possible that the
list view optinal fields dropdown would be smaller than the "renderer
with search panel" container. Since this particular container has to
be in overflow: auto (see the comment on the line above the change),
it hides the overflow of the optional fields dropdown.

This commit sets the height of the "renderer with search panel"
container to 100% such that it does not truncate the optional fields
dropdown. The bug was observed on the General Ledger menu of Accounting,
and the change does not look to change anything other than correctly
displaying the optional fields dropdown without truncating it.

closes odoo/odoo#37660

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2019-10-01 08:46:58 +00:00
qsm-odoo bf0b3a400b [FIX] website_event: restore 'local events' snippet in edit mode
Since https://github.com/odoo/odoo/commit/335a505d1f9b6a978c0fe0f6ea760a45b0d0a67f,
the frontend widgets are not used in edit mode by default. The local
events snippet's one had to be explicitly enabled.

Discovered while working on task-2043872

closes odoo/odoo#37672

X-original-commit: 5424a4b590e73d2cf3cfb39bbbe656e908db2b46
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-01 10:02:30 +00:00
Geoffroy Larue 0e94c675ef [IMP] account: make reverse wiazrd extendable
This commit sets the call to default method on move field in reversal
wizard as lambda to ensure that the right method
is called when it is inherited (as in helpdesk_account module).

It also changes the form view so other module can use it to refund
invoices (move_id field first in the view as it will determine if refund
method should be visible or not).

Task-2047999

closes odoo/odoo#37635

X-original-commit: bcda50aeca44b292417024a5e422ffb8698e0c99
Signed-off-by: gla-odoo <gla-odoo@users.noreply.github.com>
2019-10-01 09:47:59 +00:00
RomainLibert 44a500c8d0 [FIX] hr: make the email field visible again
You DO want to be able to change your user's email address from the
employee profile

closes odoo/odoo#37674

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-10-01 10:16:05 +00:00
Jigar Vaghela 672cad0af2 [FIX] l10n_in: Fix report line in tax
Before this commmit:
   Show wrong value in Tax report

After this commit:
   Show right value of taxes in Tax report

closes odoo/odoo#37673

X-original-commit: 67ad5e1ecbcb9aee3f47c400b82b9df989c05d78
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-01 10:04:40 +00:00
Jigar Vaghela 8bdddcbe80 [IMP] l10n_in: Set parent in tax report
closes odoo/odoo#37671

X-original-commit: d4dc7ae8285e6ab65f168e61650ef89ebdb2268d
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-01 10:00:06 +00:00
Pierre Masereel 8f91e81065 [FIX] l10n_fr_pos_cert: move sale closing on pos
The report sale closing that was working on journal and takes the sales
total and cumulative total on periods of 'day', 'month' and 'years'. Is
now based on the pos orders and moved to the pos certification module.

closes odoo/odoo#36967

Task-id: 47990
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-10-01 10:02:50 +00:00
Pierre Masereel 82e06a9f50 [FIX] l10n_fr_pos_cert: inalterability check report
We've added a repport that guarantee that the blockchain of hash has not
been altered. It recompute the hash and check that they are the same as
the one stored.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 78994b55b6 [FIX] l10n_fr_pos_cert: avoid editing orders
Once an order is created in the french certification, we cannot modify
it wihout traces, so we've disabled the edtition of the order lines in
the frontend, disable the price changing, and the deletion of orders.

So when we want to decrease the quantity, a line with negative quantity
should be done.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 5b8f86a3eb [FIX] point_of_sale: remove datas_fname field
Since the field datas_fname doesn't exist anymore, we should not set it
anymore.

rev: c212cfe899
2019-10-01 10:02:50 +00:00
Pierre Masereel 00a30e1d07 [FIX] l10n_fr_pos_cert: display hash in debug mode
We now display the pos order hash, on the order form view when we are in
debug mode.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 9e5ea29e34 [FIX] l10n_fr_pos_cert: display hash on receipt
When an order is sent to the server from the point of sale, a unique
hash is generated by the server. This hash must be printed on the
receipt to allow the comparison between the receipt and the data on the
server and guarantee the unalterability of the data on the server.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Pierre Masereel b213c9ee3c [FIX] point_of_sale, pos_restaurant: print bill with correct template
Until now, the ticket printed from the web or to the printer were
different because one was using the OrderReceipt template and removed
some fields, and the other was using the BillReceipt.

We are now using only the bill receipt, to avoid to maintain multiple
template showing the same thing.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Pierre Masereel 69dc97c698 [FIX] point_of_sale, pos_reprint: write duplicata on reprint
When a receipt is reprinted, the word 'DUPLICATA' is printed at the
bottom of the receipt.

We are also allowing to reprint ticket even if no printer is selected on
the POS config as nothing prevent to do this.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Raphael Collet 72d5761730 [FIX] base: do not flush during model setup
Retrieving selection data for a custom field while setting up a model
should not flush() fields in `ir.model.fields.selection`.

closes odoo/odoo#37667

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-10-01 09:25:02 +00:00