Christophe Simonis
4105b5f028
[ADD] module install/uninstall hooks.
...
Since 4ec71c74d1
, migration scripts
are not executed at module install anymore.
As this behavior was missused as "init" scripts (see [1]), this
commit re-add this possiblity via hooks.
There are 3 hooks that can be declared in the manifest file:
- pre_init_hook: called before module installation
- post_init_hook: called after module installation
- uninstall_hook: called before module uninstallation
Like the "post_load" manifest option, the values for these hooks
must be a string containing the name of a method available at the
module root.
The signatures of these functions are:
- (cr) for pre_init_hook
- (cr, registry) for post_init_hook and uninstall_hook
[1] https://bugs.launchpad.net/openobject-server/+bug/1314680
2014-06-07 00:41:29 +02:00
Alexandre Fayolle
0ceee2a120
[IMP] add an index on account_move_line(date, id)
...
fixes https://launchpad.net/bugs/1311004
2014-06-06 14:47:33 +02:00
Somesh Khare(OpenERP)
81a3a4fcbb
[FIX]Delivery: carrier information not propagated from sale order to pickings (Case: ref 595240)
...
closes lp:1192115
2014-06-06 14:34:23 +02:00
Alexandre Fayolle
ac117ac220
[FIX] delivery: propagate additional fields in chained pickings
...
closes #367
2014-06-06 14:18:37 +02:00
Martin Trigaux
548c8e6675
Merge pull request #404 from odoo-dev/7.0-norecomputestoredm2ofuncfields-chs
...
[FIX] orm: do not recompute m2o stored function field at read.
2014-06-06 13:55:59 +02:00
xmo-odoo
aa0e831626
Merge pull request #157 from odoo-dev/master-improve-import-ypa
...
Add div tag and oe_padding class to display the question
2014-06-06 13:40:21 +02:00
Richard Mathot
05cca7eeab
[FIX] website_forum_doc: wrong link text
2014-06-06 13:32:21 +02:00
Laetitia Gangloff
905617b530
hr_timesheet_sheet: for attendance, set default value for employee_id in the context
2014-06-06 12:55:22 +02:00
xmo-odoo
929ca342e2
Merge pull request #394 from nbessi/restore-setup.py
...
Move setup.py in previous root in order not to break community tools based on it.
2014-06-06 12:47:25 +02:00
Christophe Matthieu
286ced7183
Merge pull request #405 from odoo-dev/saas-5-fix-website-contact-form-chm
...
[FIX] website_crm: when there is an error in required field, user_id=False in the controller overwrite the user_id browse record to display the contact form template.
2014-06-06 12:40:44 +02:00
xmo-odoo
24141a64b7
Merge pull request #338 from savoirfairelinux/scaffold-pep8
...
[FIX] pep8 errors generated by odoo.py scaffold
2014-06-06 11:52:41 +02:00
xmo-odoo
81da5a9016
Merge pull request #408 from sergeifilippov/patch-1
...
Update README.md
2014-06-06 11:51:00 +02:00
xmo-odoo
e583fccf44
Merge pull request #353 from xmo-odoo/unrestrict-view-write
...
[IMP] views: don't prevent always -> disabled writes
2014-06-06 11:48:09 +02:00
Sergei Filippov
93a77bab41
Update README.md
...
fixed typo
2014-06-06 21:39:54 +12:00
Christophe Matthieu
d72dae796b
Merge pull request #401 from odoo-dev/master-website_sale-change-pictures-chm
...
[IMP] website_sale: display image function of the selected product variant
2014-06-06 11:32:33 +02:00
Christophe Matthieu
ef48c4d440
[FIX] website_sale: disable button does'nt work in the product template.
2014-06-06 10:57:50 +02:00
Christophe Simonis
517162ce14
[FIX] orm: do not recompute m2o stored function field at read.
...
The get() method of m2o function fields is used for 2 different things:
- call the function defining the m2o
- get the name_get representation of the value
Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
2014-06-06 10:53:42 +02:00
Christophe Matthieu
5f43d87a33
[IMP] website_sale: display image function of the selected product variant
2014-06-06 10:40:50 +02:00
Christophe Matthieu
36a2615965
Merge pull request #360 from odoo-dev/master-sortable-kanban-sequence-chm
...
[IMP] website: Kanban is sortable for one column if the field sequence is available inside the kanban view (or one2many kanban view).
2014-06-06 10:07:32 +02:00
Christophe Matthieu
afc495a99e
[FIX] website_crm: when there is an error in required field, user_id=False in the controller overwrite the user_id browse record to display the contact form template.
2014-06-06 09:56:40 +02:00
Christophe Matthieu
5e05c028f4
[IMP] website: Kanban is sortable for one column if the field sequence is available inside the kanban view (or one2many kanban view).
2014-06-06 09:12:11 +02:00
Nicolas Bessi
9a8cdf49b0
Move setup.py in previous root in order not to break community tools based on it.
...
It should not causes any trouble as it is not used in odoo.py
2014-06-06 09:08:03 +02:00
Sandy Carter
666ea5f98a
[FIX] pep8 errors generated by odoo.py scaffold
...
Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
2014-06-06 09:03:10 +02:00
sve-odoo
132f1ee986
[FIX] Account analytic plan line name..
...
..should not be called plan itself.
2014-06-06 08:45:02 +02:00
odony
585d38c0a9
Merge pull request #357 from WizKeeD/mrp_subproduct_unlink_fix
...
[FIX] Added cascade on subproduct so they get removed with parent bom
2014-06-06 00:01:39 +02:00
Oliver Laurent
306d5c89a0
[FIX] orm: do not resize unlimited char fields
2014-06-05 19:05:36 +02:00
Laurent Mignon
6788edcdd0
[FIX] ir_cron: use the same search criteria as when listing job to excecyte when acquiring the ock on the job before its execution to prevent running already executed job
...
Backport of fix made in trunk
2014-06-05 18:59:03 +02:00
Denis Ledoux
4b884ed100
[FIX] website: on adding a slide to slider, new slide is last on save
...
Before, the new slide was set as first slide
Moreover, the indicators were not correct neither
2014-06-05 18:58:01 +02:00
Martin Trigaux
81ae6cdeeb
[IMP] stock: when checking the state of the product, do not recompute the quantity on every move but only the one currently browsing (optiomisation)
2014-06-05 18:38:19 +02:00
Denis Ledoux
4b3cec8ecf
[FIX] website_event_track: remove trailing comma in speakers name in event tracks
2014-06-05 17:50:15 +02:00
Christophe Simonis
bd51bf1e35
Merge pull request #358 from ajite/master-fix-nowww
...
[IMP] Db filter %h
2014-06-05 16:32:32 +02:00
Augustin Cisterne-Kaas
1dfa3946b5
[IMP] Db filter %h
...
Db filter %h skips www subdomain.
2014-06-05 16:09:04 +02:00
Xavier Morel
e5560a2785
[REM] test for removed 'feature' of refusing always -> disabled writes on views
2014-06-05 16:08:42 +02:00
xmo-odoo
254c65b0c4
Merge pull request #352 from xmo-odoo/command-shebang
...
[FIX] shebang on odoo.py
2014-06-05 15:53:49 +02:00
Denis Ledoux
7129ec957a
[FIX] document_page: allow other users than administrator to create menu to a static page
...
User should be at least have Configuration settings group to be allowed to create actions. Basic document page users do not have this rights, therefore we temporary give superuser_id to create the action
This is related to rev 133c5033a0
2014-06-05 15:53:28 +02:00
Holger Brunn
d66c96ffa9
[FIX] project_timesheet: don't trigger write if there is nothing to write
...
Triggering an empty write could break constraint (can not update past timesheet) (opw 606963)
2014-06-05 15:44:18 +02:00
Martin Trigaux
b64256d56a
Merge pull request #348 from sve-odoo/patch-2
...
[ADD] Default value for product_supplierinfo.min_qty
2014-06-05 15:37:21 +02:00
Christophe Simonis
ab9ac783db
[FIX] web: many2many field handle "no_create" option
2014-06-05 13:46:53 +02:00
Xavier Morel
767cb9afa1
[FIX] shebang on Python
2014-06-05 13:20:07 +02:00
Martin Trigaux
426993e06d
uninstall: avoid errors during uninstall
...
When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
2014-06-05 12:52:11 +02:00
Xavier Morel
08b1107413
[IMP] add kwargs to scaffolded controller so ?debug does not blow up by default
2014-06-05 12:32:12 +02:00
Xavier Morel
b973e27da5
[IMP] views: don't prevent always -> disabled writes in views, is confusing and not very useful
2014-06-05 12:22:37 +02:00
Denis Ledoux
76d909bb46
[FIX] account_analytic_analysis: Only allow to select sale pricelist for contracts
2014-06-05 10:45:14 +02:00
Denis Ledoux
9c9cacd1d0
[FIX] account_analytic_analysis: Recurring invoice lines price if pricelist does not match
...
If the price according to price list is False, use default sale price in the recurring invoice lines
2014-06-05 10:42:02 +02:00
Olivier Dony
d1b0d2586b
[FIX] ir.qweb: rendering non-string attributes could cause unicode errors (Issue #282 )
...
This occurs because werkzeug.utils.escape() auto-casts
non-basestring values to unicode, while we expect to be
working with bytestrings only.
So when evaluating attribute values, make sure we always
return bytestring values, never int, bool or unicode.
2014-06-05 10:11:23 +02:00
sve-odoo
b33bf57832
[ADD] Default value for supplierinfo.min_qty
...
And remove default value for function field "qty"
2014-06-05 09:55:30 +02:00
Paul Catinean
d82779684d
[FIX] Added cascade on subproduct so they get removed once the parent boms are removed
2014-06-04 22:17:02 +02:00
Christophe Simonis
0eb602dd61
[MERGE] forward port of branch saas-5 up to 651e5ac
2014-06-04 19:25:40 +02:00
Christophe Simonis
651e5acd5d
Merge pull request #344 from odoo-dev/saas-5-fix-mrp.bom-wrong-bom_find-check-chm
...
[FIX] mrp.bom: wrong check for bom_find.
If the user defined a bom line type phantom to a product without bom the check is wrong to display the error message.
2014-06-04 19:22:31 +02:00
Thibault Delavallée
1dc7d4d3d8
[FIX] mass_mailing: fixed computation of mailing domain when having more than 1 mailing list added in the recipients. A bit longer, but less buggy.
2014-06-04 18:54:20 +02:00