Commit Graph
97076 Commits
Author SHA1 Message Date
Antony Lesuisse 3286dc2ec7 [MERGE] project_issue: website portal
- Remove portal_project move rules to project
- Add issues in the /my/home frontend portal
- Remove website_project, task access is backend only
2015-08-14 13:19:31 +02:00
Damien Bouvy 60514d0d0d [REM] website_project: this half-finished module does not make sense anymore since public projects have been removed 2015-08-14 13:19:04 +02:00
Damien Bouvy 6ca900ab01 [IMP] website_rating_project_issue: remove public projects
- remove public project
- some data was depending on demo data, moved it to demo
- add website_published mixin on projects
- remove project members from frontend view

Since public projects do not exist anymore, project.project objects now have the website_published mixin; any project with the rating activated and published on the website will be visible in the "Project Customer Satisfaction" link for public users
The frontend template has also been modified to remove the team members photo since project members have disappeared as of 9398fe9 by our dear @tde-banana-odoo
2015-08-14 13:19:04 +02:00
Dharmraj Jhala 56c5d0afeb [IMP] website_project_issue: frontend view for issues under My Account page of website, and removed link to the backend and its related files
[ADD] website_project_issue_sheet: link module between website_project_issue and project_issue_sheet
Frontend integration of issues:
    - issues details
    - chatter integration
    - timesheets
