← Back to team overview

openerp-community team mailing list archive

Re: Print a string for EVERY write

 

2014-10-14 5:31 GMT-04:30 Francesco Apruzzese <cescoap@xxxxxxxxx>:

> 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>

References