2014-10-14 5:31 GMT-04:30 Francesco Apruzzese <cesc...@gmail.com>: > I need to print a string for EVERY write in OpenERP 7. I'm trying to > inherit BaseModel to super the "write" function but this isn't the right > way (I think). >
did you check the _track attribute? It does exactly what you are looking for. For the change of status. https://github.com/odoo/odoo/blob/8.0/addons/sale/sale.py#L40 For the field: (check the track_visibility attribute in declaration of the field). https://github.com/odoo/odoo/blob/8.0/addons/sale/sale.py#L222 It will send a message related to the model. I really should like if this behavior return an "Auditable information" and not an "ugly html" but that the new approach, it do the job at the end. regards. -- -------------------- Saludos Cordiales [image: --] Nhomar Hernandez [image: http://]about.me/nhomar <http://about.me/nhomar?promo=email_sig>
_______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp