odoo-8 Create Automated Functions For Model Corresponding Python file


Example

class *model_name*(models.Model):
    _name = *model_name*

    @api.model
    def _configure_sales(self):
        # Do the configuration here

Every time when module will be installed this function will run.

Note: If you remove noupdate from xml, function will run on upgrading as well.