Commit Graph
103698 Commits
Author SHA1 Message Date
Denis Vermylen (dve) 0ea478652a [FIX] hr: employee data and demo data
addendum to commit da6b9d1be443999028f021ff81b4cf128a4eaaa2
- better employee name and image for default employee in data (xml-id: hr.employee_root)
- in demo data hr.employee_fp renamed to hr.employee_root to not have 2 employees linked to the root user
- renamed all occurences of employee_fp to employee_root
2016-07-04 17:19:23 +02:00
qsm-odoo 91a2881ca1 [FIX] web_tour: tours for mobile mode
Before this commit, tours were disabled for mobile mode by returning
an undefined value in the web_tour.tour JS module. This made the use
of "tour.register" or "tour.run" crash, thus making the runbot go red
if this happened while phamtomJS was running.
As it happened, some of the frontend tours goes by "preview the site
on mobile mode" which then trigger this JS crash.

This commit makes the web_tour.tour module return a fake tour object
with a register method which does nothing and a run method which
warns the user that tours cannot be launched in mobile mode.
2016-07-04 16:40:27 +02:00
Thibault Delavallée 53fe7e9fa6 [TESTS] mrp and various: updating tests 2016-07-04 16:22:37 +02:00
Josse Colpaert 2ddc35a530 [REF][NEWPIE] mrp: new MRP
This commit contains the core of the new MRP. It contains a whole refactoring
of the MRP application, with improved and new features, written in new API.
Among other here are the main manufacturing workflow improvements :

 - Picking type not only for pickings but also for manufacturing orders
 - Properties replaced by picking type
 - BoM can only be produced with its routing (no other)
 - Either produce without routing with only production orders, or produce with
   routing
 - By default, there is an order in the work orders (serially), but you can
   override it to be able to work in parallel
 - Time clocking on work orders and block time on work centers with reporting
   on OEE, performance, losses, ...
 - Real-time adaptation of timings on operations
 - Lots/serial numbers can be inputted like in the pickings on manufacturing
   orders.  It is also possible to input them in the work orders.
 - Material availability independent of production order state (possibility to
   start production when only part of it is there)
 - Work sheets on work orders
 - Put messages on work orders to make your workers pay attention to something
 - Full traceability link to see for each produced piece of stock, the
   consumed pieces, ...
 - Separate scrap object (a scrap is not done based on an original move
   anymore)
 - Separate unbuild system (if you want to unbuild into its original
   components)

Thanks to all people that helped during this development, notably but not
limited to Chirag A Dodiya (cod@odoo.com), Gaurav Panchal (gan@odoo.com),
Jignesh Rathod (jir@odoo.com), Mansi Trivedi (mtr@odoo.com), Pariket Trivedi
(ptr@odoo.com).
2016-07-04 16:22:37 +02:00
Josse Colpaert 55a140e666 [REF] product_extended: simplify price computation
Use bom to compute product price. Remove the unnecessary wizard to simplify
the flow.
2016-07-04 16:22:37 +02:00
Josse Colpaert 6182b45fb8 [REM] mrp_operations
This module will be integrated into the new MRP.
2016-07-04 16:22:37 +02:00
Josse Colpart 9a20c6556f [REF] (hr_)maintenance
- rename models from hr.equipment.something to maintenance.something
 - add concept of maintenance team and dashboard
 - remove generic alias for maintenance
2016-07-04 16:22:37 +02:00
Thibault Delavallée e7ef6e069c [ADD][SPLIT] maintenance: hr part
maintenance is not dependant on hr anymore. A new module hr_maintenance is
added that adds hr-related fields (employee owner, ...). This way maintenance
is a stand alone application.
2016-07-04 16:22:37 +02:00
Thibault Delavallée 12a35ec1a9 [MOV] hr_equipment to maintenance
hr_equipment module is renamed to maintenance. No change is performed to the
module itself. It prepares further changes, mainly splitting maintenance from
hr_maintenance.
2016-07-04 16:22:37 +02:00
Thibault Delavallée 71aee8e166 [TESTS] procurement: yml yo new API unit tests 2016-07-04 16:22:36 +02:00
mtr-odoo e924881f7c [MIGR] procurement 2016-07-04 16:22:36 +02:00
mtr-odoo c458756f0a [MOV] procurement: move and split 2016-07-04 16:22:36 +02:00
Thibault Delavallée aca18782a3 [TESTS] mrp_repair: yml to new API unit tests 2016-07-04 16:22:36 +02:00
Mitali Patel 653d63153e [MIGR] mrp_repair 2016-07-04 16:22:36 +02:00
Mitali Patel c3f23afb61 [MOV] mrp_repair: move and split 2016-07-04 16:22:36 +02:00
Thibault Delavallée 1027754d70 [TESTS] mrp_byproduct: yml to new API unit tests 2016-07-04 16:22:36 +02:00
Mitali Patel 0ea69f1afc [MIGR] mrp_byproduct: new API 2016-07-04 16:22:36 +02:00
Mitali Patel 58ee9b99c3 [MOV] mr_byproduct: move and split 2016-07-04 16:22:36 +02:00
Thibault Delavallée ab9335fa92 [TESTS] mrp: yml to new API unit tests 2016-07-04 16:22:35 +02:00
Dhaval Panchal 30850f99f8 [MIGR] mrp: new API except mrp_production
MRP module is migrated to the new API. It excludes mrp models that will change
quit a lot during the new MRP conversion. Actually most of the code is not
migrated, but at least side models and their methods are already migrated.
This should lessen the diff when writing the new MRP.
2016-07-04 16:22:35 +02:00
Dhaval Panchal c8a39e734f [MOV] mrp: move and split
Split files and move them according to the new API guidelines. Containing

 - mrp splitted into its main models and files
 - stock code moved into its own models and files
 - various renaming
