Commit Graph
93405 Commits
Author SHA1 Message Date
Olivier Dony f69034ee09 [FIX] ir.ui.view: allow importing views without arch_fs, for base_import_module
Data-only modules imported via base_import_module
do not have fs-backed source files, so the arch_fs
field for views should always be NULL, and the arch_db
version is always used.
Avoid crashing at arch_fs detection during import
via base_import_module.
2015-01-22 16:12:06 +01:00
Martin Trigaux 06187405c1 [FIX] purchase: do not erase description when change quantity
Add a flag to replace or not the previous product description.
Apply the same logic than in sale. Change the description field on a purchase
line only when the product is changed. opw 620093

Clean the views and replace wrong parameter in warning
2015-01-22 15:01:44 +01:00
Richard Mathot 1c76527ae5 [FIX] website_event_sale: missing # in formatted attribute 2015-01-22 14:30:05 +01:00
Richard Mathot 7153f3731a [IMP] website_event: Odooize demo data 2015-01-22 12:12:04 +01:00
Martin Trigaux adc041e4d4 [IMP] website_version: remove dupplicated menu
two menu had the id menu_website_view for the action
2015-01-21 17:21:37 +01:00
Yannick Tivisse 9207c4645a [IMP] Replace all oe_e class by fontawesome + remove entyporegular library 2015-01-21 16:11:26 +01:00
dka-odoo b960874960 [IMP] crm, sales_team : usability onboarding. Improvements in kanban and form views mainly. 2015-01-21 18:03:04 +03:00
Jeremy Kersten 656993edb3 [IMP] website_crm_score: add a first version for widget filter - need improvments 2015-01-21 15:23:45 +01:00
Simon Lejeune 59d6ce7b30 [REM] stock: remove stock level forecast report 2015-01-21 15:22:29 +01:00
Simon Lejeune 07849e43fc [REM] mrp: remove workcenter load report 2015-01-21 15:22:23 +01:00
Jeremy Kersten d7ea12c7ca [FIX] website_crm_score: remove default value for user_id, sql replace False by null value. 2015-01-21 14:42:41 +01:00
jir 2ad01aa2d1 [ADD] stock: "Stock Forecast" analysis view
Code courtesy of Jignesh Rathod <jir@odoo.com> and Josse Colpaert
<jco@odoo.com>.
2015-01-21 14:28:55 +01:00
Jeremy Kersten d653380782 [FIX] website_crm_score: fix bug in salesteam kanban 'ownerDocument' + misc.
Fix kanban:
    Move invisible user_id field outside the kanban-box.
    Since jQuery migration (1.8 -> 1.11), the function append has not the same behavior.
    $([undefined]).append() will crash, so when Odoo whas trying to render the user_ids m2m field in kanban, that crashs.
    Anyway, moving the code outside this kanban-box, will avoid to render an invisible m2m_tag.

Misc:
    Escape html
    concat with %s
2015-01-21 13:26:05 +01:00
Martin Trigaux 8e9ac21c69 [FIX] gamification: missing data in commit 2acad60
damn you git add...
2015-01-21 13:02:19 +01:00
Ravi Gohil 2acad60391 [FIX] gamification: translatable email notification
This requires a manual update/migration for existing template. opw 619786
2015-01-21 12:30:34 +01:00
Frédéric van der Essen 01c713aab0 [IMP] pos_discount: load the client side QWeb templates with the module manifest 2015-01-21 12:20:35 +01:00
Frédéric van der Essen 9f0b80d896 Merge branch 'master-pos-reprint-fva'
- This branch introduces the pos_reprint module which allows point of
   sales to reprint their last receipt. (only works with posbox printed
   receipts)
2015-01-21 12:13:47 +01:00
Frédéric van der Essen b3f0a0e744 [IMP] pos_reprint: port the module to the new internal pos api 2015-01-21 12:12:40 +01:00
Martin c3127ac48b [FIX] light name + icon 2015-01-21 12:12:39 +01:00
Martin b9433565bf [FIX] bad assignment 2015-01-21 12:12:39 +01:00
Martin e4730b3e57 [IMP] Optional button to allow cashier to reprint receipt 2015-01-21 12:12:39 +01:00
Christophe Simonis 4ccca49d34 [MERGE] forward port of branch 8.0 up to 592f1cd 2015-01-21 12:11:38 +01:00
Raphael Collet 592f1cd229 Merge pull request #4676 from odoo-dev/8.0-speedup_loading-rco
[IMP] models: speedup registry loading (25% less time)

