Commit Graph
89 Commits
Author SHA1 Message Date
Christophe Simonis bfe88c50e2 [MERGE] forward port branch saas-15 up to 0ae300e9e6 2018-03-08 13:22:28 +01:00
Christophe Simonis 41af298d9d [FIX] hr_payroll: use defined variable
Oversight of previous forward-port
2018-03-08 11:11:44 +01:00
Christophe Simonis d7f4454694 [MERGE] forward port branch 9.0 up to 2f46f3bdb2 2018-03-08 10:50:20 +01:00
Denis Ledoux 2f46f3bdb2 [FIX] hr_payroll: generate payslips sets the employee company
In a multi-company environment,
if a user in company A
created a Payslips batch for an employee in the company B
and used the `generate payslips` button,
the created payslip was set with the user company (A) while
it must be the employee company (B).

opw-1820138
2018-03-07 16:16:52 +01:00
Raphael Collet 55549f1e61 [ADD] base: direct support for binding an action to a model 2017-08-28 09:53:23 +02:00
Laurent Smet e80238042c [REF] report: remove the report module
The content of the report module is now dispatched in
the 'base' and the 'web' modules.
2017-05-08 09:23:12 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Yannick Tivisse 42b891700e [FIX] report: allow 'get_action' to receive id, ids or browse records as 'docids'
1/ If no docids are passed in get_action (empty list) do not put in context

2/ The method should accept ids or browse records as docids for retrocompatibility.
- The api.v7 method took ids as docids
- The api.v8 method took a browse records 'records' to call the api.v7 method with
  'records.ids' as docids
In python, we cannot write 2 functions with the same name that takes differents types
for the same argument. The function 'guess' in api.py will lead to a crash if we expect
a browse record and we send a list
The only way to allow the method to receive different types for the same argument is
to decorate it with '@api.noguess' to prevent any effect from guess method.
That way, we check directly if 'docids' is an id, ids or a browserecord and we always set
a list instead.
2016-07-29 12:20:41 +02:00
rka-odoo c727a00aca [FIX] hr_payroll: Pass active_ids to 'get_action' 2016-07-19 11:56:45 +02:00
Ravi Gohil edcb318a8e [MIG] hr_payroll: migration of all directories in new API, except report 2016-07-11 10:19:49 +02:00
Ravi Gohil 2079a5018d [MOV] hr_payroll: Restructured files according to new API guidelines (no splitting)
[FIX] hr_payroll: Fixed wrong decorator.
2016-07-11 10:19:49 +02:00
qsm-odoo 06562a108b [IMP] *: Change all gtk-execute icons to fa-cogs 2015-09-11 16:22:19 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +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
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
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
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
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Simon Lejeune babfb0f78d [IMP] hr* reports converted to qweb
bzr revid: sle@openerp.com-20140415191911-0rttsd7ayk6exm6u
2014-04-15 21:19:11 +02:00
Amit Bhavsar (Open ERP) 34f15e56d9 [HR] Improve view,title,tooltip and code.
bzr revid: amb@tinyerp.com-20130626121617-17i92ua5yty8htwu
2013-06-26 17:46:17 +05:30
ggh-openerp 3b73e2b2a4 [IMP]Removed space before Exclamation marks [!]
bzr revid: ggh@tinyerp.com-20130429071557-vnxo5nni03vc886j
2013-04-29 12:45:57 +05:30
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02: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
Vo Minh Thu 9822629548 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120813160657-ilujdek8ys4fzhp9
2012-08-13 18:06:57 +02:00
Twinkle Christian (OpenERP) 721adad01e [IMP]Remove type field from the whole hr module
bzr revid: tch@tinyerp.com-20120808124839-ecd1uic8mscg3s7f
2012-08-08 18:18:39 +05:30
Pinakin Nayi (OpenERP) 27226c12b2 [IMP]hr-warning-message
bzr revid: pna@tinyerp.com-20120713070425-b3envibswfdt6umq
2012-07-13 12:34:25 +05:30
Raphael Collet 76f17eb480 [IMP] in form views, remove useless colspans on buttons in headers
bzr revid: rco@openerp.com-20120629084603-yz0hdnvtjy1fplp1
2012-06-29 10:46:03 +02:00
Raphael Collet 5133bee1d5 [FIX] in form views, replace class 'oe_highlight_on_dirty' by 'oe_highlight'
bzr revid: rco@openerp.com-20120629083024-rqhtbf9melkygg0m
2012-06-29 10:30:24 +02:00
Twinkle (OpenERP) 471037495c [IMP]Apply css class flow on wizards buttons
bzr revid: tch@tinyerp.com-20120626063119-5i93di16milljxap
2012-06-26 12:01:19 +05:30
Twinkle (OpenERP) 0e97cefe9e [IMP]Improve wizard button
bzr revid: tch@tinyerp.com-20120625100901-ucjbttxod55erqmf
2012-06-25 15:39:01 +05:30
Jigar Amin - OpenERP ae34954e1d [MERGE] lp:~openerp-dev/openobject-addons/trunk-wiz-remove-btn-highlight-tch
bzr revid: jam@tinyerp.com-20120620123242-tvm11xx0s3olkdif
2012-06-20 18:02:42 +05:30
Twinkle (OpenERP) 660cc67256 [IMP]Added highlight button on wizard
bzr revid: tch@tinyerp.com-20120620104923-z1hty740vn160fg9
2012-06-20 16:19:23 +05:30
Twinkle (OpenERP) 1c4476e8b6 [IMP]Improve wizard usability
bzr revid: tch@tinyerp.com-20120620073712-xql1mgekjyb7ufwv
2012-06-20 13:07:12 +05:30
Turkesh Patel (Open ERP) f971e2c3c1 [IMP] hr_payroll: remove cancel button from wizard and improved view.
bzr revid: tpa@tinyerp.com-20120618052955-rizzewqljm3sxbon
2012-06-18 10:59:55 +05:30
Olivier Dony b22fa55566 [IMP] all: remove references to object column of ir.values, now gone
This will get rid of a lot of warnings now that the server
warns about unknown fields

