Commit Graph
120754 Commits
Author SHA1 Message Date
sed-odoo 3a883e6728 [IMP] l10n_ch,account,website_sale: Add SwissQR Code on invoice and improve the SEPA QR Code usability
Purpose
=======

 - Add the SwissQR Code on the invoice in aim to replace the actual ISR
 - Improve the settings of the SEPA QR Code to make it more user friendly

Specifications
==============

 - ln_ch:

   - Add a SwissQR Code on the invoice to fit the Switzerland QR-Bill Format
   - Use the "partner_bank_id" field to generate the QR Code
   - Add function to get the address number out of the field "street" and "street2"

 - account:

   - Remove the SEPA QR Code's journal settings from the general setting
   - Display the "partner_bank_id" field on the invoice "Other info" page
   - Use the "partner_bank_id" field to generate the QR Code

 - website_sale:

   - Add a check box on the payment acquirers to use the SEPA QR Code on the e-commerce
   - Use the payment acquirer "journal_id" field to generate the SEPA QR Code
2018-09-20 09:41:06 +02:00
Thibault Delavallée c59d6d2329 [FIX] hr_holidays: correctly update number of days of allocation
Two fields number_of_days_display and number_of_hours_display are used to set
a number_of_days field that stores the allocation day count of the allocation.
Those two fields are interface fields. One or another is used depending on the
leave type, depending on how the allocation is done: by hours or by days.

This commit fixes a wrong computation of number of days by correctly setting
a readonly attribute on unused fields as well as removing the inverse on the
interface fields. Using onchange ensure the backend field is correctly
computed. Moreover we could have two times the same tracking message as the
inverse triggers another write and cache could consider the tracking two
times.
2018-09-20 08:13:01 +02:00
Toufik Benjaa 6ed44181d0 [IMP] payment_*: payment acquirers error handling
This commit aims to improve the user experience when using payment acquirers. There currently are no error feedback with some acquirers, which leaves the user wondering what is going on and what is the real status of its payment.
In some cases, the user is currently being redirected to the home page even though the payment has failed. We want to make it more obvious to the user that something unexpected has happened by redirecting to an intermediate page that will provide good feedback on payments status.

Another goal of this commit is to order acquirers by sequence instead of by flow and to select the first acquirer by default. This feature was already implmented in commit fe294fd43e521bd2d339e962f43acf46c3d4cb97, some UI adaptations were needed though.

Related to task #36680
Closes #26958
2018-09-19 18:25:32 +02:00
Rémi Rahir 46dc8ceef9 [IMP] snailmail: adapt reports for snailmail
In order to ease the integration with the snailmail posting service provider,
We will generate specific reports with a layout that fits their
criteria.
In short,
* we specify the postition of the recipient's address on the
document
* we force the A4 format

This also support the din5008 type B report.
2018-09-19 17:58:35 +02:00
Rémi Rahir 2f3c69d7c4 [FIX] l10n_de: fixing the report layout and template 2018-09-19 17:58:35 +02:00
Rémi Rahir 6ba9a2011f [FIX] account, base, web: fixing report layouts
Reverting some changes introduced in
f29df7fb2e.
By changing the html tag from 'article' to 'page' we were losing the
style on the body of the document. The problem it was supposed to tackle
will be addresed in the future.
2018-09-19 17:58:35 +02:00
Rémi Rahir d6530ed6ac [FIX] snailmail_account: update invoice state on send action
The status of the invoices were not correctly updated when using the
'Send & Print' action.
2018-09-19 17:58:35 +02:00
Christophe Monniez 7b0ee529cb [FIX] account: remove standard tag on l10nall test
Oversight of the dev branch that cause the test to be launched on each
runbot build.
2018-09-19 16:46:30 +02:00
len-odoo 2f1a0cf6c8 [FIX] product: compute product variant names using attribute sequences
Commit: 70e1efd41e
Explicitly added an _order on product.attribute.value.
However the order that should be used first is the one from product.attribute.
It would not make sense to display ipod (white, 8go) and ipod (8go, black).

opw 1883904
2018-09-19 16:30:54 +02:00
Yannick Tivisse 426b9a3551 [FIX] l10n_be_hr_payroll: Fix layout issue on contract form 2018-09-19 16:11:51 +02:00
Yannick Tivisse dfdba77098 [FIX] hr_recruitment: Open employee form when created from application
Currently, when clicking on 'Create Employee' on the application form,
the employee is correctly created but the form view that is opened
is for a new employee, not the employee that has been created on the fly.
2018-09-19 16:11:51 +02:00
Christophe Monniez b9ad03ab78 [IMP] account: test install of all l10n modules
l10n modules are blacklisted on the runbot.
With this commit, a tagged test is added that installs all the l10n
modules. A chart of account is installed in a different company for each
one. This test is a first step to test all l10n. It's intended to be
launched by a runbot cron script.
2018-09-19 15:58:10 +02:00
Raphael Collet 19e9909557 [FIX] base: avoid prefetching all the fields when getting context
When getting the context of res_users, all the fields are read but if
the schema is being modified and the modifications are not yet commited
in the database, this leads to a bad query.

