Commit Graph
223 Commits
Author SHA1 Message Date
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Martin Geubelle 3acf8879d1 [ADD] *: add color field on tags 2015-09-07 14:20:36 +02:00
Yenthe 4312a22add [FIX] fleet: overdued > overdue typo 2015-09-07 12:50:04 +02:00
Antony Lesuisse 1e90257e58 [IMP] tags: add unique constraints
- remove tags translatability
- add unique constraints
- res.partner.category is kept until we remove the parent_store test.
- hr remove tag parenthood
- hr remove unsed views and menu
2015-08-07 00:51:14 +02:00
Fabien Pinckaers 7e0647a09f [IMP] Supplier --> Vendor. American English 2015-07-09 16:01:50 -07:00
Ravi Gadhia 263d869b07 [REM] get rid of unused attribute 'nodestroy' 2015-06-08 15:25:29 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
J Bradshaw 2b8c63a727 [IMP] fleet: prevent deprecated warning message
Stop "required=True is deprecated: making a boolean field"
appearing in server log

Closes #6108
opw-632480
2015-04-09 14:43:38 +02:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Ajay javiya e903e37bb1 [IMP] fleet: usability improvements :
- simplifed name of vehicle model; the name is now the model name; the old function
is used to compute the name_get.
- added Suzuki data
- parent of a cost is now hidden except for technical group, because it is the
same as the vehicle
- fixed some vehicule -> vehicle typos
2014-12-26 16:30:47 +01:00
Christophe Simonis d64fe8279b [MERGE] forward port of branch 8.0 up to c92e70b 2014-11-17 17:31:12 +01:00
Martin Trigaux e826e84af5 [FIX] fleet: avoid function field computation order issues
The name of a vehicle is function field.
The field odometer on a vehicle has a a setter that creates an odometer.
The name of an odometer is a function field that uses the name of the vehicle.
If a vehicle is created with a value in odometer field, the odometer is created before the name is computed so the concatanation would fail.
Fixes #3468
2014-11-13 16:05:54 +01:00
Christophe Simonis 709c9868de [MERGE] forward port of branch 8.0 up to e883193 2014-10-01 19:18:14 +02:00
Simon Lejeune d0eed7f9fc [FIX] fleet: contract onchange: ensure dict before executing get 2014-09-30 15:25:08 +02:00
Christophe Simonis 4946327eac [MERGE] forward port of branch 8.0 up to fd4fd35 2014-07-30 20:52:43 +02:00
Géry Debongnie 366a30db95 [FIX] correct various date issues in reporting
* remove old 'day', 'month', 'field' and replace them by the actual
date/datetime field
* remove weird cast to char when creating the view to prevent crash
when grouping on them
* remove duplicates (such as 'creation_date' and 'create_date')
* fix typing errors (field type date defined as a datetime in the
postgres view)
* fix search view definition
2014-07-30 15:11:22 +02:00
mdi-odoo 6e15fb060a [FIX] fleet: prevent crash when no cost_ids 2014-07-18 10:33:31 +02:00
Yogesh Parekh 72e0cbf036 [IMP] Change string 'brand' by 'make' in fleet module 2014-07-16 10:23:08 +05:30
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +02:00
Gery Debongnie 0a9a393010 [FIX] code cleanup (addon fleet)
improve the _count_all method by removing try/catch/pass and by
using search_count instead of the one2many relation.

Also, removes now useless one2many fields costs_ids and odometer_ids

bzr revid: ged@openerp.com-20140507075645-2tp5zgayeea9ehv2
2014-05-07 09:56:45 +02:00
Yogesh Parekh (OpenERP) 45585f7346 [IMP]: Convert buttons into stat buttons in fleet module
bzr revid: ypa@tinyerp.com-20140326122023-glwfkl5nwowq5i2e
2014-03-26 17:50:23 +05:30
Thibault Delavallée 8cf3a3b0b8 [FIX] fleet: vehicle cost name field unhacked.
- remove name composition based on vehicle name, date and cost_subtype_id;
instead those fields have been added to the tree view. name field is now just
a related to the vehicle name, but the name field itself does not seem necessary
anymore. Should be checked further.

bzr revid: tde@openerp.com-20140217133930-dmzbwjtr58s4upy3
2014-02-17 14:39:30 +01:00
Christophe Simonis 0521d1aab3 [MERGE] forward port of branch saas-2 up to revid 9017 chs@openerp.com-20131127110552-3u2nxwu01gxj9i7m
bzr revid: chs@openerp.com-20131127111208-iclt7a9ib7oucumh
2013-11-27 12:12:08 +01:00
Thibault Delavallée 000c38816d [MERGE] [IMP] Addons: updated some field labels to avoid duplicates to ease
the import / export process

Aso includes
- project: deprecated priority field: use sequence instead
- base_calendar: calendar.event: deprecated organizer field: use organize_id instead

bzr revid: tde@openerp.com-20131125093741-hx9hpj85xqfalvqw
2013-11-25 10:37:41 +01:00
Christophe Simonis fc9c571bcd [FIX] fleet: inherits reference fields must be required.
Note: there is no db schema change as orm was forcing these values.

