Commit Graph
117156 Commits
Author SHA1 Message Date
Thibault Delavallée 027003df3d [FIX] account_asset: fix typo in decorator introduced at eb8d4aaa59
An @ was removed by mistake.
2016-08-04 14:15:51 +02:00
Simon Lejeune c524e6a254 [FIX] mail, report: class doesn't exist 2016-08-04 13:56:18 +02:00
Jared Kipe 36026bc771 [FIX] hr_payroll_account: wrong date
The date account is always the date of the day. This is not correct
according to the field description.

Fixes #12832
Closes #12833
opw-683969
2016-08-04 12:56:26 +02:00
Yannick Tivisse e74bbb6432 [Merge] website_mass_mailing: Migrate to new API 2016-08-04 12:40:42 +02:00
Xavier Morel a089b0a0a6 [MIG] website_mass_mailing: Migrate to new API
Half the controllers were already in the new API, migrated the rest.
2016-08-04 12:39:55 +02:00
Yannick Tivisse 25ba1b2fff [MOV] website_mass_mailing: reorganize files according to new API 2016-08-04 12:39:55 +02:00
Yannick Tivisse 386faff6ba [MERGE] hw_*: Migrate to new API 2016-08-04 12:37:51 +02:00
Rohan Patel a5ccae0b9b [MIG] hw_scanner : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel d007e73f69 [MIG] hw_scale : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel 5645635949 [MIG] hw_proxy : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel ac7379d3e6 [MIG] hw_posbox_upgrade : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel f8fe26fe32 [MIG] hw_posbox_homepage : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel bff6ef3c76 [MIG] hw_escpos : Migrated to new API. 2016-08-04 12:37:08 +02:00
Rohan Patel 9d03b40810 [MIG] hw_blackbox_be : Migrated to new API. 2016-08-04 12:37:08 +02:00
Jérome Maes 10bc3083ff [MERGE] website: migration to new API
No functionnaly changes, only code migration and cleaning
2016-08-04 12:10:35 +02:00
Jérome Maes 9f6ecb239e [REF] website_*: clean method to override when using 2016-08-04 12:02:14 +02:00
Jérome Maes 8a399930f3 [REF] website_*: remove render method on website
Since saas-3, website controllers use `request.website.render`
to render the template of a web page. This was kept for retro
compatibility. It's time to stop using deprecated stuff.
Same for `_render` method on website.

'json' route don't use `request.render` since
`JsonRequest` has no `render` method.
2016-08-04 12:02:14 +02:00
Ravi Gadhia fd09ddb6f3 [MIG] website: migration to new api
Migration of website module to new API.
The tricky phase is ir_http.py : we need to use `request.env`
only when the authenfication phase is done. Normally by
calling `super` of `_dispatch` method, but website module
required it to be done before. This is important since
`env`is a lazy property of `request` object.

Some hack were kept since this commit is a migration ('RequestUID'
in ir.http, ...)

Some docstrings were added.
2016-08-04 12:02:14 +02:00
Jérome Maes 7c20b4785b [FIX] ir_http: setting the routing_map on the class
The routing map should be static. Being calling from the old api (with registry)
there was no problem. But since the new API works with instance, a new instance
of the ir.http model will recreate its own routing map. This should have been
avoid during migration to new api of ir.http . Anyway, this prevent many mistake
for the website migration.
2016-08-04 12:02:13 +02:00
Jérome Maes 73749499f0 [MOV] website: split files, reoganize file per models 2016-08-04 12:02:13 +02:00
Jérome Maes 2becc4a59a [MOV] website: module directory organization 2016-08-04 12:02:13 +02:00
Yannick Tivisse 68c6f0deeb [account*, mrp*, sale*, stock*,...] Convert remaining .yml files to new API
Only purchase still has old api yml files, but they will be converted in
the module migration
2016-08-04 11:55:50 +02:00
Raphael Collet f259e74f8a [FIX] models: avoid recursive recompute() in method unlink()
This fixes an issue when a one2many computed field is recomputed: all computed
lines are created twice.

Consider a simple case, where the value of the field is a single line.  The
execution goes as follows:

 * invoke `recompute()`
    * write value `[(5,), (0, 0, vals)]` to the field
       * command `(5,)`: invoke `unlink()`
          * delete existing lines
          * invoke `recompute()`
             * write value `[(5,), (0, 0, vals)]` to the field
                * command `(5,)`: invoke `unlink()`
                   * no more existing lines, return
                * command `(0, 0, vals)`: invoke `create()`
                   * create a new line
             * mark the field as recomputed
       * command `(0, 0, vals)`: invoke `create()`
          * create a new line
    * mark the field as recomputed

There is a recursive call to `recompute()` inside `unlink()` that recomputes
the field while it is being written.  The fix simply prevents the recursive
call to `recompute()`, just like in methods `create()` and `write()`.
2016-08-04 11:55:00 +02:00
Denis Vermylen (dve) 153c7dcfa4 [IMP] account_cancel: clean imports, openerp tags and correct exceptions 2016-08-04 11:35:38 +02:00
Denis Vermylen (dve) ecc9b14470 [MOV] account_cancel: reorganize files according to guidelines 2016-08-04 11:35:35 +02:00
Nicolas Martinelli 78d977b96e [FIX] stock: typo
It should be `self.env['stock.warehouse']`, otherwise boom!
2016-08-04 11:30:55 +02:00
Thibault Delavallée 3769c7800e [MERGE] sale_timesheet: reorganize module and migrate to new API 2016-08-04 11:10:56 +02:00
Kinjal Mehta fb9414af9a [MIG] sale_timesheet: migrate module to new API 2016-08-04 11:09:52 +02:00
Kinjal Mehta 572053d9f5 [MOV] sale_timesheet: reorganize files and split models and views into their own files 2016-08-04 11:09:29 +02:00
qsm-odoo 566e0a2706 [FIX] website_quote: set correct fixed sidebar width
The sidebar on the left of the quotation previews was placed with
position fixed in a col-md-3. Position fixed elements have their
width computed according to the window dimensions which is why it
cannot be 100% to fit the col-md-3. To achieve that, the old solution
was to set the width in pixel according to the viewport dimension (and
the size a col-md-3 has in each of this dimension). This was too easily
breakable. Indeed in the avantgarde theme, the .container is set to
smaller dimensions. So the col-md-3 is smaller too and then the fixed
width sidebar overflows.

