Commit Graph
46 Commits
Author SHA1 Message Date
Florent de Labarre 0166b3ddbc [FIX] maintenance: give equipment same activities filters as other models
Commit 34da40a44d improved all activities filters used through various
apps. However in maintenance model maintenance equipment model was forgotten.
This commits fixes that in order to have same filters on all models using
activities.
2018-03-21 12:54:47 +01:00
Christophe Simonis 45958ab312 [MERGE] forward port branch saas-16 up to 5f9c3f51a8 2017-11-07 11:45:42 +01:00
Christophe Simonis 5fa577a14d [MERGE] forward port branch saas-15 up to 8ec60550a7 2017-11-03 13:36:41 +01:00
Christophe Simonis d8888bdbae [MERGE] forward port branch 10.0 up to aaa7566141 2017-11-03 12:10:41 +01:00
Nicolas Martinelli 75b7f62783 [FIX] maintenance: default supplier
- Go to Maintenance Requests, Create
- Go to 'Equipment' field, 'Create and edit'
- Go to 'Product Information' tab
- Click on 'Vendor' field, 'Create and edit'

'Is a Vendor' field is False

opw-779200
2017-11-02 11:51:24 +01:00
Deep Patel 29cb592e6b [FIX] maintenance: typo 2017-10-10 14:06:34 +02:00
Nikunj Ladava c01c620681 [FIX] maintenance: can change stage of maintenance request from statusbar 2017-09-29 17:47:26 +02:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
Kirti Choudhary 36a2bfb9cf [IMP] *: add and improve kanban views for mobile
This commit improves readability in kanban views.
The default view in mobile is kanban and many of them
needed to be improved.

task-33438
closes 17853
2017-09-05 13:21:58 +02:00
qsm-odoo bee69d3b2d [REF] *: get rid of o_visible and o_invisible in kanban
* account, hr, hr_recruitment, maintenance, mrp, point_of_sale,
  project, sales_team, stock
2017-08-28 12:53:17 +02:00
stefanorigano 8f315b1838 [REF] *: replace dropdown icons in kanban layouts
* crm, event, hr_contract, hr_recruitment, maintenance, mass_mailing,
  note, survey, web, website_event_track, website_forum_doc

Adapt kanban layouts so that the dropdown icon is now a vertical
ellipsis instead of a hamburger.
2017-08-28 12:53:17 +02:00
stefanorigano a8ec7f1d56 [REF] *: apply cards' color to the main card div
* account, hr, hr_recruitment, maintenance, mrp, point_of_sale,
  sales_team, stock

Adapt kanban layouts so that the color is set on the main 'kanban-box'
<div/> element to fit new design requirements.
2017-08-28 12:53:17 +02:00
Christophe Simonis b857fd4c90 [MERGE] forward port branch 10.0 up to 11270336fa 2017-07-19 16:21:12 +02:00
Antoine Huvelle 0df22ebb60 [FIX] maintenance: show real time taken for a maintenance
Previously, the calendar view only shown a 1h item whatever the duration of the
maintenance, which was wrong every time the maintenance took more or less than
exactly one hour.
Adding this parameter allows showing a calendar view reflecting the real time
taken by the maintenance operation.

Closes #18072
2017-07-14 15:03:31 +02:00
Christophe Simonis bf51fe55a1 [MERGE] forward port branch saas-16 up to 0f2b2c4e2b 2017-07-07 14:30:30 +02:00
Martin Geubelle a29f7f671b [FIX] *: explicit color_field attribute for m2m_tags
Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

The previous behaviour (always read the field `color`) was leading to server
warnings if the field was not present on the comodel.

