Commit Graph
106440 Commits
Author SHA1 Message Date
Yannick Tivisse bd2bae87df [FIX] l10n_be: Do not import unexisting file 2016-07-07 15:27:24 +02:00
Goffin Simon c7c394939a [FIX] hr_payroll: creation of a salary computation line
To create a payslip line the fields:
-employee_id
-contract_id
-salary_rule_id

are required.

opw:681912
2016-07-07 15:14:25 +02:00
Hitesh Trivedi 53fe4007f4 [MIG] base_import: migrate tests
Some changes were required since in new API, fields label
are not manage as before (defaulf value is field name, and
not 'unknown' anymore).
2016-07-07 14:44:10 +02:00
Hitesh Trivedi 46df9da439 [MIG] base_import : migrate to new api 2016-07-07 14:44:10 +02:00
Hitesh Trivedi cf3e8324f1 [MOV] base_import: module directory organization
Note: move test models file in models to not import tests
directory, which breaks the mute_logger of test cases
2016-07-07 14:44:10 +02:00
Christophe Combelles e38947989a [FIX] setup: backport of 6ceb0a2b1b
[FIX] setup.py: pyparsing version inconsistent with requirements

Fixes #12693
2016-07-07 14:05:20 +02:00
Nicolas Martinelli 45b3e6b96c [IMP] hr_recruitment: filter on active records
It is now possible to filter the applications on their archived status.

opw-682119
2016-07-07 14:00:06 +02:00
Nicolas Martinelli 2bf8a6541b Revert "[FIX] hr_recruitment: incorrect recruitment report"
So @sig-odoo is not the only one to revert his own fixes :-)
Anyway, we want to be able to get statistics about archived applications
as well.

This reverts commit 7e0e27ea79.
2016-07-07 12:39:59 +02:00
Christophe Simonis 45fc5f7a8f [I18N] web: change term after 3888301a2e 2016-07-07 12:38:05 +02:00
Denis Ledoux b329d6219e [FIX] hr_attendance: Attendance Error Report fail afer upgrade
After upgrading the `hr_attendance` module,
it was no longer possible to use the
`Attendance Error Report` link in the `More`
menu of employees.

This is because there were two binding actions
added in the code under the samename
(`Attendance Error Report`):
 - `hr_attendance_error_values`
 - `action_report_hrattendanceerror`

The first launch a wizard which will print the report
after filling the required data,
The second tries to directly print the report, but it
fails because required data (from the wizard) is missing.

Before update, it's the first binding action that was displayed.
After update, it was the second, which failed.

We solve this issue by changing the way the report is
created through the data, by not using a `<report/>` tag,
this one creating automatically the action binding.
Instead, we use a classic `<record/>` tag, which
doesn't create automatically the action binding.

opw-682720
2016-07-07 12:29:54 +02:00
Fabien Pinckaers 3888301a2e [IMP] web: Quantity is very misleading in reporting views --> e.g. SO Line Quantity is perceived as Quantity of products, whereas it's the count of SO Lines. Renaming to Count 2016-07-07 12:28:57 +02:00
xmo-odoo 78fa186f88 [FIX] hr_contract: employee form statbutton's icon
The name of the icon on the statbutton was apparently broken during the
new-api migration (commit 095d0174fd),
leading to the icon not appearing on the "Contracts" button of the
Employee form.
2016-07-07 12:17:21 +02:00
Nicolas Martinelli 7e0e27ea79 [FIX] hr_recruitment: incorrect recruitment report
The recruitment report used in the pivot view does not filter out the
archived records.

opw-682119
2016-07-07 11:35:52 +02:00
Goffin Simon a082ec6aea [FIX] sale: Expenses in multi currency
Steps to reproduce:

-Set your company in USD
-Create a SaleOrder with a pricelist in EUR
-Create an expense in USD, with the analytic account of the SO
-Confirm the expense and post journal entries.

Bug:

The unit price of the new SO line was wrong: it was stil in USD as in
the expense.

Expected behavior:

The price unit must be converted in EUR

opw:682378
2016-07-07 11:31:54 +02:00
cod-odoo 7dcb518567 [FIX] mrp: Fixed traceback on print BoM Structure and single method for work order counts 2016-07-07 10:11:51 +02:00
Martin Trigaux aa686c2a55 [FIX] decimal_precision: no multi-company
There is no company_id field so no way to configure it on the company level.
The decimal precision is at the field level so it is not possible to make it
different per user.

Fixes #12654
2016-07-07 09:55:42 +02:00
Nicolas Martinelli a1c3fe1291 [FIX] crm: opportunities list view
When the lead step is activated (`group_use_lead` is true), 2 dinstinct
tree views can be selected to display the opportunities.

