odoo Development Notes - trigger mechanism / Buried settings

Scene Description:

    Project requirements, often required when a field at a particular state when triggered to perform a particular method; or create a record of the time, while doing another operation; how to achieve similar needs?

Method to realize:

    odoo provides several trigger modes:

       1. Field level - the front trigger: @ api.onchange decorator --- equivalent to update changing operation when the trigger

   2. field level - the rear end of the trigger: @ api.depends decorator --- equivalent to update changing operation when the trigger  

   3. The model / table level - create method inherited extension

   4. The model / table level - extend the write method of inheritance --- equivalent update

Supplementary example:

      To be added

Guess you like

Origin www.cnblogs.com/hellojesson/p/11933155.html