The field setup on models is improved: only new-api fields are determined when building the model's class; the final _columns dict is derived from the fields once they are set up. This avoids setting up fields and columns at the same time, and finally overriding columns with the result of field setup.

This branch also fixes the model setup in general: with the former code, a model could be introspected while it was only partially set up, and not all its fields were known.

It incidentally fixes the "loss" of parameter partial that is necessary when loading custom fields. And during a partial setup, one2many custom fields are not introduced if their counterparts (model and many2one field) are not ready.
2015-01-21 11:29:05 +01:00
Raphael Collet 431f8de815 [IMP] models: prepare the setup of fields at one place only 2015-01-21 11:26:23 +01:00
Raphael Collet 54c655cb71 [FIX] models: do not introduce a one2many manual field if its inverse is not on its comodel 2015-01-21 11:26:23 +01:00
Raphael Collet cf26f7ed80 [IMP] models, registry: let the registry retrieve manual fields from database 2015-01-21 11:26:23 +01:00
Raphael Collet 5d7bba4eb7 [FIX] loading: move code that should not be executed on simply installed modules 2015-01-21 11:26:23 +01:00
Raphael Collet 6c29af3fa5 [FIX] models: init function fields once columns are known and not before 2015-01-21 11:26:23 +01:00
Raphael Collet 5fee95ca63 [FIX] models, fields: reorganize model setup to retrieve all inherited fields
The model setup sometimes misses entries in _inherit_fields and _all_columns.
This is because those dictionaries are computed from parent models which are
not guaranteed to be completely set up: sometimes a parent field is only
partially set up, and columns are missing (they are generated from fields after
their setup).

To avoid this bug, the setup has been split in three phases:
(1) determine all inherited and custom fields on models;
(2) setup fields, except for recomputation triggers, and generate columns;
(3) add recomputation triggers and complete the setup of the model.

Making these three phases explicit brings good invariants:
- when setting up a field, all models know all their fields;
- when adding recomputation triggers, you know that fields have been set up.
2015-01-21 11:26:23 +01:00
Raphael Collet 2f06adde9c [IMP] models: speedup registry loading (35% less time)
The field setup on models is improved: only fields are determined when building
the model's class; the final _columns is computed from the fields once they are
set up.
2015-01-21 11:26:23 +01:00
Adrien Peiffer 37e85a1e35 [FIX] view form: Use digits to round float values on client side 2015-01-21 10:38:32 +01:00
Julien De Coster f3e7cd1c0e [FIX] Mass mailing and marketing campaign glitch
1. Remove the mass mailing install checkbox from marketing and sales settings
2. Show the mass mailing settings only when the module is installed
3. Remove the marketing campaign install checkbox from marketing settings
4. Move the marketing_crm module into marketing_campaign
5. Merge the *.po files from marketing_crm with marketing_campaign
2015-01-21 10:05:48 +01:00
Géry Debongnie fe352d673f [FIX] web: properly hide list view in pop up dialogs
a many2many field can open a pop up dialog with different views, such
as form view and list view.  when the user click on the create button,
it should hide the list view and display the form view.  apparently,
this behavior was hardcoded in the pop up dialog, and broken at some
point between v8 and master.

A proper fix would be to abstract the
view manager behavior as a mixin and use it for the selectcreatepopup
widget, for the one2many view manager and for the viewmanager.  But this
will take too much time for now, so a quick fix will do it. (however a
task has been created)
2015-01-21 09:49:17 +01:00
Denis Ledoux 124e476943 [FIX] google_calendar: do not strip bools
myself.cal_client_id could be False, when not filling in the according field in the general settings screen.
Therefore, trying to strip it won't work, as boolean do not have such method.