With this commit, a read is used to fetch only the needed fields.

Thanks to @RCO for finding this issue that only occurs in specific
planetary alignment.
2018-09-19 15:58:10 +02:00
Olivier Colson c2177b81dd [FIX] account: don't make administrator part of account users group by default
Before that, the administrator could use accounting features by default. This is not what we want, the group only gets assigned by default when installing account_accountant, on enterprise.
2018-09-19 15:50:44 +02:00
Thibault Delavallée d8be813aff [MERGE] various: improve menus, search filters and some labels.
Impacted applications: hr, maintenance, mass mailing, survey, base
(attachment), product, stock (and dependencies), project (and dependencies),
event (and dependencies).

This commit is related to task #1875881 and closes PR #26938 .
2018-09-19 15:27:56 +02:00
Hiral Bhavsar b091a11c03 [IMP] event, website_event_track: improve filters and views
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

Add search view for event type and make tree views for locations, sponsor
types and track tags editable bottom.

This commit is related to task #1878516 and PR #2649 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar 5b1ccb6609 [IMP] project, sale_timesheet: improve menus and filters
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar 96abf2ca90 [IMP] product, stock and dependencies: improve search filters labels and order
Specifications: improve menu and action names, search filters and groupby,
reorder filters, update some field labels.

This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar d6442e418b [IMP] base: reorder search filters on attachment model
This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar ed8331051a [IMP] survey: improve search filters order and labelling
This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar e5d3a1ac82 [IMP] mass_mailing: reorder a bit menus by deleting unnecessary duplicate mailings menu entry
This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar 3da13c2e1a [IMP] maintenance: improve search filters order
This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Hiral Bhavsar 1dc7cb22e7 [IMP] hr and dependencies: improve filters
Specifications: improve search filters and groupby, reorder filters, update
some labels.

This commit is related to task #1881274 and PR #26938 .
2018-09-19 14:33:39 +02:00
jem-odoo a1572fe673 [FIX] hr_timesheet: bind format/parse method for timesheet_uom widget
The `timesheet_uom` is a fake widget: it is bind in field widget
registry on other existing widget depending on the session_info
preferences (e.i.: float_time, float_toggle, ...). Therefore, it
does not have formatter/parser methods in the field utils method.

This commit binds the formatter and the parser of the widget on which
`timesheet_uom` is bind, to make it coherent. This avoid having a
traceback on pivot view when the `timesheet_uom` widget is set on
a field node.
2018-09-19 14:10:42 +02:00
qsm-odoo c12b472dba [FIX] website, *: review navbar color system
* web_editor, website_slides

Current system is styling all navbars with the user color. This was not
the expected behavior but it is in fact quite nice, so we decided to
keep it. There was however a problem: choosing the menu text color only
applied to the main navbar (as it was an xpath toggling the navbar-dark
class).

This commit solves the problem by forcing navbar-light to behave as
navbar-dark automatically if the menu background is dark, and this
without any JS or extra CSS rules. This allows to get rid of the menu
text color option.

This commit also reviews the light and dark colors which are used when
website is not installed.
2018-09-19 14:09:12 +02:00
qsm-odoo 2ca2b89485 [FIX] web: add missing report assets file 2018-09-19 14:09:12 +02:00
Thibault Delavallée e570c52f78 [MERGE] various: improve search filters, menu organizations and some labels
Impacted applications: crm (and dependencies), sale (and website_sale), point
of sale, accounting, purchase, base/mail, calendar, mrp.

This commit is related to task #1878516 and closes PR #26929 .
2018-09-19 13:25:10 +02:00
Pratima Gupta c788bc4190 [IMP] mrp: improve search filters
Specifications: improve search filters and groupby, reorder filters

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:18:35 +02:00
Pratima Gupta 840312a64f [IMP] calendar: improve filters
Specifications: remove unnecessary filters

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:18:30 +02:00
Pratima Gupta a4407f0a82 [IMP] base, mail: improve filters on partner model
Specifications: improve search filters and groupby, reorder filters

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:18:26 +02:00
Pratima Gupta a645d7d795 [IMP] point of sale: improve filters and labels
Specifications: improve search filters and groupby, reorder filters, update
some field labels.

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:18:23 +02:00
Pratima Gupta ac5b32cb75 [IMP] purchase: improve search filters
Specifications: improve search filters and groupby, reorder
filters.

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:18:02 +02:00
Pratima Gupta 5aad33098a [IMP] account, point_of_sale: improve menu, filters and search views
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:17:55 +02:00
Pratima Gupta 21e5198da1 [IMP] sale, website_sale: improve menus, labels and search filters
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:17:01 +02:00
Pratima Gupta 8eec468c19 [REF] website_crm_partner_assign: remove crm.lead.report.assign report
As all information present in this report can be found in the opportunities
dashboard this report can be removed.

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:17:42 +02:00
Pratima Gupta a6ad87a4d9 [IMP] crm and dependencies: improve menus, labels and filters
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

crm
===