2016-07-04 16:22:35 +02:00
Josse Colpaert ba7274dc01 [IMP] resource, misc: time_efficiency on 100 scale 2016-07-04 16:22:35 +02:00
Josse Colpaert abf967b9ad [IMP] product: name_get for product
Product use code instead of template default_code in the name_get. Incredible.
2016-07-04 16:22:35 +02:00
Thibault Delavallée d80d6f3960 [FIX] sale: sale_warn default value 2016-07-04 16:22:35 +02:00
Thibault Delavallée 91371c6dbe [IMP] stock: warehouses configuration
See it in multi warehouse or in technical group, to be able to configure it
even in mono warehouse mode.
2016-07-04 16:22:35 +02:00
Jeremy Kersten 68b95fb264 [FIX] website_sale_delivery: Adapt website_sale_delivery module to the new checkout 2016-07-04 15:48:15 +02:00
Jeremy Kersten e4a317a176 [ADD] website_sale: checkout process
Change checkout process.

- Billing address is always the connected partner_id or neww partner_id.
- Shipping address is contact of current commercial_partner_id
- New checkout design for address selection
- Add delete a line in my cart
- Fix input quantity size
- Refactor/Reindent xml template from website_sale
- Improve the modularity for checkout (preprocess, posprocess, required fields, ...)
- Allow to use form builder in extra step for OEE (No edit mode)
- Add route to have states according country selected (need to be overridable for website_sale_delivery)
- ...
2016-07-04 15:48:15 +02:00
Jeremy Kersten bb7bfd7382 [REM] website_sale*: update test from checkout with public user
Now we drop the test where a user is created via the checkout form (public user).
These tests should be rewrite in new api later an test flows for a new customer.
2016-07-04 15:48:15 +02:00
Jeremy Kersten 4dce86164c [FIX] website_sale: fix order for the pager in front end.
In psql, use LIMIT and OFFSET together without a fully specified and uniq sort order
will generate unexpected behaviour.

Eg:
> id   id_dept  name
> -------------------
> 1    1        Tom
> 2    1        Mike
> 3    2        Meggie
> 4    2        Marge
> 5    3        Bart
> 6    3        Lisa

> using LIMITed selects like:

>    SELECT * FROM employee ORDER BY id_dept LIMIT 3
>    SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 3
>    SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 6

> You can have some result missings from the 3 requests, and others duplicated.
> Because id_dept is not a uniq order.
2016-07-04 15:48:15 +02:00
Jeremy Kersten 645b1687fc [IMP] payment: change default text for wire transfer 2016-07-04 15:48:15 +02:00
Jeremy Kersten e11a836c10 [REF] website, website_blog, website_sale: move QueryURL to be common 2016-07-04 15:48:15 +02:00
Jeremy Kersten bf88456943 [ADD] base: add company_name field on res_partner
res_partner now have a new concept of company_name. (duplicaed of parent_id)

That allow to a frontend user to have a company name without create a useless
tree of "Company -> Partner -> Contacts"

Before this commit, we was using street2 or street field to do the same thing.
That was confusing in some screens because according from where the partner has
been created, the company name was stored in distinct field and that was like
a bug for some users.

commercial_company_name is based on the same behavior of commercial_partner_id.
It is base on the field company_name.

In Partner form wiew, a quick button has been added in edit mode if however
the user want to create the partner tree to add new collegues.
2016-07-04 15:48:15 +02:00
Jeremy Kersten 15fe3d43b4 [IMP] base: add required state for address
Some address have required state.
We add by default moreover 500 new states.

We try also to merge duplicated states
wich have the same country and code.

Once merge is done, we try to had the unicity constraint
to avoid futur duplicates.