Regression introduced during rev. faee926f1b
2015-01-20 18:46:03 +01:00
Fabien Pinckaers acc74dcfa4 [IMP] layout issues /groups 2015-01-20 18:40:15 +01:00
Fabien Pinckaers ce8d894e4b [IMP] speed improvements /groups 2015-01-20 18:39:05 +01:00
Aaron Bohy 9c8c534c19 [FIX] Packaging: RedHat: prompt overriden in docker
RPM packages did not pass the tests because the centos prompt changed
and thus did not match the regexp anymore. We now explicitely specify
the prompt in our Dockerfiles to prevent such issues.
2015-01-20 17:39:14 +01:00
Simon Lejeune e40a6fd325 [FIX] tools: pass env in exec_pg_command 2015-01-20 17:36:20 +01:00
Simon Lejeune e901fa20e4 [FIX] web: don't shadow exception in do_backup 2015-01-20 17:36:19 +01:00
Thibault Delavallée 9135d677e8 [FIX] website_forum: res.users inheritance: fixed call to super in
get_serialised_gamification_summary, parameter was forgotten. Regression probably
added in the migration to the new API.
2015-01-20 17:34:33 +01:00
David Monjoie 28c79ec7d0 [IMP][REF] website_forum: added the published mixin. A hook on res.users
has also been added, because the action open_website_url linked to the publish
button is not defined on res.users model (but on its inherited partner).
It now has the method that is routed on its partner.
2015-01-20 17:34:33 +01:00
David Monjoie d4d5b1b562 [REM] website_membership: removed unnecessary override of product model
because published field on products are not used in membership website
module.
2015-01-20 17:34:33 +01:00
David Monjoie b81d384c52 [IMP][REF] website_hr: add of published mixin, update of displayed
employees. Website publishers now see all employees + a publish button, like
for other website documents. Other people see the same published employees
as before.

The URL link for employees is not a specific url for each employee but the
about us page.
2015-01-20 17:34:33 +01:00
David Monjoie 280774ae8d [IMP][REF] website_crm_partner_assign: add published mixing on grade model.
Also cleaned grade form view and its inheritance.

Now the website displays partners related to all grades (website publisher) or
only published grades (other people). A publish button has been added in the
website for grades, to have the same behavior as for other website documents.
2015-01-20 17:34:33 +01:00
David Monjoie e185ad21eb [IMP][REF] website_partner: add published mixin on res.partner object.
Also added basic controllers on the partner model, allowing to see the public
page of a published partner (or all partners if website manager). The template
was already existing, but the controller was missing. It has been added.

[FIX] website_customer: fix the inheritance of view as the website group has been
removed in the parent view. Also added a breadcrumb fix.
2015-01-20 17:34:33 +01:00
David Monjoie 04e412ccb8 [IMP][REF] website_blog, website_event, website_event_track,
website_hr_recruitment, website_sale: add published mixin on blog / event /
track / job / product objects and update their website url and form view
according to the publish mixin/button refactoring.
2015-01-20 17:34:33 +01:00
David Monjoie b84721cb21 [IMP][REF] website: introducing a mixin class to handle website_published
and website_url fields. This will allow to remove custom code in every website
addons that redefine those two fields and the URL getter method.
The published button in backend has also been cleaned. It is now a link button
that redirects to the website_url. It does not change the publish status
anymore. Indeed it makes sense publish and unpublish website documents
directly in the website, while checking that everything is correct, instead
of doing it in the backend.

Next commits will update the Odoo addons to use this mixin and the new button
in the form view.
2015-01-20 17:34:33 +01:00
Olivier Dony 62aa07c7e3 [IMP] README.md: badges for docs, help, nightly 2015-01-20 17:21:38 +01:00
Mitesh Savani 664b15ee88 [IMP] hr_recruitment: onboarding improvements:
- removed unnecessary More menu entry to see the meetings from applicants
- small wording / display fixes on applicant form view
- applicant graph view tuning
- job form view inheritance cleaning
2015-01-20 17:05:56 +01:00
Mitesh Savani 9a7dd4b827 [IMP] hr_holidays: onboarding improvements
- labelling
- check_holidays does not raise anymore, the constraint is responsible of doing it
- cleaning of holidays status form view
- number of remaining days on an employee is now in technical feature, leave
summary exist to have statistics
2015-01-20 17:05:56 +01:00