Restructure the menus as
  * Sales
   * My Pipeline (default filter: My Opportunities)
   * My Quotations (default filter: My Quotations)
   * Team Pipelines (opens sales teams in kanban view)
   * Customers
  * Leads
   * Leads
   * Scoring Rules
   * Teams Assignation
   * Leads Assignation

sale_crm
=========

Change the parent menu for 'My Quotation' menu item as menus are changed in
sales:  crm.crm_menu_pipeline -> crm.crm_menu_sales

website_crm_partner_assign
==========================

Removed the menu and its action: crm -> Reporting -> Opp. Assignment
Change the menu sequence for crm -> Reporting -> Partnerships. Menu should
display as
  * Leads
  * Pipeline
  * Activities
  * Scoring Page views
  * Partnerships

This commit is related to task #1878516 and PR #26929 .
2018-09-19 13:17:01 +02:00
Sébastien Theys bb6813956e [FIX] base: fix "flex-direction: column" for wkhtmltopdf
This css rule is used notably by bs4 .card-deck. The fix is needed to make sure multiple cards inside a card-deck prints on a new line instead of overflowing horizontally out of the view.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 6cde21413c [IMP] sale: improve left menu and quotation builder
Adapt the left menu to correctly display each heading on a new line.

Always show the left menu navigation, especially on mobile where it is the most useful to quickly go below.

Remove unnecessary code from the quotation builder template.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 4decbcc55c [IMP] account,sale,web: use classes for section and note
Instead of using custom CSS.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 3ef1394806 [FIX] account,portal,sale: fix left menu borders
The menu wasn't correctly responsive. Now we always set the left and bottom border on the list elements, and remove them from the parent. This way the style will be correct even if the elements flex to the same line on some screen size.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 34c47eecd3 [IMP] various,sale: improve sign, pay and reject
Flow
====

Have one model field responsible of telling when the sales order has to be signed or paid to avoid inconsistencies.

The general rule is: sign & pay are only used upfront to confirm a sales order. If a sales person starts to modify (confirm) it manually, we don't need those features. Especially at that point pay should be done with invoices.

Modal
=====

For the sign, we want to force refresh the page to update its state, and thus we need to show the confirmation message on the reloaded page.

For sign and pay, we changed a bit the structure of the text in the modal to allow to translate it more easily. Also fixed the payment selection by moving it into the body instead of the footer.

For the reject modal, we want the feedback field to be required, so we can see in the chatter by who and why it has been rejected.

Misc
====

Moved remaining bits of code related to preview/pay/accept/decline from sale_management into sale, where it should have been in the first place.

Sales Order:
- Improved status/contextual alerts.
- Hide discount from small to fix responsive.

PR: #26801
task-1876864

remove sales help
2018-09-19 12:00:37 +02:00
Sébastien Theys 0a52493444 [IMP] sale: make signature responsive
PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys a92104c3a5 [IMP] sale: remove product image from sales order
We want to keep the image on the shop flow, but not on the final sales order document.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys a7f32c2649 [IMP] account,sale,website: improve buttons text and class
Website generic: change "edit to backend" class to match other menu dropdown items.

Invoice: add "back to edit mode" banner.

Sales Order:
- "Reject" in red, we really don't want the user to click it.
- "Accept & Sign" renamed to better convey the meaning and match the button on the popup.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys d50aa61cf7 [IMP] sale_management: prevent from archiving default template
This will prevent confusion from the user at a later time.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 4a1ad6f536 [IMP] various: rename electronic payment to online payment
To be consistent with "online signature".

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 78e51c429d [IMP] sale: improve demo, default data, and manifests
*** Activate pay and sign, as well as quotation template, by default when using demo data.

Previously, the features would show by default on runbot because they activated on installing modules.

Now that they are settings of sale_management, we need to specifically activate them for demoing. However we don't want them for on-boarding.

*** Remove the default template from sale_management, move it into sale_quotation_builder

The default template was useless in sale_management because it was empty: it was previously a required field, which is not the case anymore.

It was only filled and used in sale_quotation_builder to display an example quotation, which is why it is now moved there.

*** Update manifests

Fix category of sale_quotation_builder and slightly improve its text.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 83f9ef9059 [FIX] account,web: fix invoice iframe height
a7a89f3174 introduced a change that broke the invoice iframe.

The #wrapwrap corresponds to the client body, therefore the container must be inside it, and the scrollbar will now be on it instead of on the iframe body.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 36d1b456d2 [IMP] portal,various: factorize "back to edit mode"
The same code was duplicated in several places. This commit creates a single template for it.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
jem-odoo a2456b20e9 [FIX] hr_timesheet: create project with allow_timesheet checked by default
The default value when creating a project is true for 'allow_timesheet'
field. This will automatically create an Analytic Account (if not
provided). However, the old onchange reset the allow_timesheet to false
if no AA was given, which is a contraction with the expected behavior
on project creation. But, we might want to uncheck 'allow_timesheet'
when we remove the AA on an existing project (Users can not log
timesheets without an active analytic account).
This commit fixes the erasing default value on creation by checking
the record is currently existing in the database.

Task #1886691
2018-09-19 11:35:06 +02:00