bzr revid: odo@openerp.com-20111116115810-9c5kp7lql0yyhs3n
2011-11-16 12:58:10 +01:00
Quentin (OpenERP) 0600e1334b [FIX] payroll: added missing files for contribution register report wizard forgotten in previous merge prop
bzr revid: qdp-launchpad@openerp.com-20110623095410-fl7kl8iibx0m2yo3
2011-06-23 11:54:10 +02:00
Quentin (OpenERP) 42f835eb93 [MERGE] payroll: added the contribution register report
bzr revid: qdp-launchpad@openerp.com-20110616104918-5q5ddzavn39albb5
2011-06-16 12:49:18 +02:00
mtr f63c039f42 [REM] hr_payroll: removed unused reports
bzr revid: mtr@mtr-20110609123723-zhcgfq69ytimxw7h
2011-06-09 18:07:23 +05:30
Quentin (OpenERP) 387b534a33 [MERGE] improvements in payslip run
bzr revid: qdp-launchpad@openerp.com-20110609100743-ogqkahrq0pg9vz03
2011-06-09 12:07:43 +02:00
psi (Open ERP) 998c0f641f [IMP] hr_payroll: contribution report improvemnt as specified in need fixing
bzr revid: psi@tinyerp.co.in-20110527073256-d6v6voa6ssw9fykg
2011-05-27 13:02:56 +05:30
mtr 9325bbf70e [IMP] hr_payroll: improved string of label
bzr revid: mtr@mtr-20110526101304-ls5emcuj5f1ttr9y
2011-05-26 15:43:04 +05:30
mtr 937dfdddb7 [IMP] hr_payroll: improved string of label on Payslip run wizard
bzr revid: mtr@mtr-20110526085314-tetaycxkkq6ge8gi
2011-05-26 14:23:14 +05:30
mtr 92d7a663d6 [IMP] hr_payroll: removed 3 fields from wizard and generated payslip from dates of hr.payslip.run object
bzr revid: mtr@mtr-20110526083901-ju9sl16lp41o3b15
2011-05-26 14:09:01 +05:30
mtr 8462b39b9e [IMP] hr_payroll: improved separator string for Generate Payslip wizard
bzr revid: mtr@mtr-20110525060059-1l5ml5xegex6so4i
2011-05-25 11:30:59 +05:30
mtr 14b089bd33 [IMP] hr_payroll: improved indentation
bzr revid: mtr@mtr-20110525054743-kud7fi4o8uepjqjs
2011-05-25 11:17:43 +05:30
mtr d246077537 [IMP] hr_payroll: changed view,made fields required=True and optimised code for Generate Payslip wizard
bzr revid: mtr@mtr-20110525054446-bkp0wrgemigzytiu
2011-05-25 11:14:46 +05:30
mtr f9c4f6d754 [IMP] hr_payroll: optimised code for Generate Payslip wizard
bzr revid: mtr@mtr-20110524133246-pdgbei67rnpmdjsc
2011-05-24 19:02:46 +05:30
mtr 76f38cd088 [IMP] hr_payroll: added help string for fields on wizard
bzr revid: mtr@mtr-20110524121314-yb5eurgkad08wsp4
2011-05-24 17:43:14 +05:30
mtr 4dd134c822 [IMP] hr_payroll: added fields on wizard and improved code so that generated payslip have date from payslip run
bzr revid: mtr@mtr-20110524114117-pqqarqenjwwempmj
2011-05-24 17:11:17 +05:30
mtr 79b139d095 [IMP] hr_payroll: improved tooltip,code and view for payslip run
bzr revid: mtr@mtr-20110520130536-j56u80qdnvjc6iii
2011-05-20 18:35:36 +05:30