Commit Graph
120777 Commits
Author SHA1 Message Date
Laurent Smet 7053ae7828 [IMP] account: management of reconciliation rules
Bank statement lines need to be matched with entries; We have to automate this operation as much as possible.
At the same time, create an algorithm that fit everyone needs is quite impossible.
For that reason we will let users choose the rules they want with the improvement of reconciliation models.

Note that we did it only for bank statement reconliation, not for manual reconciliations.

Was task: 1877375
Was PR #26669
2018-09-20 17:11:52 +02:00
Laurent Smet e19ecefa8e [MOVE] account: move account.reconcile.model to separate file 2018-09-20 17:09:30 +02:00
Simon Lejeune 07cc961372 [FIX] mrp: _check_lots error message
Better wording.
rev bf65cd83ab
2018-09-20 16:37:18 +02:00
Adrien Dieudonne b23a981320 [IMP] web: graph view: design improvements
This commit improves UI of charts:

- Reduce margins of svg
- Put ticks label on right of y axis
- Bigger lines (line chart only)
- ligther area color (line chart only)
- Hide y axis line
- Force charts to begin at y=0
- Hide zero tick on y axes

There is no test because these changes only concerns visual effects.

Task ID: 1877588
2018-09-20 15:20:03 +02:00
William Henrotin 009e1ab4b6 [IMP] stock, stock_zebra: add label on picking type
This commit adds the posibility to print labels containing the barcode 
of a picking type. There are two available formats : pdf or zpl
2018-09-20 14:47:06 +02:00
William Henrotin cdbd33b6f3 [MOV] stock: barcode on picking type
The field barcode on picking type was introduced in stock_barcode module
(enterprise). We move it to the stock module to be a standard field like
the one on stock_location.

Task: 1872345
2018-09-20 14:47:06 +02:00
William Henrotin ff7df19bd3 [IMP] stock: choose destination wizard
Purpose : during a transfer, if some move lines have different
destination locations and the user click on 'put in pack' button, an
warning is triggered. This message, saying : 'You cannot put in the same
pack move lines having different destination location', is replaced by a
wizard allowing the user to choose a unique destination location. This
location will be set as location_dest_id on all transfer's stock move
lines. After that, the wizard calls again the _put_in_pack() method
where all the logic remains the same.

Task : 1872345
2018-09-20 14:47:06 +02:00
William Henrotin 7dee76b962 [IMP] stock, mrp: add ids in settings
Some modules in Enterprise version need to override the Inventory and 
MRP settings views. This commit allows them to make it easily

Task : 1872345
2018-09-20 14:47:06 +02:00
William Henrotin 55327729df [FIX] delivery: pass full context
In a picking of type 'delivery', hitting the Put in pack button load a wizard
to choose package information. This action that load the package wizard overide
the environement context. the issue is we need 'active_id' later. In a full
python flow, the ORM fill the context with standard values like lang,
timezone, ... and active_id. In a flow using RPCs from JS. The context is
not magically rebuild so we lose the active_id.
2018-09-20 14:47:06 +02:00
TWA eebaf55fde [ADD] crm_reveal: New IAP module
crm_reveal will allow the automated generation of leads based on the
visits of the website.
2018-09-20 13:58:33 +02:00
Adrien Dieudonne 067754f0f6 [REF] web: Use graph renderer to render pie_chart widget
Before this rev., the pie_chart widget was rendered from scratch
with nv.d3 and we had duplicated code.
In comparison mode, two widgets were instancied and it was a bit
difficult to synchronize the size of these svg graphs.

nv.d3 graphs are attached when the dom is ready because it needs
to calculate the available space. UI bugs can appear if the dom
changes... .update() must be executed on the graph to avoid this
as we already do in graph renderer.

So now, the rendering of the pie_chart widget is done by the
graph renderer.
As comparaison mode is supported by the rendering, only one
widget needs to be instancied.

