Commit Graph

14 Commits

Author SHA1 Message Date
Maxime Chambreuil
f06d0194df [FIX] Pylint errors 2015-11-14 12:33:50 -05:00
EL HADJI DEM
9366ebf798 [UPD]Change the filter and add the context
Add a context to keep the model and model_id.
Change the domain filter with the new field

[ADD] Add a new field function

This new function allows to get the related documents with
the model and the model_id.
We add this new field because the domain in the view or in the js
doesn't match the wanted result

[UPD] Add missing comma

[ADD] Add unittests
2015-11-14 12:27:45 -05:00
Pedro M. Baeza
6016c7799b [FIX] pylint 2014-11-18 03:03:42 +01:00
EL HADJI DEM
26424054c4 [UPD] Override the _name_get_resname function to add a condition for account.voucher model 2014-10-01 09:49:24 -04:00
EL HADJI DEM
dbbea6df2c [UPD] In create method, use name unless name_get to define res_name value 2014-09-29 17:15:08 -04:00
Holger Brunn
a8c6786771 [FIX] flake8 2014-08-11 11:03:57 +02:00
Sandy Carter
3f9ea85e45 Cleanup code and fix possible bugs
create():
    Avoid duplicating data locally
    Fix boolean comparison problem
    Use name_get rather than name field
unlink():
    Use more specific context identifiers
    Remove redundant loop and if statement
model:
    Add ondelete='cascade'
2014-07-18 17:18:29 -04:00
EL HADJI DEM
6e5f52a548 [IMP]Change condition to pass test 2014-07-18 17:18:29 -04:00
EL HADJI DEM
a9a91394ef [IMP]Change condition to pass test 2014-07-18 17:18:29 -04:00
EL HADJI DEM
dbe7aac614 [IMP]Fix bug to pass tests 2014-07-18 17:18:29 -04:00
EL HADJI DEM
2889c10a50 [IMP] Refresh automatically list of documents in the form view;from knownlege, delete the documents and references; when delete document from form view, juste delete the reference; informations about the model are saved in the attachment_document_ids 2014-07-18 17:18:29 -04:00
Joao Alfredo Gama Batista
b23ac72daf [FIX] Partial refactoring based on MP comments 2014-07-18 17:18:28 -04:00
EL HADJI DEM
e1bf00a575 [IMP]comment from lp, create line for attachement if we don't get a res_model 2014-07-18 17:18:28 -04:00
EL HADJI DEM
97503d09ae Added document_multiple_records module: It allows to manage a document with a multiple records. 2014-07-18 17:18:28 -04:00