'Setup recomputation triggers, and complete the model setup.'

@api.model
def _setup_complete(self):

    cls = type(self)
    if isinstance(self, Model):
        for field in cls._fields.itervalues():
            exceptions = ((Exception,) if field.manual else ())
            with tools.ignore(*exceptions):
                field.setup_triggers(self)
    cls._init_constraints_onchanges()
    if cls._rec_name:
        assert (cls._rec_name in cls._fields), ('Invalid    rec_name    %s    for    model    %s' % (cls._rec_name, cls._name))
    elif ('name' in cls._fields):
        cls._rec_name = 'name'
    elif ('x_name' in cls._fields):
        cls._rec_name = 'x_name'
    if (cls._parent_store and (not cls._parent_order)):
        cls._parent_order = cls._order