2015-08-14 13:19:04 +02:00
Damien Bouvy 8bd6074f03 [IMP] project,project_issue,project_timesheet,project_issue_sheet: project visibility and access rights modifications
[REM] portal_project: move ALL the things
- move portal access rights from portal_project  and website_project_issue to project and project_issue
- move portal menuitems back to their respective module
- remove public visibility of projects
- adapt demo data to have a 'Demo Portal' project
- add correct access rights for account.analytic.line for portal users
- small view tweak (do not display 'timesheet' tab if one can't see antyhing in it anyway)
2015-08-14 13:19:03 +02:00
Damien Bouvy 8db80880a6 [FIX] project_issue: missing api.returns decorator on project_issue.message_post() 2015-08-14 13:19:03 +02:00
Christophe Matthieu f8357a1a60 [FIX] report: update data with options for backward compatibility; Remove empty website_report module. 2015-08-14 12:00:02 +02:00
qdp-odoo 60003c44b0 [FIX] l10n_fr: fixed wrong xml reference 2015-08-14 11:30:53 +02:00
Fabrice Henrion d1be52cbde [FIX] point_of_sale: config options typos 2015-08-14 11:18:46 +02:00
Ronak Baxi 4943877068 [IMP] base,base_setup: new light multi company group 2015-08-14 10:51:08 +02:00
qdp-odoo d0775a624b [FIX] l10n_fr is back, compliant with the new accounting. The custom reports for BS and PL are still disabled, though... we'll have to investigate more to decide if we fallback on the default ones or need to reactivate them 2015-08-14 10:24:40 +02:00
qdp-odoo 30b39ec497 [FIX] l10n_co is back, compliant with the new accounting 2015-08-14 10:24:40 +02:00
Martin Geubelle 48ab50ed0d [IMP] point_of_sale: new pos.config dashboard
This dashboard has implied some refactoring:
 - the wizard pos_session_opening has been deleted and all the methods have been put inside pos_config
 - new fields in pos_config to display some useful informations (closing balance, closing date, etc.)
2015-08-14 10:22:39 +02:00
Dharmraj Jhala 67a74ebe2b [IMP] website_hr: usability improvements
- Added module description
- Added public_info field to employee form view
- Fixed bootstrap columns height issue on About Us page
2015-08-14 10:22:39 +02:00
Gaurav Panchal 36e6292466 [FIX] web: radio horizontal
The widget was completely broken when usign the horizontal display.
It has been fixed, hopefully in a way that lessen the xml and
css.
2015-08-14 09:48:19 +02:00
Thibault Delavallée 19a252d578 [REM] account: unnecessary code
Removed a code that allows to write a message, using a subtype that
does not exist. This is probably critical for some business, but
as I don't know which ones, let's remove it.

Chatter is sufficient.
2015-08-14 09:48:19 +02:00
Raphael Collet 44383c5502 [IMP] fields: improve API and implementation of resolve_all_mro
Make the function traverse the class hierarchy upwards, retrieve the value of
the attribute, and stop when the value does not satisfy the given condition.
2015-08-14 08:56:24 +02:00
Yannick Tivisse 7f4b719a66 [IMP] point_of_sale : add modules res_config for pos_reprint and pos_mercury 2015-08-13 17:29:44 +02:00
Yannick Tivisse 9231d10295 [IMP] sales_team : cannot create a sales team in dashboard. 2015-08-13 17:23:22 +02:00
Yannick Tivisse 114d8f1199 [FIX] stock: Wrong definition of menuitem Warehouse Management 2015-08-13 17:23:22 +02:00
Yannick Tivisse 0d4cceced6 [IMP] crm: modifying a new option into a selection field + radio button 2015-08-13 17:10:21 +02:00
Yannick Tivisse 9f6f564ed9 [IMP] stock : settings organization improvements 2015-08-13 17:10:21 +02:00
Yannick Tivisse df5f810794 [FIX] Stock : Remove Operations Types menuitem, as the Picking Types menuitems was displaying the same thing 2015-08-13 17:02:39 +02:00
Yannick Tivisse b408013329 [IMP] lunch : Amazing Im Feeling Lucky Button 2015-08-13 16:54:57 +02:00
qdp-odoo 62c3653685 [FIX] purchase: added embedded form view for purchase.order.line since the yaml files trigger the onchanges only from embedded form view (not the editable tree views) 2015-08-13 16:17:26 +02:00
qdp-odoo 9a2115eefc [FIX] purchase: opening the product from the purchase.order.line form view or modifying the line was crashing because of references to unknown 'parent' object. 2015-08-13 11:24:46 +02:00
Jitendra Prajapati 31fc8fdab3 [FIX]account_voucher: move_line_id field is no more available in the Voucher Lines. so i have removed related code on if condition. 2015-08-13 11:10:11 +02:00
qdp-odoo 2ffdbae30e [FIX] l10n_eu_service made compliant with the new accounting design 2015-08-13 10:59:04 +02:00
Raphael Collet d4bf5a2efc Merge pull request #7576 from odoo-dev/master-optimize_setup_models-rco
Optimize registry.setup_models() such that some fields can be reused between registries. This happens when a model has the same base classes as another model.

This reduces the registry setup time.
On the runbot, this reduces the total execution time by ~20%.
2015-08-13 10:49:15 +02:00
Raphael Collet 69f7f1c9ee [IMP] models: share fields across registries when possible
When a model is set up, it can retrieve fields from a similar model (with the
same base classes).  Only proper (not inherited), regular (non-related) fields
can be shared that way, since other fields may depend on other models.
2015-08-13 10:45:00 +02:00
Raphael Collet 7d6abb6f31 [IMP] fields: simplify implementation of method setup_triggers 2015-08-13 10:45:00 +02:00
Raphael Collet de363ce909 [IMP] fields: move computed_fields, inverse_fields and _triggers to models
This removes an obstacle for sharing fields across registries: regular fields
no longer contain metadata referring to other models/fields.
2015-08-13 10:45:00 +02:00
Raphael Collet ec0636a289 [IMP] fields: do not use methods bound to model classes
Avoid this reference from a field to a model class; this will allow the sharing
of fields across model classes.  Use `getattr` on class instances instead.
2015-08-13 10:45:00 +02:00
Raphael Collet 6161c85d55 [IMP] fields: optimize setup_base() for regular (non-related) fields
Split the methods `_setup_regular` and `_setup_related` in `base` and `full`
parts, such that the `base` part is done in `setup_base()`, and the `full` part
is done in `setup_full()`.

This optimizes the setup of models during the installation of modules: regular
fields are not set up again from scratch.  Only related fields (which are less
common) are always set up from scratch.
2015-08-13 10:45:00 +02:00
Raphael Collet 9fa4c2d1d8 [IMP] models: optimize _setup_base() by not retrieving proper fields
The method uses the costly `inspect.getmembers` to retrieve the fields defined
on a model's classes.  If the model is not modified by a module installation,
we simply reuse the fields retrieved in a former model setup.
2015-08-13 10:44:59 +02:00
Raphael Collet c6c1824b7a [IMP] fields: rename methods set_class_name and setup, and change their API
The API of those method has been modified to take a recordset instead of a class
as parameter:

    field.set_class_name(cls, name)   ->   field.setup_base(model, name)
    field.setup(env)                  ->   field.setup_full(model)

The recordset gives access to an environment, and will ease code reorganization
in the field's setup methods.
2015-08-13 10:44:59 +02:00
Raphael Collet d46e9f4433 [IMP] models: convert some class methods to @api.model methods
Converting the following class methods to model methods will make them more
flexible for changes, in particular by making the environment available:
 - `_add_field`
 - `_pop_field`
 - `_add_magic_fields`
 - `_init_manual_fields` (renamed to `_add_manual_fields`)
 - `_inherits_check`
 - `_init_inherited_fields` (renamed to `_add_inherited_fields`)
2015-08-13 10:44:59 +02:00
Raphael Collet a4eaa86e44 [IMP] fields: split attribute _attrs into args and _attrs
Make an explicit distinction between both semantics of `_attrs`:
 - the parameters given to `__init__` in `args`
 - the non-slot attributes (memory optimization) in `_attrs`
2015-08-13 10:44:59 +02:00
Raphael Collet e6d4a63561 [IMP] fields: add attribute origin to avoid confusion with column
Making a distinction between the column from which the field was created, and
the one created from the field, allows to keep the second one from a registry
setup to the next one.  This opens a door for optimizations: the column may not
need to be recomputed.
2015-08-13 10:44:59 +02:00
Jay Patel c9dbc73faf [IMP] base,project: project attachments views
- Add nocontent tip in kanban view of project documents and remove create button.
- Hide a lot of noisy fields from attachment form view in technical group.
2015-08-13 10:43:31 +02:00
qdp-odoo 7a9f4ad991 [FIX] l10n_eu_service: parent_id doesn't exist anymore on account.account. 2015-08-13 10:32:04 +02:00
cod-odoo bd3fbd282d [FIX]Fixed tax sequnce issue on result of computed tax. 2015-08-13 08:59:40 +02:00
xmo-odoo 37868748ca [FIX] web: serialize debug_jobs
Otherwise the display in the server log (when spammed by phantomjs) is completely useless
2015-08-12 17:54:00 +02:00
Aaron Bohy 72e94beeb5 [FIX] board: don't use ir_values to get dashboard action id
Former implementation used ir_values to retrieve the dashboard action id from
its menu id. Using ir_values to do that doesn't work anymore since the
cleaning up of rev. e7e452f.

We now retrieve the action id from its xmlid directly in the controller.
2015-08-12 15:39:16 +02:00
Aaron Bohy 512f19c9c4 [IMP] board: My Dashboard layout 2015-08-12 15:39:15 +02:00
Aaron Bohy 40971b1b4f [FIX] calendar,web_calendar: calendar.event: start field readonly
The start field is a computed field but it doesn't have any inverse function
(write() is overridden in calendar.event to, among other things, play the
role of the missing inverse function). It is thus automatically set as
readonly, and the events can't be dragged and dropped in the calendar view,
since rev. d6d3d098 in which we start checking if the start_date is readonly
or not before allowing the drag and drop.

This rev. simply adds a "do_nothing" inverse function so that the date field
is not readonly.

In web_calendar, the date_start attribute is mandatory so fallbacking on
date_end and date_delay is unnecessary.
2015-08-12 15:39:15 +02:00
Aaron Bohy 1c8ca666c7 [REF] *: tree: use semantics decoration-{class} attributes
instead of deprecated colors and fonts attributes
2015-08-12 15:06:39 +02:00
Yannick Tivisse 8fb1446203 [FIX] hr_payroll: access_right issue on employees form view. 2015-08-12 14:54:30 +02:00
Thibault Delavallée 7fc8577238 [IMP][TEST] membership: tests updates
- update yml tests, crashing because of changes in the accounting
+ some light cleaning
- add python unittests, because those are way cooler than yml
2015-08-12 14:42:31 +02:00
Thibault Delavallée 0deef9b7f5 [FIX] membership: fix function fields computation
- correctly compute the invoice and its lines, in order to trigger the
computation of the membership_state on the partner
- correctly compute, using a true multi returning correct values, the
various dates of membership
- use the sequence of function field to ensure that the dates and state
are computed in the correct order; otherwise some states are not
reachable
- various fixes in the computation
2015-08-12 14:42:31 +02:00