Indeed, when the action "Your Pipeline" is selected, the tree view
`crm_case_tree_view_oppor` is displayed thanks to the method
`action_your_pipeline`. However, when the page is reloaded or the tree
view is saved in the custom dashboard, the tree view
`crm_case_tree_view_leads` is selected instead.

The fix is to specify explicitly in the action which view should be
chosen, accordingly to what is done in method `action_your_pipeline`.

opw-681488
opw-681734
2016-07-06 17:25:15 +02:00
Xavier Morel df4508635c [MIG] decimal_precision: migrate to new API 2016-07-06 17:19:44 +02:00
Xavier Morel 8f7b233bc1 [MOV] decimal_precision: apply standard layout
Had to alter marketing_campaign as it imported get_precision from deeper
into the module instead of properly getting it from the module's toplevel.
2016-07-06 17:19:36 +02:00
Goffin Simon d98eb32272 Revert "[FIX] product, website_sale: order by sequence product.template"
This reverts commit 0a13e5cb8e.

Changing the order of the products in stable version is not accepted.
2016-07-06 17:03:18 +02:00
Denis Vermylen (dve) 046f1eba58 [MERGE] hr_attendance/timesheet_sheet
- Migration of hr_attendance, hr_timesheet_attendance and hr_timesheet_sheet
  to new api.
- Revamping of hr_attendance; adaptation of hr_timesheet_attendance and
  hr_timesheet_sheet to the revamp. hr_timesheet_sheet now independent
  of hr_attendance, all dependencies moved to hr_timesheet_attendance
  which auto-installs when both modules are installed.

Closes #12698
2016-07-06 17:03:05 +02:00
Denis Vermylen (dve) d28479fec1 [FIX] hr_timesheet: hr_timesheet_demo.yml data adapted to be coherent with attendance demo data 2016-07-06 16:32:12 +02:00
Denis Vermylen (dve) 510d260434 [IMP] hr_timesheet_sheet, hr_timesheet_attendance: split hr_attendance dependency
* split hr_timesheet_sheet into: - hr_timesheet_sheet (fully independent from hr_attendance)
                                 - hr_timesheet_attendance (containing the dependencies to the revamped hr_attendance module)
* adapt timesheet_attendance to the revamped hr_attendance module, remove all commented dependencies
* few fixes to hr_timesheet_sheet, but some remain as it is deprecated.
2016-07-06 16:32:12 +02:00
Denis Vermylen (dve) 27082bbbf3 [MIG] hr_timesheet_sheet: migration to new api
- commented hr_timesheet_sheet dependencies to hr_attendance
- commented hr_timesheet_attendance dependencies to hr_attendance
- migrated hr_timesheet_sheet to new api
2016-07-06 16:32:11 +02:00
Denis Vermylen (dve) 9395b79296 [MOV] hr_timesheet_sheet: split hr_timesheet_sheet.py into multiple model files 2016-07-06 16:32:11 +02:00
Denis Vermylen (dve) c676e24b0b [MOV] hr_timesheet_sheet: moved files according to new api guidelines 2016-07-06 16:32:11 +02:00
Denis Vermylen (dve) 96b88b1275 [IMP] hr_attendance: migration and revamp
- Migration to new API
- MODEL : hr.attendance now has check_in and check_out datetimes plus a computed field worked_hours, no more action (in/out) and no more reason.
          hr.employee has extra fields: pin and barcode and can print a badge containing that barcode.