To achieve the desired behaviour, javascript is needed. In CSS, the
position is set to "relative" and the width to "100%" so that the
sidebar fits the col-md-3 width no matter what. Then on page load and
on window resize, the sidebar is set to position "fixed" and to a
px-based width which equals its current and default 100%-width.
2016-08-04 11:04:12 +02:00
Olivier Dony d8107f10d3 [FIX] ir.config.parameter: error in new API conversion
The conversion at eb04aa1e39
failed when `force=True`.
2016-08-04 10:58:40 +02:00
Christophe Matthieu f1b58b1293 [IMP] website_mail: use 'user_has_groups' API
The custom check is a more complicated and slower code than using the API
method provided for that.
2016-08-04 10:44:20 +02:00
Olivier Dony 2870bdac1b [FIX] base: fix typo in conversion to new API
Introduced by 19561727a7

Fixes #13010
2016-08-04 10:26:07 +02:00
Nicolas Martinelli efdce58913 [FIX] purchase: confirm only draft/sent PO
Without this fix, it is possible to confirm a PO which is not in state
'draft' and 'sent'. The issue is that it will create a picking at every
call.

The issue was occurring in Purchase Requisition, which was fixed in
previous commit. However, it makes sense to add a check directly in the
`button_confirm` method.

opw-684347
2016-08-04 10:08:15 +02:00
Nicolas Martinelli 2bc65af189 [FIX] purchase_requisition: unnecessary PO confirmation
When a PO is created from a Purchase Requisition, two delivery orders are
created instead of one.

opw-684347
2016-08-04 09:55:19 +02:00
Fabien Pinckaers b5acc5fe99 [FIX] purchase: vendor bills on mobile views: kanban instead of list 2016-08-03 22:45:03 -07:00
Fabien Pinckaers eeee380394 [FIX] website: typo in snippet 2016-08-03 11:11:19 -07:00
fwi-odoo 7ba377329e [IMP] website_project_issue_sheet: replace openerp tag 2016-08-03 17:21:00 +02:00
Martin Trigaux b6666cbfae [FIX] base: force a symbol on a currency
To avoid scenario as in 11346 where the report expects a currency symbol.
2016-08-03 16:36:09 +02:00
Martin Trigaux 9c3dde04bf [FIX] base: remove the SIT currency
The Slovenian tolar is no longer used since 2006 and has been replaced by Euro.
2016-08-03 16:36:06 +02:00
Martin Trigaux f6c8112478 [FIX] base: correct the currency of Tajikistani
The Tajikistani is using Tajikistani somoni since 2000 instead of the
Tajikistani ruble.
2016-08-03 16:36:06 +02:00
Martin Trigaux 875632182b [FIX] base: remove the GWP currency
The Guinea-Bissau peso is no longer used since 1997.
The Republic of Guinea-Bissau is now using West African CFA franc (XOF)
2016-08-03 16:36:02 +02:00
Bruno PLANCHER f5e803c025 [FIX] tools: strip i18n-overwrite from gevent parameters
When gevent is enabled, some arguments are stripped to avodi being retriggered
in the other workers (e.g. update of a module).
The `--i18n-overwrite` was not stripped and the other worker raised an error has
the `overwrite_existing_translations` argument requires the `update` argument
(which is stripped in the `stripped_sys_argv` method.

Fixes #12566
Closes #12986
2016-08-03 16:33:27 +02:00
Bruno PLANCHER 59eadac840 [CLA] Corporate signature for iRaiser
Closes #12986
2016-08-03 16:33:27 +02:00
Christophe Simonis 53015e11a9 [MERGE] forward port branch saas-11 up to eb83ab2 2016-08-03 16:16:30 +02:00
Christophe Simonis eb83ab236f [MERGE] forward port branch saas-10 up to c956075 2016-08-03 15:29:57 +02:00
qsm-odoo e7e7b9beb0 [FIX] calendar: use correct bootstrap for invitations
Commit cfb8e8700a introduced a new template for meeting invitation page.
This template used bootstrap row's without any container which added
an ugly useless scrollbar at the bottom.

This commit uses valid bootstrap by simply removing the bootstrap
column layout (as there is no column but only centered content) and
using a simple container. Also, wraps the table in a .table-responsive
div so that the template is mobile-friendly.
Also fixes a typo in the template name.
2016-08-03 15:18:20 +02:00
Martin Trigaux 8f8caf2e63 [IMP] base: remove the TPE currency
The Portuguese Timorese escudo is no longer used since 1976.
The East Timor is now using the USD since 2001 (not sure what they were using
between these two).
2016-08-03 15:12:22 +02:00
Christophe Simonis c956075f5f [MERGE] forward port branch 9.0 up to cadb481 2016-08-03 15:07:24 +02:00
Nicolas Martinelli ebb52cbbdf [FIX] stock: backorder sequence
When an internal move is partially delivered, name of the backorder is
'False'. This also occurs if an internal move is copied.

This is because there is not sequence for code 'stock.picking.internal',
but there is one for 'stock.picking'.

opw-683725
2016-08-03 14:43:40 +02:00