Thìs commit set the `color_field´ for every many2many_tags on fields that have
a `color` field on the comodel.
2017-07-07 13:40:50 +02:00
Fabien Pinckaers 34da40a44d [IMP] acitvity filters cleaning 2017-07-05 23:32:23 +02:00
pgu-odoo 1142d66ecb [IMP] various: add 'Upcoming Activities' filter on various models using activities 2017-07-05 14:17:34 +02:00
Olivier Dony 5d2869cbc8 [MERGE] Forward-port saas-16 up to ba15df47cb 2017-06-01 01:46:13 +02:00
Olivier Dony ba15df47cb [MERGE] Forward-port saas-15 up to 17b847c0f6 2017-06-01 01:10:29 +02:00
Olivier Dony b9e2207267 [MERGE] Forward-port 10.0 up to 7e44444878 2017-06-01 00:15:27 +02:00
fka-odoo 792b3a8737 [IMP] kanban: Hide Configuration->Stage menuitems in debug mode
Purpose
=======

As you can easily edit your stages via your kanban view, this menu item is not necessary

Specification
=============

Following configuration/stages menu Move to debug mode

List of menu:

Quality/Configuration/Quality Alert Stages
PLM/Configuration/ECO Stages
Events/Configuration/Track Stages
Project/Configuration/Stages
Maintenance/Configuration/Maintenance Stages
Recruitment/Configuration/Stages
Email Marketing/Configuration/Campaign Stages
2017-05-22 14:11:49 +02:00
qsm-odoo 965d0c50ec [FIX] maintenance: use of "active" instead of "archive"
The maintenance.request "active" field was renamed to "archive" for some
strange reason by commit 9a20c6556f.
The value was also inverted.

Unfortunately, "active" was not replaced in a search filter.

opw-744168
2017-05-19 10:24:42 +02:00
Kishan Gajjar b2ebf59a11 [IMP] stock,mrp,barcode: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- stock: kanban for incoming products

- stock_picking_wave: kanban for picking waves

- stock: kanban for reordering rules

- stock: kanban for inventory adjustments

- stock: kanban for stock moves

- purchase_requisition: kanban for purchase agreement

- purchase_requisition: kanban for purchase agreement types

- procurement: kanban for procurement exceptions

- mrp: kanban for unbuild orders

- mrp: kanban for waiting availability mo

- mrp: kanban for routing

- mrp: kanban for bill of materials

- mrp_repair: kanban for repair orders

- mrp : kanban for work order messages

- mrp : kanban for productivity losses

- mrp : kanban for Orders to Plan(reuse Manufacturing Orders

- mrp : kanban for work centers(reuse Work Centers Dashboard)

- maintenance: kanban for equipment categories

- barcode : kanban for barcode nomenclatures
2017-05-11 11:38:42 +02:00
Pierre Masereel bac3eeb9e5 [IMP] maintenance: filter my_requests
We changed the field on which 'My requests' filter is applied from
'owner_user_id' to 'technician_user_id' because a normal employee who
has requests only see the ones he owns, and the responsible of
requests should be able to easily see the ones he's assigned to.
2017-04-27 17:38:15 +02:00
Pierre Masereel 12ca853392 [IMP] maintenance: reporting links and menu items
As the reporting on maintenances by team is already available through a
filter on requests and just show the pivot view, we added the the menu
item 'Reporting' and a link in kaban record of maintenance team to
redirect to the pivot view.
2017-04-27 17:38:15 +02:00
Haresh Shyara e55025f4bc [IMP] maintenance : views update
This commit modify the kanban card for maintenance requests/team:
For maintenance request:
Kanban view:
- Move the star priority from right to left
- Add the text 'request by' before the field owner_user_id
- Add the field for the technician with the text 'responsible'
- The image is the responsible and not the owner anymore
Forw view:
- Change the label for name from 'Subject' to 'Name'
- Change the placeholder for name from 'Maintenance Subject' to 'Maintenance Request'
- Request date field is read only and set to the date where the request is created
- Close date is read only and set when the request is in a done state
- Category is invisible if the related equipment has no category.
- Disable creation and opening maintenance team from the form view.
For maintenance team (dashboard):
- To Do button filter requests on their state
- Team name link to maintenance requests belonging to the corresponding team

Technically, there are just basic changes in the view.
2017-04-27 17:38:15 +02:00
Haresh Shyara 9e9d9e6490 [IMP] maintenance : team form and team members
This commit changes the maintenance team:
-In the form view -> replace Category name by Team name
-Replace the partner by a many2many with users
-Display the from view instead of editable list view of teams

In the model, the partner field is replaced by member_ids.
However this field is never used except in the form view.
2017-04-27 17:38:15 +02:00
Haresh Shyara e98f28671f [IMP] maintenance : add unscheduled maintenance
The feature added is a count of todo request that has no schedule date.
It will also add a link in the team dashboard that redirect to all
mainenance requests without a scheduled date.

The count is computed in the existing function '_compute_todo_requests'.
It will count requests that are not done and have no scheduled date.

This commit also modify the view and add the default filter 'unscheduled'
(created by a previous commit) for the action
'hr_equipment_todo_request_action_from_dashboard' which opens the maintenance
request for the active team.
2017-04-27 17:38:15 +02:00
sap e59c1b49c2 [IMP] web, various: apply kanban card color on header instead of whole card
Currently applying a color to a kanban item applies it to the whole
card. This creates usability issues as the content is not dynamically
updated to match the chosen color.

This commit proposes to apply the color only to the header and let the
card content standard. It helps designing cards that are always usable
and readable.
2017-04-24 10:36:29 +02:00
Christophe Simonis e92ae40d71 [MERGE] forward port branch saas-15 up to b0992d082d 2017-04-14 13:32:15 +02:00
Christophe Simonis 13ad16104a [MERGE] forward port branch 10.0 up to 00e169c05a 2017-04-13 13:22:27 +02:00
Christophe Matthieu 09731b7860 [IMP] calendar change view grammar.
* Remove filter tag
* Use color attribute on the view who add a filter/legend
* Filter is automatically added when 'avatar_field' option is used on a
field tag, and the default template display the avatar.
* Can overwrite the template (add tag template who contains qweb with
<t t-name="calendar-box">...</t>
2017-04-11 19:44:38 +02:00
Géry Debongnie 905e01921f [REF] web, *: redesign all JS views
This commit introduce a full redesign of all JS views.  We started
basically from scratch.  The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.

Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented

We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.

Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-04-11 19:44:38 +02:00
Pierre Masereel 57baccb14a [FIX] maintenance: scheduled maintenance request
When we set a period for preventive maintenance on an equipment which
has no maintenance team set, the cron cannot create the maintenance
requests.

To fix this issue, the maintenance team is now required when a period is
set on an equipment.
2017-04-10 14:54:53 +02:00
Jigar Patel 91b07d5092 [IMP] web_kanban,*: Change the More Call To Action by a 3dots icon to improve readability 2017-03-16 11:40:30 +01:00
Haresh Shyara 183aa1591d [IMP] maintenance: added duration to maintenance request in calendar view
Use case when it happens:
* Create a maintenance request
* Schedule a date with a duration greater than 1 hour
* Switch to calendar view
* The maintenance request stop time is equal to start time plus 1 hour
and the duration is equal to 1hour.

The calendar view doesn't correctly display the duration and stop date because
the duration field was not passed to the xml view.

This commit pass the duration to the calendar view in the xml and corrects
the help text of the duration field.
2017-03-16 11:14:51 +01:00
Christophe Simonis cbdd0b20dc [MERGE] forward port branch 10.0 up to ffd4442b06 2017-02-10 13:17:02 +01:00
Josse Colpaert 8810a34864 [FIX] equipment: activate cron for preventive requests
The xml file with the cron that creates the recurrent
preventive requests was not loaded in the system, so we needed to add
it.

Before, the cron was foreseen to only create the maintenance request on
the day that the request was foreseen (in the morning).  Now, it will
create a request if none exists on the next_action_date. That way the
requests can be planned for.

The other problem is that the '_compute_next_maintenance' method
for calculating the next_action_date does not take into account
the possibly manually already created requests.  So, now, the next
maintenance is calculated with the closed requests and the open ones.

If the first new one is in the past, it takes that date in the past. If it is in
the future, it will see if the gap is big enough to put a maintenance
in between the last done maintenance (or now) and the first new one.
If none exists, it is today + period.

That's why we have to add the 'request_date' in the depends. And take
into account the preventive requests existing on an equipment.
2017-02-03 18:56:10 +01:00
Denis Vermylen (dve) b8e1a00808 [FIX] maintenance: remove useless domain attribute
The domain attribute doesn't work for type="action" buttons/links sadly,
remove it to avoid giving false hope to those looking for such a feature.
2017-01-03 19:04:34 +01:00
Ravi Gadhia dce47eb4f5 [IMP] maintenance: add support of activities
maintenance.equipment and maintenance.request models now supports activities.
Filters have been added to ease their management.
2016-12-21 11:00:16 +01:00
dbh 01b516ed88 [IMP] *: rename all the 'Reports' menuitems into 'Reporting'
There is a confusion in name of menuitems 'Reports'. For example whe have a lot of printed reports containing reports (eg. Expenses Reports)

For the 'Analysis' reporting views, we should rename this into 'Reporting'.
2016-12-01 11:18:16 +01:00
Martin Trigaux 11812b0b9e [FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:

- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
  translated

The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).

Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).

This commit correct all the external ids tagged as from base or other incorrect
modules.
2016-09-02 16:14:26 +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