- the module contains : -> a menu "My Attendances" to check yourself in or out manually.
                        -> a menu "Manage Attendances" with 3 submenus:
                              - "Attendances" where you can edit attendances
                              - "Employees" where you have a kanban view of the employees (to see who's checked in or print badges)
                              - "Kiosk Mode": fullscreen, made to be at the entrance of companies to allow
                                 all employees to check in and out, either with a barcode scanner to scan your badge
                                 or by selecting them in a kanban view and checking in or out manually with or without
                                 entering their PIN.  (enable/disable in Configuration)
                        -> a menu "Configuration" where you can change enable/disable PIN use.
- GROUPS : -> HR manager (base.group_hr_manager): full access to the attendance module.
           -> HR officer (base.group_hr_user): full access except the "Configuration" menu.
           -> Manual Attendances (base.group_hr_attendance): only access to the attendance menu "My Attendance" to check in and out manually in the back-end
           -> Employee (base.group_user): has no access to the attendance module. (should only check in and out through the "Kiosk Mode" put at his disposal)
- Views adaptation to the new fields, addition of a presence indicator (green/red dot) to employee kanban and form views.
2016-07-06 16:32:11 +02:00
Denis Vermylen (dve) 17cd248721 [MOV] hr_attendance: moved files according to new api guidelines 2016-07-06 16:32:11 +02:00
Martin Trigaux 0df7a1ca2f [FIX] base: decode params_store content
The parameter bin_size=True will display the size of the binary field.

Fixes #12681
2016-07-06 16:24:50 +02:00
Raphael Collet 629e175501 [FIX] fields: enable setting attribute group_operator to None 2016-07-06 16:18:04 +02:00
Simon Lejeune cb30d0ef0e [FIX] web: qweb: correctly set preprocess_node on qweb engine
issue: xml template are not translated anymore

rev d56b35e2 moved qweb code inside the `qweb.js` file and also changed
the behavior with the introduction of a `QWeb` factory returning instances
of qweb rendering engine. However, we have to set on the rendering engine
instance a `preprocess_node` function that will translate the qweb
templates.

The solution for this issue (also introduced with rev d56b35e2) was
to set this function on the prototype of the QWeb factory, and it was
obviously not enough as it has to be attached to the rendering engine
instance.

In order to benefit from the fact that the `preprocess_node` function
is attached to the prototype of the QWeb factory, we could attach it to
the rendering engine instance with something like
`qweb.preprocessed_node = this.preprocessed_node`, however i find that
conceptually attaching a translate function to a factory does not make
sense, si i simply made `preprocess_node` a free function and i set it
on rendering engine instance.
2016-07-06 15:49:01 +02:00
Tanguy Charlier 9a6b26c02f [FIX] hr_timesheet: remove duplicate xml code
Most likely introduced during a forward-port.
2016-07-06 15:20:27 +02:00
Thibault Delavallée 3e59720cd0 [MERGE] payment_*: migrate to new API
Base payment module and then all specific acquirers are migrated to the new
API. Each module is migrated in two steps :

 - [MOV] files according to the guidelines
 - [MIG] python code to the new API

Some of the payment acquirers were already in new API. Small linting has been
applied on those, like renaming openerp to odoo or using selection_add instead
of a custom selection method.

In payment and payment_paypal prototype code about a first and unused s2s
implementation has been removed.
2016-07-06 15:17:06 +02:00
Thibault Delavallée 48278ed395 [MIG] payment_transfer
No functional change.
2016-07-06 15:10:49 +02:00
Thibault Delavallée 1d227799ac [MOV] payment_transfer: file organization 2016-07-06 15:10:49 +02:00
Thibault Delavallée 415eee1ca7 [CLN] payment_stripe: cleaning and guidelines
As this module is already in new API only small linting is performed.
2016-07-06 15:10:49 +02:00
Thibault Delavallée 86a51d28d0 [MOV] payment_stripe: file organization 2016-07-06 15:10:48 +02:00
Thibault Delavallée 28ca53c70e [CLN] payment_sips: cleaning and guidelines
As this module is already in new API only small linting is performed.
2016-07-06 15:10:48 +02:00
Thibault Delavallée d70d6c3cee [MOV] payment_sips: file organization 2016-07-06 15:10:48 +02:00
Thibault Delavallée 5f6c21c720 [CLN] payment_payumoney: cleaning and guidelines
As this module is already in new API only small linting is performed.
2016-07-06 15:10:48 +02:00
Thibault Delavallée 7fbb997732 [MOV] payment_payumoney: file organization 2016-07-06 15:10:47 +02:00
Shivam Dudhat f1ac1b1271 [MIG] payment_paypal: new API
No functional change.
2016-07-06 15:10:47 +02:00
Thibault Delavallée 9e69cfd0b4 [MOV] payment_paypal: file organization 2016-07-06 15:10:47 +02:00
Ravi Gadhia 4ef937ed38 [MIG] payment_ogone: new API
No functional change.
2016-07-06 15:10:47 +02:00
Thibault Delavallée b6c5b3a6b7 [MOV] payment_ogone: file organization 2016-07-06 15:10:46 +02:00
Rutul Raval 14d761b986 [MIG] payment_buckaroo: new API
No functional change.
2016-07-06 15:10:46 +02:00
Thibault Delavallée fd4b9bd74d [MOV] payment_buckaroo: file organization 2016-07-06 15:10:46 +02:00
Thibault Delavallée 76d124299b [CLN] payment_authorize: cleaning and guidelines
As this module is already in new API only small linting is performed.
2016-07-06 15:10:46 +02:00
Thibault Delavallée ad93be5df9 [MOV] payment_authorize: file organization 2016-07-06 15:10:45 +02:00
Thibault Delavallée e05f4612eb [MIG] payment_adyen: new API
No functional change.
2016-07-06 15:10:45 +02:00