Commit Graph
99161 Commits
Author SHA1 Message Date
Arthur Maniet 64ba5b9ee4 [IMP] account: in multicurrency bank statement reconciliation, the error message showing when no account is configured for foreign exchange gain/loss is configured now offers a link to the configuration page
Fixes #5839
2015-03-19 10:50:52 +01:00
Thibault Delavallée 69cf768404 [IMP] mail: composer: recipients before subject 2015-03-19 10:45:25 +01:00
Laurent Mignon (ACSONE) cafcd65b6d [FIX] Take a copy of the context.
If the method `import_file` is called with the new API, the context is a
frozendict and the update will raise `NotImplementedError: 'update' not
supported on frozendict`

closes #5798
2015-03-19 10:02:45 +01:00
Nicolas Lempereur b97578f689 [FIX] view_form: sequence at item creation
The sequence for new items in some models is simply set to a constant 10.
Hence if 3 items had after reordering sequences 10, 11 and 12. If a new item is
added, it would get after saving at the second position.

This fix set the sequence of a new item to the maximum+1 or minimum-1 sequence
of current items sequences (max if tree has editable="bottom", min if tree has
editable="top").

opw-627830
2015-03-19 09:56:12 +01:00
Géry Debongnie 21e38e3851 [FIX] web: fix database manager
database manager is the only html file we have, and because of that,
regularly escapes the greps.  It was still trying to load old files
before the javascript modules.  It has now been updated to the new
file structure.

Also, I had to guard the nv customization from happening in misc.js
because the nvd3 library is not loaded in the database manager, but
the misc.js file is required.  Not really happy about the misc.js file,
but this is for another commit.
2015-03-19 09:50:53 +01:00
Goffin Simon 5611b5e2fa [IMP] To allow to translate pages in version.
The translations of a page A in a version are applied to all the pages
with the same key of page A.
2015-03-18 17:19:07 +01:00
Jeremy Kersten 825c2b3ff5 [FIX] website_hr_recruitement: allow utm for job apply 2015-03-18 16:51:05 +01:00
Goffin Simon 05908a0fac [FIX] account_payment: supplier invoice on more then one payment oder
The field move_line_id in payment.order.form only shows account move lines that still have
an amount to pay. This was lost during 333e83f.
2015-03-18 16:45:25 +01:00
Yannick Tivisse 882f1b3721 [IMP] hr_expense: Filter to find expenses of former employees 2015-03-18 15:11:16 +01:00
Dharmraj Jhala 01f2c5c9d2 [IMP] Allow custom ordering of files contained in zip dumps
This will allow to speed up our migration platform: as funzip can pipe
the output of the first file of the archive, even if the file is not
fully unzipped yet. This is useful to plays with dump.sql without waiting
for the full archive decompression.
2015-03-18 14:22:22 +01:00
Christophe Simonis fd3cd5ecc2 [MERGE] actually forward port of branch 8.0 up to e27744d
I screw up previous forward port that end up as a normal commit.
This commit is empty to track that a merge actually happen.
2015-03-18 14:11:05 +01:00
Olivier Dony d93148240b [FIX] ir.model.data: update_dummy should mark inherits parents too
When a `noupdate` record is processed during an update,
the update_dummy method marks the record as "seen" so
it won't be deleted at the garbage collection step,
and seen as an obsolete external ID.

This needs to be done also for the parent records via
_inherits, because they have also received an implicit
external ID at creation, and must not be garbage
collected, even if their `noupdate` flag (db side)
is not set because the flag was added later.

This rare problem could be reproduced by creating a product
in a module, then referencing it in e.g. a sales order,
then updating the module after changing the product
record to be in a `noupdate` block.
At the end of the update the implicit product.template
record would be garbage collected, and trigger a cascade
deletion of its children - blocked by the SO reference
to the product.
2015-03-18 14:10:18 +01:00
Olivier Dony d8c4e4fa76 [FIX] product: unused import as of 489a96c257 2015-03-18 14:10:18 +01:00
Olivier Dony 694fe1fb3f [FIX] web: remove deprecated hack for future_display_name
This temporary patch was used to simulate the presence of a
`display_name` field in all models. It is not needed anymore
as of version 8.0, which comes with the actual magic to make
`display_name` work everywhere.
2015-03-18 14:10:18 +01:00
Yannick Tivisse 7ecd9299b5 [IMP] account: usability in "Payment terms" wizard 2015-03-18 14:06:35 +01:00
Christophe Simonis a329aa1949 [MERGE] forward port of branch 8.0 up to e27744d 2015-03-18 14:05:02 +01:00
Christophe Simonis e27744df0c [MERGE] forward port of branch saas-3 up to b79f64f 2015-03-18 13:16:23 +01:00
Antony Lesuisse 7dbd495985 [IMP] website: server actions allow trailing paths 2015-03-18 13:10:58 +01:00
Christophe Simonis b79f64f1f8 [MERGE] forward port of branch 7.0 up to e1daaff 2015-03-18 12:52:33 +01:00
Nicolas Lempereur e1daaff8e0 [FIX] kanban: propagate context of many2many field
Propagate the context in kanban view when displaying a many2many field.