Task ID: 1835644
2018-09-20 13:30:50 +02:00
Nicolas Seinlet b5a12b4aac [IMP] website: ensure login uniqueness per website in SQL
Constraints in SQL are faster than python equivalent.
Adding a coalesce in PostgreSQL constraint doesn't seems possible.
This combination of constraint and weird named unique index is the
fastest way to ensure a unique constraint with NULL values.

This index require the website_id to be present in the res_users
table. To do this, a stored readonly related field is used.

This was introduced by 4f6ec1cd2a
2018-09-20 13:25:28 +02:00
Thibault Delavallée e7c53bd150 [IMP] mass mailing: improve demo data
Purpose of this commit is to have some demo data that are coherent. Main things
done in this commit are

 * clean the body of the first mass mailing given to the user in order to have
   a content more inlined with odoo emails;
 * update filter of the demo mass mailing to limit the results to something
   predictable, aka contacts of ReadyMat;
 * update statistics to be really linked to customer of the demo company by
   setting model and res_id;
 * create a statistics for each child of the company ReadyMat so that stat
   buttons redirect correctly to a filetered view;

This commit is linked to task ID 1885121 and closes PR #27003.
2018-09-20 13:02:17 +02:00
Thibault Delavallée 1f6d534f5a [IMP] mass_mailing: redirect to filtered view when clicking on stat buttons
Purpose of this commit is to improve user experience in mass mailing by
redirecting users on filtered views when clicking on sent / delivered /
read / opened / clicked stat buttons. Currently it redirects to the
statistics view which is not the most useful one.

This commit is linked to task ID 1885121 and closes PR #27003.
2018-09-20 13:02:17 +02:00
XavierDo 932ac0e42a [FIX] mail: clean context before default activity creation
When trying to mark an activity as done & launch next from the crm
kanban view, an default_type "opportunity" was present in the context,
and kept untill trying to create a voip phonecall if the default
next activity type had a category "Phonecall". Removing the default
from the context in this case will avoid this kind of error.

PR: #27128
2018-09-20 12:42:33 +02:00
XavierDo f7957fb6aa [FIX] mail: prevent redirect to app switcher
Before this commit, trying to send or preview a mail from a kanban view was
redirecting to the appswitcher.
2018-09-20 12:42:33 +02:00
Vincent Schippefilt a0ce697b05 [FIX] web: add mouseenter when triggering a dra&drop in tests 2018-09-20 11:10:34 +02:00
Vincent Schippefilt cfbdba7ff2 [FIX] web_tour: drag&drop trigger a mouseenter event before beginning the drag 2018-09-20 11:10:34 +02:00
Vincent Schippefilt 77be4214db [FIX] account: update report layout to be editable by report editor
This fix fixes 2 issues:
- the definition of the row/col structure on the document meta-data
- the content of the headers is within a span so it is editable
2018-09-20 11:10:34 +02:00
Vincent Schippefilt 3092432daa [IMP] web: add a fix on underscore to support cancellableThrottle 2018-09-20 11:10:33 +02:00
Rémi Rahir ca95b39f77 [FIX] snailmail: fix assets import
As we are doing a conditionnal import of the assets on the env.context,
we need to make sure that the env is set.
2018-09-20 11:07:33 +02:00
David Beguin b1251b40d5 [FIX] hr_attendance : fix kiosk mode quick multi scanning
Since the the commit that added the barcode listener in the
greeting_message view (aaff7d5d51),
if someone check in and check out and check in again quickly,
during the 5 seconds before the welcome view come back,
multiple rpc where made to call attendance_scan method,
resulting to create inconsistent records in the db.
Typically, a check in records could have been create before
the confirmation of last check out.

Here, we avoid scanning twice the same barcode, between welcome
and greeting message view but also inside the greeting message view
itself.

Employees are now able to check in or check out quickly. Obviously,
if the same employee wants to check in and check out within 5 sec,
he will need to wait the 5 seconds.

Task ID 1878251
Closes PR #27101
2018-09-20 10:09:02 +02:00
David Beguin 6d141a1ab9 [FIX] hr_org_chart : Fix width of organisation chart
Task ID 1881825
Closes PR #27087
2018-09-20 09:56:14 +02:00
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