bzr revid: chs@openerp.com-20131121120637-c5ufw20ck30hefr5
2013-11-21 13:06:37 +01:00
Amit Bhavsar (Open ERP) 18961cfdf5 [MERGE] merge with latest trunk
bzr revid: amb@tinyerp.com-20130829050254-xwt0261q0hdtrwun
2013-08-29 10:32:54 +05:30
Amit Bhavsar (Open ERP) 2e494c9a9d [Fleet] Improve fields string.
bzr revid: amb@tinyerp.com-20130621090827-7222v30shoat0521
2013-06-21 14:38:27 +05:30
Turkesh Patel (Open ERP) 3a8272359a [IMP] improved code
bzr revid: tpa@tinyerp.com-20130325062507-6gjq4pjyfllqydbs
2013-03-25 11:55:07 +05:30
Turkesh Patel (Open ERP) b981abbe5d [IMP] improved strings in view
bzr revid: tpa@tinyerp.com-20130322131747-g6wp65x98njjt1t4
2013-03-22 18:47:47 +05:30
ajay javiya (OpenERP) 6adefa6ef1 [IMP]:Label
bzr revid: aja@tinyerp.com-20130318111202-iflro7fty315cddh
2013-03-18 16:42:02 +05:30
ajay javiya (OpenERP) a71ed635f3 [IMP]:Fleet Management
bzr revid: aja@tinyerp.com-20130318104228-yti1y8hri248ppy3
2013-03-18 16:12:28 +05:30
Ajay Chauhan (OpenERP) 2c3fab123c [IMP] fleet: change string of fields to solve import issue
bzr revid: cha@tinyerp.com-20130313054745-xt48w6zh0c0j92iz
2013-03-13 11:17:45 +05:30
Cedric Snauwaert 70cabfc65e [FIX]fleet: add m2o fields in inherited object to remove info warning upon installation
bzr revid: csn@openerp.com-20130118143902-vacsd5ltkug3ochx
2013-01-18 15:39:02 +01:00
Cedric Snauwaert 3eb82b81dd [FIX]fleet : fix infinite loop due to onchange in fuel log form view
bzr revid: csn@openerp.com-20130104125234-hr8qagufpdmm5v4o
2013-01-04 13:52:34 +01:00
Randhir Mayatra (OpenERP) ca21c057ed [IMP] improve the string in fleet
bzr revid: rma@tinyerp.com-20121219070415-46l5zkbr2bjjamea
2012-12-19 12:34:15 +05:30
Olivier Dony 636adf3815 [MERGE] fleet: purchaser_id should is a res.partner id, courtesy of Serpent Consulting Services
bzr revid: odo@openerp.com-20121219011346-giziq5rfx3r91cy6
2012-12-19 02:13:46 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Serpent Consulting Services b2adcbef02 [FIX] Fleet : purchaser_id should not be UID, but a partner ID related to that UID
lp bug: https://launchpad.net/bugs/1089876 fixed

bzr revid: support@serpentcs.com-20121216192037-1kexe37j0omowgvx
2012-12-17 00:50:37 +05:30
Cedric Snauwaert 789ede3ea8 [ADD]search field and some changes to fuel and service log: purchaser should be driver by default
bzr revid: csn@openerp.com-20121210140317-kg03hsk46rpzgcyx
2012-12-10 15:03:17 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Cedric Snauwaert b3cc67fabd [FIX]traceback when duplicating vehicle
bzr revid: csn@openerp.com-20121210091502-zhai3ohp0hnbdr4f
2012-12-10 10:15:02 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Cedric Snauwaert b2457a3fc1 [REF]change some field name, remove useless line in access rules
bzr revid: csn@openerp.com-20121206105033-6dcffqm1626jt5r8
2012-12-06 11:50:33 +01:00
Cedric Snauwaert e1ff74df35 [FIX]fleet : generation of contract cost should take into account current day too
bzr revid: csn@openerp.com-20121130095449-cypcvs98q76vlurp
2012-11-30 10:54:49 +01:00
Cedric Snauwaert 120716000b [MERGE]merge with latest trunk
bzr revid: csn@openerp.com-20121113152846-1l2o09b0e0ttnkwr
2012-11-13 16:28:46 +01:00
Cedric Snauwaert fb7de9f2f2 [FIX]bug when renewing contract and small changes in odometer tree view
bzr revid: csn@openerp.com-20121113152639-72l14qtzo09p3aoj
2012-11-13 16:26:39 +01:00
Quentin (OpenERP) 75903aec86 [FIX] fleet: translability
bzr revid: qdp-launchpad@openerp.com-20121112084645-msivs8jbashvm5us
2012-11-12 09:46:45 +01:00
Cedric Snauwaert 54721ea664 [FIX]corrected 2 bugs related to search vehicle with alerts and change some typo and domain value in contract
bzr revid: csn@openerp.com-20121109130603-v55e1cnuks8pnkjk
2012-11-09 14:06:03 +01:00
Quentin (OpenERP) 5c54a696c4 [FIX] fleet: typo
bzr revid: qdp-launchpad@openerp.com-20121108131132-4k0u9ktwg6h9bi7c
2012-11-08 14:11:32 +01:00