parameters: (self, model)
docstring: Add the foreign keys corresponding to the field's relation table.
docstring_summary: Add the foreign keys corresponding to the field's relation table.
docstring_tokens: Add the foreign keys corresponding to the field s relation table .
function: def update_db_foreign_keys(self, model):
          """ Add the foreign keys corresponding to the field's relation table. """
          comodel = model.env[self.comodel_name]
          if model._is_an_ordinary_table():
              model.pool.add_foreign_key(
                  self.relation, self.column1, model._table, 'id', 'cascade',
                  model, self._module, force=False,
              )
          if comodel._is_an_ordinary_table():
              model.pool.add_foreign_key(
                  self.relation, self.column2, comodel._table, 'id', self.ondelete,
                  model, self._module,
              )
function_tokens: def update_db_foreign_keys ( self , model ) : comodel = model . env [ self . comodel_name ] if model . _is_an_ordinary_table ( ) : model . pool . add_foreign_key ( self . relation , self . column1 , model . _table , 'id' , 'cascade' , model , self . _module , force = False , ) if comodel . _is_an_ordinary_table ( ) : model . pool . add_foreign_key ( self . relation , self . column2 , comodel . _table , 'id' , self . ondelete , model , self . _module , )