summaryrefslogtreecommitdiff
path: root/addons/analytic/models/analytic.py
AgeCommit message (Collapse)Author
2016-08-02[MOV][IMP] analytic: reorganize addon, remove openerp tags and rename python ↵fwi-odoo
classes
2016-03-23[IMP] account_budget,analytic,project: Some display improvementsKinjal Mehta
1/ An empty notebook was created in analytic and filled in account_budget That way, we had a horizontal line while the module wasn't installed yet 2/ The fields use_task and use_issue displayed on the account.analytic.account are just redundant information. The probable use case is to go on the project select the issues management on it, and it will be activated on the related analytic account. I don't think that anybody will come on the analytic account to activate the issues. So we hide them in group_no_one 3/ On the analytic account form view, display the title label only in edit mode
2016-03-23[IMP] analytic: Replaced account_type field by active fieldKinjal Mehta
Currently there is a selection field 'account_type' on the account.analytic.account model with 2 values : Active or Archived Let's use an active field instead and add a Archive stat button on the form. That way, we can remove all the domain ('account_type','=','normal') which are implicit with the generic active field behavior
2016-03-01[IMP] analytic: add tracking of customer in chatterDamien Bouvy
2016-02-17[FIX] analytic: name_search with negative operatorsOlivier Dony
The algorithm for matching analytic accounts based on search term is only meant to be used for simple, positive operators. In other cases the results will not be what the user expects. Falling back to the default name_search behavior will be more useful.
2015-12-16[FIX] analytic: _default_userGoffin Simon
The "user_id" linked to the employee_id set on the sheet must be used when editing a sheet. opw:659647
2015-12-11[FIX] analytic: workaround to re-enable the feature to close an analytic ↵qdp-odoo
account that has been unfortunately removed by mistake in commit 2a8c077. It is using an already existing field that wasn't used anymore ('account_type') but as a lot of domains on analytic accounts were - wrong (still using old fields state and type that have been removed as well in the same commit), - or defined directly in the views so, an update of some modules may be needed in order to avoid further problems.
2015-12-02[FIX] analytic: fixed name_search() on analytic account. The partner_id ↵qdp-odoo
field is not mandatory, but the previous domain was making an inner join with the partner table, which resulted in not finding the accounts matching the search criteria on name/code if they hadn't a partner set.
2015-11-24[FIX] analytic: optimize name_search for large databasesOlivier Dony
On databases with a large number of res.partner entries, the extended name_search of analytic accounts was prohibitively slow, due to the expensive name_search on res.partner. Restricting the search to the partner name is extremely similar business-wise, but makes a huge difference in terms of speed. E.g. sub-second results vs 10+ minutes for a database with 30k analytic accounts and 600k partners.
2015-09-30[FIX] analytic: hide account_typeNicolas Martinelli
`account_type` is probably not necessary anymore, but too late to remove it.
2015-09-23[FIX] analytic: remove deprecated codeNicolas Martinelli
The field 'state' has been removed, so this is now useless.
2015-09-09[FIX] analytic: methods used in default attribute should return a RecordSetOlivier Laurent
If a method used as a default returns an id instead of a RecordSet, it could fail in 'convert_to_write' (Many2One field) because it will try to return "value.id". If "value" is an integer, it fails. Also changed the method to a lambda expression and removed the '_default_user' method because it's not used anywhere.
2015-09-07[ADD] *: add color field on tagsMartin Geubelle
2015-08-31[IMP] analytic: remove unnecessary sequenceDamien Bouvy
$
2015-08-27[IMP] analytic: adaptation due to the new Sale moduleNicolas Martinelli
Major changes: - Remove reports - Simplify models Reason: complete rewrite of the Sale module. Responsible: fp, dbo, nim
2015-08-06[MERGE] forward port of branch saas-6 up to be58335Christophe Simonis
2015-07-28[FIX] analytic: prevent deleting contract template when in useOlivier Dony
2015-07-28[MERGE] forward port of branch saas-6 up to 51040b6Christophe Simonis
2015-07-27[MERGE] forward port of branch 8.0 up to 5e6ec89Christophe Simonis
2015-07-23[IMP] sale_contract: recurring view refactoring, new fields and unit of measureDamien Bouvy
- add contract_type field on account.analytic.account and real_quantity on account.analytic.invoice.line - refactor contract form and list views for better clarity (hide unnecessary fields depending on the type of contract) - divide account_analityc_account class according to contract type for future work - divide contract template menu in 3 menus depending on contract_type - add on_change_uom behaviour on account recurring lines - rewrite tests in python - add new report (pivot & graph) - end date of contract is now computed from the template recurring rules - small fixes & usability improvements
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-14[MERGE] forward port of branch 8.0 up to 86d7f52Christophe Simonis
2015-07-07[MERGE] forward port of branch 8.0 up to 2de301dChristophe Simonis
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- 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-05-08[IMP] project,project_issue,sale: display the current contract state on some ↵Gaurav Panchal
various objects like issues or tasks. Implements a dynamic widget for selection fields to display this state with color codes.
2015-05-05[IMP] accounting v9. Yeeeeaahqdp-odoo
2015-04-28[REF] Refactored hr_timesheet: Refactored the "timesheet" model in several ↵odoo-tac
modules. hr.analytic.timesheet is removed, and account.analytic.line is used directly to represent timesheets. Also removed worklogs on tasks and replaced them by generic timesheets, i.e. account.analytic.line(s)
2015-03-10[IMP] analytic: better chatter message at contract creation, based upon its typeJamin Shah
2015-02-24[REF] mail: _track update.Thibault Delavallée
_track is now a method that returns the subtype to trigger in a given tracking context. A tracking will now lead to only one subtype being trigerred, instead of having multiple possible subtypes. Now, one tracking leads to one message with one subtype, or without subtype if there is none matching. This simplifies the model for future evolution of chatter and mail. [IMP] project, project_issue: cleaned task and issue subtypes, now having opened for created / assigned.
2015-01-16[IMP] Cleanup and refactoring of exception handlingGoffin Simon
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.
2014-11-21[IMP] base, ir_sequence: added use_date_range field on ir.sequence, that ↵qdp-odoo
allows to have several sequences running for the same one depending on date ranges (similar to what was existing previously on accounting with FY, which is now deprecated) + port to new API
2014-10-01[MERGE] forward port of branch 8.0 up to e883193Christophe Simonis
2014-09-05[MERGE] forward port of branch 8.0 up to ed1c173Christophe Simonis
2014-08-04[MOVE] account: moved account/project files to analytic or account, ↵cod-odoo
depending on which module the moved code belongs to. This allows to remove references to project in account module. Also added some improvements in project when deleting a project (delete account if void) or when deleting an account (delete project if void).