fixes #5623, closes #5681

opw-629698
2015-03-18 12:32:24 +01:00
Géry Debongnie 55acc522b9 [FIX] web_calendar: don't focus quick create when disabled
web_calendar tried to focus the quick create instance, even when it has
been disabled.  Result: boom (example: hr/leave request: click on
calendar).
2015-03-18 12:21:22 +01:00
Olivier Dony 489a96c257 [FIX] product.template: name_search order + mismatch on IDs
Improve commit bf31ab6718:
 - do not use the product.product name_search() when there is no
   search term (it's only useful with a search term
 - do not use the product.product name_search() when the extra
   domain (args) has a criterion on IDs - these will be *template*
   ids, not *variant* ids, so the results would be wrong
 - Since templates and variants use a different natural `_order`,
   perform an extra name_search() on templates after gathering the
   ids to return, to apply the proper sort ordering. Increases the
   penalty by doing 2 name_search() calls.

This issue could be seen e.g. in the breadcrumbs where the
display_name variable is displayed for templates, and indirectly
relies on name_search() due to an old hack in call_kw in order to
implement the "future_display_name".
2015-03-18 11:40:51 +01:00
Géry Debongnie 2283e6a9da [FIX] website_blog: fix undefined variable
The editor variable shadowed the outer editor variable, which is the
imported module.
2015-03-18 10:19:39 +01:00
Raphael Collet 6aa28a89bb [FIX] models: compute many2many field on existing records when field is introduced by an update 2015-03-18 09:43:45 +01:00
Géry Debongnie 7d088d7de9 [MERGE] add module system to javascript code
This branch introduces a new module system for our javascript
code, inspired by requirejs.  It is a really large change,
since all the javascript code had to be updated to use the
new system.

Some important remarks:
* the openerp global variable has been deprecated.  Do not use
  it in the future
* a new global variable has been introduced: odoo.  It contains
  the 'define' function used to create new modules.  Use it
  to create modules, not as a global bag of things.
* the web client code has been refactored.  Most files have
  been split into smaller files.  The code should be easier to
  understand now

More documentation can be found at:
www.odoo.com/documentation/master/reference/javascript.html#web-client
2015-03-18 09:42:10 +01:00
dka-odoo dcd3702782 [FIX] hr_recruitment : use _track_subtype method instead of _track dict. 2015-03-18 09:27:20 +01:00
Géry Debongnie b517e5a2b2 [IMP] web: documents the new module system.
This add a basic overview of how the modules work.  This is a work in
progress, more documentation needs to be updated, such as the
tutorial.
2015-03-18 09:23:37 +01:00
Géry Debongnie ebc39b8788 [FIX] update tests to new module system
Various tests (mostly tours) were broken with the large changes in the
way the js code works.
2015-03-18 09:23:37 +01:00
Géry Debongnie 4fdf74fe21 [IMP] web+addons: improvement to module system
The module system needs to know the dependencies of a given module
before executing the function.  This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.

But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
2015-03-18 09:23:37 +01:00
Géry Debongnie 59a4706dd9 [REF] website_twitter: update to the new module system 2015-03-18 09:23:37 +01:00
Géry Debongnie d6254a264b [REF] website_version: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie 65586f8ef3 [REF] website_slides: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie 4289319f62 [REF] website_sale: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie f05d9aea0a [REF] website_quote: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie 131ca70d83 [REF] website_mail: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie 838cfe6664 [REF] website_links: update to the new module system 2015-03-18 09:23:36 +01:00
Géry Debongnie 43ed24c375 [REF] website_gengo: update to the new module system 2015-03-18 09:23:35 +01:00
Géry Debongnie be8adf2769 [REF] website_forum: update to the new module system 2015-03-18 09:23:35 +01:00
Géry Debongnie da73f624b2 [REF] website_event: update to the new module system 2015-03-18 09:23:35 +01:00
Géry Debongnie a78655e71f [REF] website_crm: update to the new module system 2015-03-18 09:23:35 +01:00
Géry Debongnie 93d96ff871 [REF] website_blog: update to the new module system 2015-03-18 09:20:33 +01:00
Géry Debongnie 88fbbd7362 [REF] survey: update to the new module system 2015-03-18 09:09:23 +01:00
Géry Debongnie 0e274fde7d [REF] stock: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie eccda7dff6 [REF] planner: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie 81333ade84 [REF] mass_mailing: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie 5e6171bb6f [REF] various addons: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie 90050c24bb [REF] pos_X: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie 996b6571b7 [REF] website: update to the new module system 2015-03-18 09:09:22 +01:00
Géry Debongnie 1d23c24d79 [REF] point_of_sale: update to the new module system 2015-03-18 09:01:52 +01:00
Géry Debongnie 1ca7f9f6aa [REF] im_odoo_support: update to the new module system 2015-03-18 09:01:52 +01:00