Commit Graph
117975 Commits
Author SHA1 Message Date
Fabien Pinckaers d73eb2c555 [IMP] website_blog: improved tour 2016-08-04 16:10:13 -07:00
Fabien Pinckaers 44f755579f [IMP] website: tout wording, small improvements 2016-08-04 11:06:30 -07:00
Fabien Pinckaers 7aeb3dfebd [IMP] website: UX detail: divider in content menu 2016-08-04 10:53:25 -07:00
Christophe Simonis 038d18c2a1 [FIX] crm: drop (sql) view before recreating it 2016-08-04 19:47:05 +02:00
Christophe Simonis 43ba593477 [FIX] hr_maintenance: keep field owner_user_id stored 2016-08-04 17:39:18 +02:00
Christophe Simonis ea50285989 [FIX] maintenance: correct message subtype to bound a valid model 2016-08-04 17:38:11 +02:00
qsm-odoo 3363facfe4 [IMP] website_quote: use affix to block the sidebar when scrolling
Sometimes, the sidebar on quotation previews can overflow the footer
if the window height is too small. To prevent that, the position of
the sidebar is blocked before overflowing, thanks to affix.
2016-08-04 17:33:11 +02:00
Josse Colpaert 93056a61b8 [IMP] mrp: Workcenter losses statbutton should use default filters instead of domain as this way it is possible also to change the productivity times if someone would like to correct them afterwards 2016-08-04 16:59:51 +02:00
Josse Colpaert 41e7a278e8 [FIX] mrp: buttons on production order
When you start a production order, it is a bit
weird to see buttons as check availability and
produce, when there are no stock moves yet.
2016-08-04 16:59:51 +02:00
Simon Lejeune 6f33892b06 [FIX] report: client action: only show edit in debug mode
This option was confusing for the users.
2016-08-04 16:35:18 +02:00
Raphael Collet dbcc11664a [MIG] test_new_api: convert tests and remove old-API specific ones 2016-08-04 16:26:50 +02:00
Josse Colpaert 84def09423 [FIX] stock: incorrect picking state after forced availability
Steps to reproduce:
- Enable advanced routes on the Warehouse config
- Set the route "Pick+Pack+Ship" on the YourCompany Warehouse
- Set the route "Pick+Pack+Ship" to be selectable on the SO-Line
- Create a SO with the SO-Lines containing this routes, confirm, 3
  pickings are created
- Force the availability of the Picking to the customer, transfer.

The Picking is set to draft, a backorder is created containing all
products which should have been transferred. It is not possible to
transfer this newly backorder neither, the same thing happens on the
backorder.

When rereserving while doing the transfer, it should not change the
state of the move as it would forget when availability was forced.

opw-683740
2016-08-04 16:10:22 +02:00
Jeremy Kersten f3e577da2f [FIX] website_sale: force recompute fiscal position
Fiscal position was setted by onchange before commit #55535a6
Now, we need to call the onchange_shipping_id to set the fiscal position.
In case where the owner of the sale order is the public user, instead to
use the fiscal position from public user, we try to guess it with the
geolocation.
2016-08-04 16:04:57 +02:00
Martin Trigaux b431e6c324 [I18N] Last 7.0 update translation terms from Transifex 2016-08-04 15:56:34 +02:00
Thibault Delavallée 9446b14617 [FIX] product: fix wrong decorator introduced when migrating 2016-08-04 15:29:44 +02:00
qsm-odoo 156a089a11 [FIX] website: properly duplicate FAQ Roller questions
/!\ This is a backport from saas-10

When duplicating a question in the FAQ Roller snippet, the cloned
question was opening the original answer instead of its own answer.
2016-08-04 15:03:46 +02:00
Goffin Simon 48fa0a5f6c [FIX] account: get_bar_graph_datas
The function range(0, 6) only returns [0, 1, 2, 3, 4, 5], then
the condition if i == 6 was never reached.

opw:685021
2016-08-04 15:02:33 +02:00
Thibault Delavallée b4a5b20c9b [MERGE] account_cancel: reorganize files, finish migration and lint 2016-08-04 14:53:59 +02:00
Thibault Delavallée 0db52fa2f1 [FIX] account_asset: fix computation of default value
_get_asset_method returns None as it sets a value on a recordset. What we do
here is simply copying the computation directly in the default get to have a
correct value instead of None. This has probably been introduced when
migrating the module at the new API at commit 6120babb45.
2016-08-04 14:49:51 +02:00
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