Merge code, should be removed in v11.
2016-07-04 15:48:15 +02:00
Raphael Collet ac811b9fb3 [FIX] hr_attendance: keep ir.http abstract 2016-07-04 15:24:47 +02:00
Christophe Simonis 9e9369acc0 [FIX] web_tour: still keep ir.http abstract 2016-07-04 14:39:49 +02:00
Christophe Simonis 27987a54b4 [FIX] web: keep ir.http abstract 2016-07-04 13:48:18 +02:00
Christophe Simonis 5a3a06f26f [MERGE] forward port of branch saas-11 up to d4d09df 2016-07-04 13:16:34 +02:00
Mansi Gandhi 36ce096600 [IMP] purchase: Remove create and edit option from 'supplier currency' field.
We are able to create a currency on the fly. A user should not be able to
create a currency when entering master data, currency should only be added
through the currencies menu item and a part of configuration.
2016-07-04 12:57:44 +02:00
Jeremy Kersten 273b969c92 [FIX] point_of_sale: tour
Block all JS since Service 'crm.tour already defined'
2016-07-04 12:36:17 +02:00
Fabien Pinckaers fb289e0b5d [SEC] rating: escape feedback, text2html to avoid js injection
[IMP] rating: website rating page: reviewed design, rate on click, update on submit
[IMP] rating_project: rating_status: 'no' instead of False
[IMP] rating_project/issue: smileys insteaf of thumbs for consistency in kanban
[IMP] rating: allow to update an existing rating (feedback + rate)
[IMP] rating: consistency on rating names (statisfied, not satisfied, higly dissatisfed)
[IMP] rating: avoid deadend after rating, button to go to Odoo
[IMP] rating: res_config better sentence
2016-07-02 18:33:55 +02:00
Olivier Dony d4d09df143 [MERGE] Forward-port saas-10 up to f76f4cd0b6 2016-07-01 20:14:28 +02:00
Olivier Dony f76f4cd0b6 [MERGE] Forward-port 9.0 up to 7f2e748a22 2016-07-01 18:36:24 +02:00
Olivier Dony 8d8f1bdb6a [FIX] ir.qweb: t-lang had no effect anymore, e.g. when printing reports
Setting the env of the qwebcontext is not sufficient because the closure
of the `loader` carries its own contexts and lang, so subsequent t-calls
may still use the original language.

This was broken by the new API conversion at commit
4ddc323139,
and further broken by the forward-port
6c8141a1dfa9fa44067d052b368e3851972d836cA with a wrongly indented line.
2016-07-01 18:09:32 +02:00
Cedric Snauwaert 2f3b32c676 [FIX] base_import: fix error when trying to load a file and then clicking on cancel while file opener is opened 2016-07-01 16:57:27 +02:00
Raphael Collet f4677cf2a6 [FIX] account, purchase: keep model 'mail.compose.message' transient 2016-07-01 16:04:55 +02:00
Denis Vermylen (dve) 580129522f [FIX] hr: data remove duplicate root user employee
Replace employee linked to base.user_root (administator) in data
by employee_fp (Pieter Parker) from demo data in order to avoid having 2
employees linked to the root user.
2016-07-01 16:01:42 +02:00
Raphael Collet 4ee6adf4b2 [IMP] models: model extension may not change kind (abstract, model or transient)
This prevents a model extension from:
 - changing an abstract model to a non-abstract one,
 - changing a transient model to a non-transient one or vice-versa.
2016-07-01 16:01:04 +02:00
Simon Lejeune 7f2e748a22 [REV] base: allow 'render' override with new api
Using a frozendict as context breaks the `t-lang` mechanism, as
the `loader` is not aware of the changes of a copied frozendict
and thus is still using the values from the original context,
including the lang one.

This reverts commit e1deae7eab.
2016-07-01 15:41:39 +02:00
Joren Van Onder 61d830c302 [IMP] website_quote: add option to save payment token
The form_save payment type is used by acquirers (currently only ogone)
to return a reusable payment token on successful payments. These can
then be used to charge the customer again.
2016-07-01 14:45:37 +02:00
jat-odoo 0b1a27a3c7 [REF,IMP] project,project_issue,rating: Handle ratings more efficiently
Purpose:

For our internal project management, we would like to track the customer
satisfaction on the open projects. We send them an email every one or 2
weeks allowing them to give a feedback by clicking on one of 3
smileys: Happy, Average, Angry. They can also put a additional explanation.

We already have something similar which is working on livechat with a
unusable reporting, and on issues but unusable. Our project are managed by tasks.

Specification:
- On the project : Selection fields : (Periodical Rating or Rating on Stage)
  + Fields to choose the period if periodical
- On the stage : email_template_id field.
- IF :
---> Periodical : Send an email to all the customers for the tasks on this stage periodically
---> On Stage : Send an email to the customer's tasks when the task reaches the stage
- That way, it's impossible to send a satisfaction request both periodically and sequentially.
  FP request
- Who is the customer : The customer on the task OR the customer on the related sales order
  OR the customer on the projet OR nobody
- The last feedback is displayed on the task kanban card (Thumb up, down, or neutral)
- On the project kanban card, the customer satisfaction is displayed. This is the simple
  mean of all the previous ratings.
2016-07-01 14:05:03 +02:00